Commit Graph

81 Commits (e147a9d2fdbb2e8f0c332a27ecedc8e421b459fc)

Author SHA1 Message Date
ming4762 5b75e5e917
perf: perf the control logic of `VbenModal` full screen and header (#6566)
* resolve the issue of header=false and full screen button display but not operable
2025-07-25 21:45:45 +08:00
panda7 1a9b0509d5 feat: add animation effects to VbenModal component 2025-07-18 00:15:40 +08:00
yuhengshen 2f7d1f009d
fix: 全屏状态下弹窗圆角优化 (#6413) 2025-06-24 23:41:54 +08:00
yuhengshen 946f91f387
feat: optimize modal dragging range(#6414)
* 当弹窗指定了容器时,拖拽将被限制在容器范围内
2025-06-24 17:05:59 +08:00
Netfan c0962fec18
fix: auto close popup on deactivated (#6368)
* 修复挂载到内容区域的弹窗和抽屉被意外关闭的问题
2025-06-11 12:20:52 +08:00
huanghezhen feb96dc8ea
fix: resolve onClosed method failure in connectedComponent of useVbenModal (#6309) 2025-06-02 08:16:48 +08:00
Netfan 081d08a7f8
fix: alert width fixed in small screen (#6312) 2025-05-30 19:54:26 +08:00
LinaBell 8f4d3d418d
fix: when keepAlive is enabled, returning directly through browser buttons/gestures will not close pop ups (#6113) 2025-05-06 14:02:23 +08:00
Vben 17a18fc9ba
chore: close eslint object sorting (#6101) 2025-05-03 16:06:36 +08:00
Netfan 3e6d608a2f
fix: destroyOnClose incorrect default value, fixed #6092 (#6093) 2025-05-01 14:09:37 +08:00
Netfan 4545422ee0
fix: lock state will not change overflow style in drawer and modal (#6067)
* Modal和Drawer的锁定状态不再修改overflow样式
2025-04-28 17:02:54 +08:00
ming4762 0cc1cb5a7b
perf: improve destroyOnClose for VbenDrawer&VbenModal (#6051)
* fix: fix that the default value of modal destroyOnClose does not take effect

* perf: improve destroyOnClose for VbenDrawer
2025-04-27 11:26:50 +08:00
Netfan 14377705e7
fix: alert confirm state in beforeClose callback (#6019) 2025-04-23 12:20:52 +08:00
Netfan 79de6bcbf7
fix: alert send wrong confirm state to beforeClose (#5991)
* 修复alert在按下Esc或者点击遮罩关闭时,可能发送错误的isConfirm状态
2025-04-17 22:23:05 +08:00
Netfan 14bd6dd25d
fix: destroyOnClose works within connectedComponent (#5989)
* 修复destroyOnClose没能销毁connectedComponent自身的问题
2025-04-17 20:25:49 +08:00
ming4762 3318d76bab
perf: improve `destroyOnClose` for VbenModal (#5964) 2025-04-16 11:28:36 +08:00
LinaBell 8f3881eabf
perf: `beforeClose` of drawer support promise (#5932)
* perf: the beforeClose function of drawer is consistent with that of modal

* refactor: drawer test update
2025-04-16 11:27:13 +08:00
ming4762 3fb4fba1cb
fix: modal closing animation (#5960) 2025-04-15 18:49:57 +08:00
ming4762 c7e6210c8d
feat: `modal`&`drawer` support `center-footer` slot (#5956) 2025-04-15 16:04:44 +08:00
Netfan bf7496f0d5
feat: add `useAlertContext` for Alert component (#5947)
* 新增Alert的子组件中获取弹窗上下文的能力
2025-04-15 00:00:05 +08:00
Netfan f0e9e55af2
feat: alert support customize `footer` (#5940)
* Alert组件支持自定义footer
2025-04-14 11:48:21 +08:00
ming4762 afce9dc5c0
perf: improve `destroyOnClose` for `VbenModal` (#5935)
* perf: 优化Vben Modal destroyOnClose,解决destroyOnClose=false,Modal依旧会被销毁的问题

影响范围(重要):destroyOnClose默认为true,这会导致所有的modal都会默认渲染到body
radix-vue Dialog组件默认会销毁挂载的组件,所以即使destroyOnClose=false,Modal依旧会被销毁的问题
对于一些大表单重复渲染导致卡顿,ApiComponent也会频繁的加载数据

* fix: modal closing animation

---------

Co-authored-by: Netfan <netfan@foxmail.com>
2025-04-13 23:02:07 +08:00
Netfan 4a2c7b313f
fix: alert animation (#5927) 2025-04-12 10:37:47 +08:00
Netfan 9bd5a190c2
fix: alert action button focus, fixed #5921 (#5922)
* 修复Alert组件的按钮焦点切换问题
2025-04-12 00:59:56 +08:00
Netfan 71e8d12b70
fix: improve prompt component (#5879)
* fix: prompt component render fixed

* fix: alert buttonAlign default value
2025-04-07 01:21:30 +08:00
Netfan ecf518bb02
fix: alert `beforeClose` callback arguments fixed (#5845) 2025-04-01 22:55:29 +08:00
Netfan 44138f578f
feat: add preset alert, confirm, prompt components that can be simple called (#5843)
* feat: add preset alert, confirm, prompt components that can be simple called

* fix: type define
2025-04-01 15:10:18 +08:00
Netfan f86c9f90ad
fix: keepAlive not working for popup `appendToMain` (#5666)
* 修复弹窗和抽屉 `appendToMain` 时且启用`keepAlive` 时未能正确缓存的问题
2025-03-06 22:22:45 +08:00
Netfan f380452ef0
feat: modal and drawer locking improve (#5648)
* feat: add `unlock` for modalApi

* fix: modal's close button style in locking

* fix: fix modal's close button disabled on locking

* feat: add `lock` and `unlock` for drawerApi
2025-03-04 22:00:32 +08:00
Netfan 86fdd6c93b fix: drawer close icon placement default value 2025-02-28 14:54:11 +08:00
jinmao88 7a476372e1
fix: useDrawer中closeIconPlacement设置无效 (#5624) 2025-02-27 14:34:42 +08:00
Netfan 2d0859a727
fix: mouse events ignored on modal loading (#5409) 2025-01-16 12:17:08 +08:00
Netfan 8cc903c0e1
feat: modal state locked on submitting (#5401)
* feat: modal state locked on submitting

* docs: 更新modal文档
2025-01-15 17:00:46 +08:00
Netfan e1c503e51e
feat: support set default props for drawer and modal (#5390)
* feat: support set default props for drawer and modal

* docs: fix typo
2025-01-14 17:11:18 +08:00
Netfan 6719e2679f
feat: popup component support overlay blur effect (#5359) 2025-01-11 23:37:17 +08:00
Netfan 1a04a05b79
perf: modal and drawer api support chain calls (#5351)
* perf: modal and drawer api support chain calls

* fix: typo
2025-01-11 10:56:54 +08:00
Vben 081d2aed23
perf: format code with better style (#5283) 2025-01-01 11:39:49 +08:00
Netfan 376aad5d26
feat: drawer close icon placement (#5269) 2024-12-30 23:30:53 +08:00
Netfan de17007788 feat: drawer support destroy on close 2024-12-30 22:21:01 +08:00
Netfan e86a7906fe feat: drawer support `onOpened` & `onClosed` 2024-12-30 22:21:01 +08:00
Netfan 4a8e6abc06 feat: modal support destroy on close 2024-12-30 22:21:01 +08:00
Netfan e419b03cab
feat: modal&drawer support appendToMain and zIndex (#5092)
* feat: modal/drawer support append to main content

* feat: modal zIndex support

* fix: drawer prop define

* chore: type

* fix: modal/drawer position fixed while append to body

* docs: typo

* chore: add full-width drawer in content area

* chore: remove unnecessary class
2024-12-10 17:37:06 +08:00
Netfan d42daf9ce0
fix: modal radius not follow preferences (#5063) 2024-12-07 11:00:53 +08:00
huangfe1 e8992a1d16
chore: update modal.vue (#4987)
loading时候 子组件禁用点击事件

Co-authored-by: Vben <ann.vben@gmail.com>
2024-11-30 11:18:22 +08:00
Netfan 73502677ff
feat: add `placement` for `Drawer` (#4958) 2024-11-27 11:29:25 +08:00
Netfan dedba18553
feat: add `confirmDisabled` for `Dialog` (#4959) 2024-11-27 11:28:49 +08:00
vince 67c2b13713
fix: drawer console warning (#4871) 2024-11-12 13:34:47 +08:00
Vben 5e44aa9283
fix: drawer header is missing (#4846) 2024-11-09 20:00:09 +08:00
Vben 4005023fd4
fix: drawer component header does not take effect (#4844) 2024-11-09 15:53:17 +08:00
Vben 2c6edafeb2
fix: when opening the tool separately, there is no need to pass the toolbar-tools slot (#4841) 2024-11-09 14:07:41 +08:00