Commit Graph

794 Commits (a653e428f38f815087b1c45368bcd456a2370a69)

Author SHA1 Message Date
LinaBell 566d3bdf7c
fix: appendToMain warning (#6684) 2025-08-25 21:25:29 +08:00
LinaBell cf6c4c9aae
fix: cannot read properties of null (reading 'nextSibling') (#6667) 2025-08-21 22:26:10 +08:00
panda7 2cc78f925f
fix: the bug in the lock method of the vbenModal component (#6648) 2025-08-21 15:17:55 +08:00
ming4762 93f0eea4e7
fix: fix the issue of excessive line spacing in vbenForm (#6653)
* gap-2和 pb-4/2 重叠导致间距过宽,gap-x只保留列间距
2025-08-21 12:41:04 +08:00
xingyu4j 8fdbbfad22 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-08-19 17:41:16 +08:00
xingyu4j 1d5bfaac5a Merge branch 'master' of https://gitee.com/yudaocode/yudao-ui-admin-vben into dev 2025-08-19 17:34:00 +08:00
Svend 3ad433a50b
fix: 修复在 hash 路由模式下无法在新窗口打开路由的问题 (#6652)
此问题是由于 PR #6583 中新增的 `resolveHref` 函数导致的。其在 hash 路由模式下,得到的 URL 会包含 #/ 前缀。在经过 openRouteInNewWindow 的逻辑后就会出现两次 /# 前缀
2025-08-19 16:47:45 +08:00
ming4762 8ac2db5b7c
fix: fix the issue of `VbenForm` `compact` reactive failure (#6654) 2025-08-19 16:46:14 +08:00
ming4762 1e6417f95b
feat: vBenForm add layout: inline (#6644) 2025-08-16 22:41:08 +08:00
vben e147a9d2fd chore: release 5.5.9 2025-08-16 22:16:02 +08:00
芋道源码 43c8ce2d7d
!194 refactor: (web-ele)优化移动端组件代码结构
Merge pull request !194 from 痴货/master
2025-08-16 13:12:10 +00:00
YunaiV 4be6d26375 feat:【framework 框架】增加 api 加解密能力(优化代码) 2025-08-16 17:20:45 +08:00
xueyang 9fc594434f
perf: 优化useVbenForm样式 (#6611)
* perf(style): 优化useVbenForm垂直布局 actions 样式

* perf(style): 优化useVbenForm actions 布局样式

- 操作按钮组显示位置
```
actionPosition?: 'center' | 'left' | 'right';
```
- 操作按钮组的样式
```
actionType?: 'block' | 'inline'
inline: 行类显示,block: 新一行单独显示
```

* perf: 优化useVbenForm actions 布局样式

删除 actionType
增加 actionLayout
- actionLayout?: 'inline' | 'newLine' | 'rowEnd';
- newLine: 在新行显示。rowEnd: 在行内显示,靠右对齐(默认)。inline: 使用grid默认样式
- 删除无用代码 queryFormStyle

* perf: 优化useVbenForm使用案例

* perf: 优化form组件样式

去掉padding,改为gap

* docs: update vben-form.md

* fix: 修复FormMessage位置

* perf: Avoid direct mutation of props object.

-  props.actionLayout = props.actionLayout || 'rowEnd';
-  props.actionPosition = props.actionPosition || 'right';
+  const actionLayout = props.actionLayout || 'rowEnd';
+  const actionPosition = props.actionPosition || 'right';

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix: 修复 wrapperClass 权重

* fix: 全局搜索结果不匹配 #6603

* fix: 避免FormMessage溢出

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-08-07 23:48:34 +08:00
lrl 2166ce3e4e feat: 新增多个组件并优化优惠券相关功能
- 新增 AppLinkSelectDialog 组件,用于选择 APP 链接- 新增 NavigationBarCellProperty组件,用于导航栏单元格属性设置
- 新增 CombinationShowcase 和 CombinationTableSelect 组件,用于拼团活动展示和选择- 优化优惠券相关组件,导出所有优惠券相关组件
- 新增 ComponentContainer 组件,用于包裹和样式化 DIY 组件
2025-08-04 09:09:39 +08:00
xingyu4j 8b89a32813 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-07-29 15:21:32 +08:00
zhongming4762 06ffdf164a feat: add dingding login 2025-07-25 22:02:55 +08:00
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
Jin Mao 260e45cd7b
Merge branch 'main' into feat/add-vben-modal-animation 2025-07-25 21:33:11 +08:00
芋道源码 27ad777c2c
!179 fix: 删除china2相关的地图json
Merge pull request !179 from 痴货/master
2025-07-23 05:08:38 +00:00
vben 1575619d53 chore: release v5.5.8 2025-07-19 22:19:50 +08:00
xingyu4j 879de80857 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-07-19 12:24:22 +08:00
panda7 fc9ea347ca
Merge branch 'main' into feat/add-vben-modal-animation 2025-07-18 00:38:54 +08:00
panda7 1a9b0509d5 feat: add animation effects to VbenModal component 2025-07-18 00:15:40 +08:00
lrl d2a2227c4c Merge remote-tracking branch 'remote/master'
# Conflicts:
#	packages/effects/plugins/src/echarts/use-echarts.ts
2025-07-17 10:09:54 +08:00
lrl 4620ede9b9 feat: 新增商品统计组件和优化数据处理逻辑
- 引入商品排行和商品概况组件,展示商品相关统计信息
- 更新商品统计 API,支持时间范围查询和数据格式化
- 优化数据加载逻辑,提升用户体验
- 添加日期范围选择器,增强统计数据的灵活性
2025-07-17 09:53:04 +08:00
panda7 07b64ad384
feat: add function support for formItemClass prop (#6511)
* feat: add function support for formItemClass prop

* feat: add try-catch to formItemClass function

* fix: formItemClass function ts error

---------

Co-authored-by: sqchen <chenshiqi@sshlx.com>
2025-07-17 09:37:39 +08:00
lrl 8c2f982ab6 feat: 更新日期格式化方法,新增多个统计卡片组件
- 将日期格式化方法从 formatDate 更新为 formatDate2,提升日期处理的灵活性
- 新增会员概览、用户统计、会员终端和交易量趋势等统计卡片组件
- 在商城首页引入新组件以展示关键会员和交易数据
- 优化数据获取逻辑,提升用户体验
2025-07-16 11:01:27 +08:00
xingyu4j 379e8e755f perf: 将 getUrlValue 放入 vben/utils 下 2025-07-09 17:11:22 +08:00
xingyu4j a950b7b6e7 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-07-08 14:25:47 +08:00
Jin Mao 3b673ca915
Merge branch 'main' into feature/scroll_to_the_error_field 2025-07-07 08:21:50 +08:00
Jin Mao bbf0287511
chore: fix lint warning (#6487) 2025-07-07 08:21:25 +08:00
sqchen f1051c8773 feat: add scrollToFirstError to the form component 2025-07-05 00:50:53 +08:00
sqchen 243f3a201d feat: add scrollToFirstError to the form component 2025-07-05 00:19:12 +08:00
xue-jn 253b0da7d2
fix: 接口返回子节点为空数组时,还会显示折叠箭头 (#6463) 2025-07-03 18:35:03 +08:00
xingyu4j 77c16cd8e2 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-06-28 12:04:15 +08:00
CG.gatspy 3230781538
feat: [vben-tree]增加数据disabled (#6343)
* feat: [vben-tree]增加数据disabled

* Update packages/@core/ui-kit/shadcn-ui/src/ui/tree/tree.vue

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Jin Mao <50581550+jinmao88@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-06-27 19:09:30 +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
xingyu4j f15be6eade feat: format time utils 2025-06-21 19:30:43 +08:00
xingyu4j f4b03b6101 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-06-20 10:24:12 +08:00
xingyu4j d09b993bc8 feat: 将一些utils放到package/core/base/shared/src/utils 2025-06-16 14:46:59 +08:00
xingyu4j 2885dc43bf feat: download 统一使用@vben/utils 2025-06-15 19:46:09 +08:00
xingyu4j fcce15c0b8 feat: formatNumber 移动到 @vben/utils 2025-06-11 20:15:27 +08:00
Netfan c0962fec18
fix: auto close popup on deactivated (#6368)
* 修复挂载到内容区域的弹窗和抽屉被意外关闭的问题
2025-06-11 12:20:52 +08:00
xingyu4j ea31db17ad Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-06-09 10:19:25 +08:00
XiaoHetitu 8ba7bdf2bd
fix(button): 为按钮添加type属性防止表单提交意外触发表单验证机制 (#6340)
在按钮组件中,按钮元素缺少type="button"属性可能导致在表单中意外提交。添加此属性以确保按钮行为符合预期。

Co-authored-by: yuanwj <ywj6792341@qq.com>
2025-06-08 17:56:24 +08:00
xingyu4j c7013a030e feat: treeToString 2025-06-07 12:54:50 +08:00
xingyu4j b6075a6611 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-06-04 13:49:25 +08:00
vben b9aef618fe chore: release 5.5.7 2025-06-04 05:33:06 +08:00
Netfan 4102cc2211
feat: improve vbenCheckButtonGroup (#6329)
* 按钮组支持单选清除和多选限制最大选项数

* 按钮组支持icon插槽来定制图标
2025-06-03 23:11:56 +08:00
xingyu4j b0c5b794fa Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-06-02 19:51:33 +08:00
huanghezhen feb96dc8ea
fix: resolve onClosed method failure in connectedComponent of useVbenModal (#6309) 2025-06-02 08:16:48 +08:00
xingyu4j d900aa1d71 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-05-30 22:23:29 +08:00
Netfan 081d08a7f8
fix: alert width fixed in small screen (#6312) 2025-05-30 19:54:26 +08:00
xingyu4j e3e0b1f1a0 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-05-29 11:01:39 +08:00
wyc001122 f31360ba4e
feat: support for hybrid permission access control mode (#6294)
* feat: 添加混合权限访问控制模式

* feat: 文档补充
2025-05-28 17:01:58 +08:00
xingyu4j 7b886b315b feat: 去除 slotName 使用input upload 2025-05-26 18:48:27 +08:00
xingyu4j 67af898baf Merge branch 'master' of https://gitee.com/yudaocode/yudao-ui-admin-vben into dev 2025-05-26 14:49:12 +08:00
xingyu4j be1889a0e0 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-05-26 10:50:54 +08:00
xingyu f64425b724
!88 feat: 添加渠道配置和应用管理功能,更新相关表单和数据结构
Merge pull request !88 from 痴货/pay-master
2025-05-26 02:24:11 +00:00
littlesparklet af186f878d
fix: repair the unexpected form default value (#5567)
* fix: Fix inconsistent spacing around search form (issue #5429)

* fix: repair the unexpected default value in validated form.(issue #5451)

* Update packages/@core/ui-kit/form-ui/src/use-form-context.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Jin Mao <50581550+jinmao88@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-05-23 16:05:11 +08:00
wyc001122 97894a940e
feat: optimize logo display (#6267)
* feat(VbenAvatar): add fit property to VbenAvatar component

* feat(VbenLogo): add fit property to VbenLogo component

* feat(VbenLogo): add logo fit preference configuration

- Add preferences.logo.fit setting for logo display control
- Include corresponding documentation for the new preference

* feat(preferences): add default value for logo.fit preference

- Set default configuration for logo fit behavior
- Ensures consistent logo display across applications

* test(preferences): update configuration snapshots

---------

Co-authored-by: wyc001122 <wangyongchao@testor.com.cn>
2025-05-23 15:24:01 +08:00
Netfan 0c3edb10b0
fix: getFieldComponentRef will return actual ref within AsyncComponentWrapper (#6252)
修复异步加载组件时,表单的getFieldComponentRef方法没能获取到正确的组件实例
2025-05-21 14:48:51 +08:00
xingyu4j c88bd198d4 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-05-20 10:35:19 +08:00
wyc001122 8ac97688da
fix(preferences): 更新内容内边距默认值 (#6233)
Co-authored-by: wyc001122 <wangyongchao@testor.com.cn>
2025-05-20 09:50:23 +08:00
wyc001122 dae46abb71
feat: additional-settings (#6225)
* feat(preferences): 补充VbenAdminLayout传入属性(来自偏好设置)

* docs(@vben/docs):update settings doc

---------

Co-authored-by: wyc001122 <wangyongchao@testor.com.cn>
2025-05-19 16:29:15 +08:00
xingyu 1cb00f1470
!109 antd-schema 代码生成时,可选择生成批量删除接口
Merge pull request !109 from puhui999/dev-new
2025-05-19 06:08:14 +00:00
puhui999 98e9d9fbfc feat: 【ANTD】新增代码生成批量删除接口示例 demo01 2025-05-19 12:53:10 +08:00
xingyu4j 2f5758d4dd Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-05-19 10:46:36 +08:00
ming4762 3d9dba965f
perf: perf the control logic of Tab (#6220)
* perf: perf the control logic of Tab

* 每个标签页Tab使用唯一的key来控制关闭打开等逻辑
* 统一函数获取tab的key
* 通过3种方式设置tab key:1、使用router query参数pageKey 2、使用路由meta参数fullPathKey设置使用fullPath或path作为key
* 单个路由可以打开多个标签页
* 如果设置fullPathKey为false,则query变更不会打开新的标签(这很实用)

* perf: perf the control logic of Tab

* perf: perf the control logic of Tab

* 测试用例适配

* perf: perf the control logic of Tab

* 解决AI提示的警告
2025-05-18 10:33:02 +08:00
wyc001122 024c01d350
fix(@vben-core/shadcn-ui): fix disabled functionality not working in VbenTree component (#6205)
* fix(@vben-core/shadcn-ui): fix disabled functionality not working in VbenTree component

* fix(@vben-core/shadcn-ui): add cursor-not-allowed className when disabled and disable onfocus

---------

Co-authored-by: wyc001122 <wangyongchao@testor.com.cn>
Co-authored-by: Jin Mao <50581550+jinmao88@users.noreply.github.com>
2025-05-16 14:13:43 +08:00
panda7 a23bc4cb5c
fix: the mobile terminal can wrap lines and expand slot attributes (#6165)
Co-authored-by: sqchen <chenshiqi@sshlx.com>
2025-05-16 09:40:05 +08:00
xingyu4j 6a1317908a Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-05-06 23:51:36 +08:00
xingyu4j 21755317c5 perf: getRangePickerDefaultProps 移动到antdv目录下 2025-05-06 23:22:34 +08:00
vben cc6c9bf7a0 chore: release v5.5.6 2025-05-06 22:32:58 +08:00
xingyu4j 703d88d799 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-05-06 14:39:03 +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
xingyu4j e495219c87 style: menu style lint 2025-05-06 10:03:29 +08:00
xingyu4j 81a54dfbd0 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-05-06 10:02:03 +08:00
痴货 61e06cce09 feat: 添加支付宝渠道配置和应用管理功能,更新相关表单和数据结构 2025-05-05 12:19:04 +08:00
Vben 045bc4e5ee
feat: support smooth auto-scroll to active menu item (#6102) 2025-05-03 18:05:26 +08:00
Vben 17a18fc9ba
chore: close eslint object sorting (#6101) 2025-05-03 16:06:36 +08:00
aonoa 41152d1722
refactor: modify the default homepage path loaded from the preference… (#6099)
* refactor: modify the default homepage path loaded from the preferences.ts

Signed-off-by: aonoa <1991849113@qq.com>

* refactor: modify the default homepage path loaded from the preferences.ts

Signed-off-by: aonoa <1991849113@qq.com>

---------

Signed-off-by: aonoa <1991849113@qq.com>
2025-05-03 16:03:08 +08:00
puhui999 abb9cfc05f Merge remote-tracking branch 'refs/remotes/yudao/dev' into develop 2025-05-03 13:49:52 +08:00
xingyu4j 4f62d4b8ed Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-05-02 14:15:19 +08:00
Netfan f1af9f8f6e
fix: add triggerClass binding to PopoverTrigger and update icon-picker styles (#6095)
* Popover支持设置trigger的样式
* 修正icon-picker的input值更新
2025-05-01 21:40:45 +08:00
Netfan 3e6d608a2f
fix: destroyOnClose incorrect default value, fixed #6092 (#6093) 2025-05-01 14:09:37 +08:00
Netfan add1e61b6f
fix: show validation message as tooltip in compact form (#6087)
* 紧凑模式表单的校验消息将显示为一个tooltip
2025-04-30 23:41:44 +08:00
xingyu4j e02b5590dd Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-04-30 15:50:05 +08:00
xingyu e2a31c1c2b
!85 fix: 冲突解决
Merge pull request !85 from Jason/dev
2025-04-29 12:33:10 +00:00
jason ab60f8eb3a Merge remote-tracking branch 'yudao/dev' into dev 2025-04-29 15:45:48 +08:00
xingyu4j 0defca66e2 fix: code style 2025-04-29 14:23:56 +08:00
Netfan 8aa7dabeff
fix: calculation for collapsing search form is incorrect while initially hidden (#6068)
* 修复当默认隐藏搜索表单时,折叠位置的计算不正确的问题
2025-04-28 23:20:33 +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
xingyu4j 50d028f6b8 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-04-28 10:06:29 +08:00
Vben 76de450c71
chore: update dependency version for improved stability and compatibility (#6023)
* chore: update dependency version for improved stability and compatibility

* fix: optimize clearPoints function in useCaptchaPoints hook to improve performance

* fix: make several props optional in various components for better flexibility
2025-04-27 22:06:49 +08:00
vben 7c7051a11e chore: release v5.5.5 2025-04-27 21:45:10 +08:00
xingyu4j ecdca981b0 fix: fix lint 2025-04-27 20:52:12 +08:00
puhui999 5c4b95b01e feat: 新增 vxe table 工具栏二次封装,提供给 vxe 原生列表使用 2025-04-27 18:13:08 +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
xingyu4j 4d1bff9d4a Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev 2025-04-26 14:38:07 +08:00
Netfan be840460d8
feat: vbenSelect support prop `allowClear` (#6043) 2025-04-25 23:37:03 +08:00
puhui999 db86dfc8c5 feat: 新增 antd 模式的代码生成示例 2025-04-25 18:22:56 +08:00
panda7 5ffd7db8e0
fix: the initial value echo for the check-button-group (#6029)
Co-authored-by: sqchen <9110848@qq.com>
2025-04-25 08:35:03 +08:00
xingyu4j e702e4aba0 fix: code lint packages 2025-04-24 17:55:30 +08:00
xingyu4j c867f93e0a feat: 封装手机号校验,mobile 非必填校验,mobileRequired 必填校验 2025-04-23 17:51:43 +08:00
xingyu4j 26c2638146 refactor: 迁移 time.ts 2025-04-23 17:30:39 +08:00
xingyu4j dccb846bb0 refactor: tree.ts 使用@vben/utils替换 2025-04-23 17:27:48 +08:00
xingyu4j 84a5002d4a refactor: data.ts迁移,使用 @vben/utils 的 getRangePickerDefaultProps 2025-04-23 17:09:20 +08:00
YunaiV b4efb7c468 refactor:修复 antd typecheck 提供的报错 2025-04-23 12:56:35 +08:00
Netfan 14377705e7
fix: alert confirm state in beforeClose callback (#6019) 2025-04-23 12:20:52 +08:00
xingyu4j acd2787f29 Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into v-next-dev 2025-04-22 15:39:53 +08:00
YunaiV 1dbbc547fb feat:完成头像上传的功能 2025-04-22 09:19:19 +08:00
YunaiV fd98752073 feat:更新 doc、github、issue 地址 2025-04-21 20:27:22 +08:00
YunaiV 19d5a3e258 feat:Form API 增加 setLoading,:用于非 Modal 中使用 Form 时,需要 Form 自己控制 loading 状态 2025-04-20 08:52:54 +08:00
YunaiV bd3b95f447 feat:增加 tinymce 组件 2025-04-19 09:27:10 +08:00
YunaiV f6e2dc55ff feat: 增加 file 文件上传 50% 2025-04-17 23:30:34 +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
Netfan f7a4d13a4c
fix: fixed arguments of callbacks in `formApi` (#5970)
* 修复 `handleValuesChange` 传递的参数不是处理后的表单值的问题

* 修复 `handleReset` 未能传递正确参数的问题
2025-04-16 14:11:04 +08:00
Netfan 0936861da1
feat: pass `fieldsChanged` into the `handleValuesChange` callback function (#5968)
* fieldsChanged(已被改变值的字段名)将传入handleValuesChange回调函数
2025-04-16 11:29:01 +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
wyc001122 333998b518
fix: determine if scrollbar has been totally scrolled (#5934)
* 修复在系统屏幕缩放比例不为100%的情况下,滚动组件对是否已滚动到边界的判断可能不正确的问题
2025-04-15 20:51:38 +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
lztb d864085c13
feat: vben-form添加arrayToStringFields属性 (#5957)
* feat: vben-form添加arrayToStringFields属性

* feat: 修改handleArrayToStringFields和handleStringToArrayFields中嵌套数组格式的处理不一致

---------

Co-authored-by: 米山 <17726957223@189.cn>
2025-04-15 16:03:20 +08:00
Netfan bf7496f0d5
feat: add `useAlertContext` for Alert component (#5947)
* 新增Alert的子组件中获取弹窗上下文的能力
2025-04-15 00:00:05 +08:00
YunaiV 431c93c42d review:保持和 vben 一致(04-14) 2025-04-14 20:50:21 +08:00
Netfan 3fc27ff171 feat: alert support customize `footer` (#5940)
* Alert组件支持自定义footer
2025-04-14 19:23:07 +08:00
Netfan b3288a4594 fix: long navigation menu can be scrolled (#5939)
* 修复超长的导航菜单无法纵向滚动的问题
2025-04-14 19:23:07 +08:00
ming4762 9f51ddce97 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-14 19:23:07 +08:00
Netfan 8a52eb21cd fix: alert animation (#5927) 2025-04-14 19:23:07 +08:00
Netfan 9ba917c356 fix: theme mode follow the system only `auto` (#5923)
* 修复主题在未设置为auto时,仍然会跟随系统主题变化的问题。
2025-04-14 19:23:07 +08:00
Netfan eedbd23dce fix: alert action button focus, fixed #5921 (#5922)
* 修复Alert组件的按钮焦点切换问题
2025-04-14 19:23:07 +08:00
Netfan 621650435b fix: possible circular reference issue during build (#5894)
* 修复构建期间出现的循环引用警告
2025-04-14 19:22:31 +08:00
Netfan a1e761b9f8 fix: improve prompt component (#5879)
* fix: prompt component render fixed

* fix: alert buttonAlign default value
2025-04-14 19:22:31 +08:00
Netfan 5cc93d2efe feat: support logo text slot (#5872)
* 基础布局中的LOGO的文字区域允许通过插槽logo-text定制
2025-04-14 19:22:31 +08:00
wyc001122 3ba209a972 fix: 布局为双列菜单或者水平模式下, 一级菜单高亮问题 (#5870)
Co-authored-by: 王泳超 <wangyongchao@testor.com.cn>
2025-04-14 19:22:31 +08:00
Netfan f0e9e55af2
feat: alert support customize `footer` (#5940)
* Alert组件支持自定义footer
2025-04-14 11:48:21 +08:00
Netfan ff88274554
fix: long navigation menu can be scrolled (#5939)
* 修复超长的导航菜单无法纵向滚动的问题
2025-04-14 11:18:33 +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 f46ec30995
fix: theme mode follow the system only `auto` (#5923)
* 修复主题在未设置为auto时,仍然会跟随系统主题变化的问题。
2025-04-12 01:16:57 +08:00
Netfan 9bd5a190c2
fix: alert action button focus, fixed #5921 (#5922)
* 修复Alert组件的按钮焦点切换问题
2025-04-12 00:59:56 +08:00
puhui999 2207db02f5 feat: 代码生成 2025-04-10 11:34:20 +08:00
Netfan a8c5df38e9
fix: possible circular reference issue during build (#5894)
* 修复构建期间出现的循环引用警告
2025-04-08 14:50:05 +08:00
YunaiV 49632697a0 feat:增加 job 定时任务 2025-04-07 18:42:24 +08:00
YunaiV 6cb908e688 fix: AppRouteRecordRaw types(from xingyu) 2025-04-07 11:06:10 +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 d216fdca44
feat: support logo text slot (#5872)
* 基础布局中的LOGO的文字区域允许通过插槽logo-text定制
2025-04-05 13:07:52 +08:00
wyc001122 384c5d7dbb
fix: 布局为双列菜单或者水平模式下, 一级菜单高亮问题 (#5870)
Co-authored-by: 王泳超 <wangyongchao@testor.com.cn>
2025-04-05 11:04:59 +08:00
YunaiV 49f13bf301 feat:增加 user 用户的导入功能 2025-04-05 08:21:32 +08:00
Netfan 8b8bd11963 fix: alert `beforeClose` callback arguments fixed (#5845) 2025-04-03 23:04:54 +08:00
Netfan 82547b3c44 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-03 23:04:54 +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 0f5937204f fix: vbenTree modelValue synchronization (#5825) 2025-03-31 11:09:36 +08:00
Jin Mao a61d9003dd feat: sidebar button config (#5818)
* feat: 新增 PreferenceCheckboxItem 组件

* feat(preferences): 添加侧边栏按钮配置功能

* feat: 新增按钮点击事件触发功能

* feat(SidebarPreferences): 新增侧边栏折叠按钮与固定按钮配置

* feat(ui): 新增侧边栏固定按钮及配置选项

* fix(test): 修正侧边栏配置项缺失问题
2025-03-31 11:09:36 +08:00
Netfan 06ccad9db0
fix: vbenTree modelValue synchronization (#5825) 2025-03-31 10:18:35 +08:00
Jin Mao 18722ce434
feat: sidebar button config (#5818)
* feat: 新增 PreferenceCheckboxItem 组件

* feat(preferences): 添加侧边栏按钮配置功能

* feat: 新增按钮点击事件触发功能

* feat(SidebarPreferences): 新增侧边栏折叠按钮与固定按钮配置

* feat(ui): 新增侧边栏固定按钮及配置选项

* fix(test): 修正侧边栏配置项缺失问题
2025-03-31 10:17:42 +08:00
YunaiV a08d73b034 feat:岗位 post 的实现 100%(export 功能) 2025-03-29 20:00:00 +08:00
Netfan ecd31c8332 fix: vben tree component warning (#5809) 2025-03-28 21:57:18 +08:00
Netfan ffd7f1a53f fix: auto check parent after node selected (#5794) 2025-03-28 21:57:18 +08:00
Netfan c2b5f6497d
fix: vben tree component warning (#5809) 2025-03-28 16:01:30 +08:00
Netfan 870cd86393
fix: auto check parent after node selected (#5794) 2025-03-27 14:22:05 +08:00
Netfan 5659dab41e fix: popover background color in dark mode (#5783)
* 修复dark主题下的弹出层背景色在某些浏览器上表现为完全透明的问题
2025-03-26 22:51:07 +08:00
Netfan 17f156de89 fix: default value for nested fields (#5763) 2025-03-26 22:51:07 +08:00
Netfan 482227003c fix: base component focus color in form (#5760) 2025-03-26 22:51:07 +08:00
Netfan 47d821d179 feat: add `form-is-required` class for required items. fixed: #5739 (#5759) 2025-03-26 22:51:07 +08:00
vben 7a0354f4a8 chore: release 5.5.4 2025-03-26 22:51:07 +08:00
YunaiV c881a47ffd refactor: 【web-ant】重构认证模块并移除未使用的组件和功能【0fed9472】(剩余 request、present) 2025-03-26 07:36:12 +08:00
Netfan 0b650367f3
fix: popover background color in dark mode (#5783)
* 修复dark主题下的弹出层背景色在某些浏览器上表现为完全透明的问题
2025-03-25 21:17:55 +08:00
YunaiV c2914d2002 feat: request && login && router【e6939e22】(增加 login.vue 的租户选择、开启开关) 2025-03-22 09:38:38 +08:00
Netfan 03ceb2aac5
fix: default value for nested fields (#5763) 2025-03-21 16:06:14 +08:00
Netfan 39888cebaa
fix: base component focus color in form (#5760) 2025-03-21 09:41:42 +08:00
Netfan efb69fc75f
feat: add `form-is-required` class for required items. fixed: #5739 (#5759) 2025-03-21 09:25:38 +08:00
vben b92ac5c36d chore: release 5.5.4 2025-03-18 21:43:27 +08:00
Netfan feab6b3b30
fix: form item style adjustment (#5694) 2025-03-11 02:47:06 +08:00
Netfan 2d4ac33046 fix: miss default value in vbenLayout 2025-03-10 18:59:56 +08:00
Netfan 04dff33ac5 feat: improved formApi for component instance support
* 改进表单API以支持组件实例的获取,以及焦点字段的获取
2025-03-10 02:56:44 +08:00
Netfan e2a577de24
feat: add size prop to avatar component and update logo component for size handling (#5684) 2025-03-08 11:37:02 +08:00
Netfan b37ed48b9d
feat: role management page with component `tree` (#5675)
* feat: add shadcn tree

* fix: update vbenTree component

* feat: role management demo page

* feat: add cellSwitch renderer for vxeTable

* chore: remove tree examples
2025-03-07 16:03:08 +08:00
Netfan f86c9f90ad
fix: keepAlive not working for popup `appendToMain` (#5666)
* 修复弹窗和抽屉 `appendToMain` 时且启用`keepAlive` 时未能正确缓存的问题
2025-03-06 22:22:45 +08:00
Netfan 31a6ab59fb
feat: vben checkbox support indeterminate state and transition animation (#5662) 2025-03-06 16:11:02 +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
Netfan 0e0661fe02
fix: breadcrumb style is affected by the globally-imported antd styles (#5627)
* 修复全局引入Antd时,面包屑的样式会受到影响的问题
2025-02-27 22:28:59 +08:00
jinmao88 7a476372e1
fix: useDrawer中closeIconPlacement设置无效 (#5624) 2025-02-27 14:34:42 +08:00
Netfan 5e421ce607
chore: demo page menu management (#5619)
* 添加菜单管理演示页面
2025-02-27 01:22:25 +08:00
Netfan d33261d0c2
chore: demo page for system/department (#5611)
* feat: department management demo

* perf: department page improve

* feat: demo api middleware

* fix: add losing import
2025-02-25 19:47:45 +08:00
Netfan 4570d5b54b
feat: add `VbenButtonGroup` and `VbenCheckButtonGroup` with demo (#5591)
* 添加按钮组、选择按钮组以及相应的Demo
2025-02-24 13:50:50 +08:00
Netfan d49e3e81a4
fix: loading and spinner style fixed and improved (#5588) 2025-02-23 15:30:17 +08:00
Netfan 579b1b486c
feat: loading and spinner component with directive (#5587)
* 添加loading和spinner组件,以及对应的vue指令
2025-02-23 12:41:54 +08:00
Netfan c9ccd2bbab
fix: form label and control style (#5580)
* fix: form label and control style

* fix: empty label mark with required rules
2025-02-21 11:14:59 +08:00
Netfan 1a12687027
fix: vben count to animator event name fixed (#5573) 2025-02-20 23:53:47 +08:00
Netfan a221d2b491
fix: form item overflow fixed and layout improved (#5572)
* fix: form item overflow fixed and layout improved

* fix: basic form demo update

* feat: form label support render

* fix: form docs update
2025-02-20 23:05:08 +08:00
Netfan c07281bf41
fix: form item slot context fixed (#5552)
* 修复表单插槽
2025-02-17 21:37:05 +08:00
Netfan 799934171a style: code style fixed 2025-02-16 23:32:06 +08:00
Netfan 5262233312
feat: tabbar support max count limit (#5490)
* 标签栏支持限制打开的最大数量
2025-02-06 19:33:10 +08:00
Netfan 67d1f299b3
fix: renderComponentContent lose slot props data (#5466)
* 修复FormItem传递插槽时丢失插槽props的问题
2025-01-26 22:33:16 +08:00
vben 195ceec9b4 chore: release 5.5.3 2025-01-21 22:07:55 +08:00
Netfan 2d0859a727
fix: mouse events ignored on modal loading (#5409) 2025-01-16 12:17:08 +08:00
Netfan c3129663eb
fix: form update state error before form mounted (#5406) 2025-01-15 20:11:32 +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 13087a10b7
refactor: fix popup component zIndex (#5397) 2025-01-15 12:32:03 +08:00
Netfan fb0ec05ff8
perf: improve fieldMappingTime to support format function (#5392) 2025-01-14 18:15:00 +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 1ad54561b0
feat: add `noBasicLayout` in route meta (#5386)
所有菜单数据无需配置component为BasicLayout,它们将会默认使用基础布局,也可以通过meta.noBasicLayout来阻止这一行为
2025-01-14 12:12:08 +08:00
Netfan 42e322012c
fix: spinner may stop playing animation after dismiss (#5365)
* fix: spinner may stop playing animation after dismiss

* fix: animation paused more safely
2025-01-12 15:43:44 +08:00
Netfan 8cf6e8ec75
style: popover bgColor is too close to common (#5364)
修复Dark主题下,弹出层的背景色与主体背景色太过接近的问题
2025-01-12 14:48:05 +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
Netfan b8bffd884c
feat: allow close tab when mouse middle button click (#5347)
* 偏好设置增加鼠标中键关闭标签页的设置
2025-01-10 20:52:31 +08:00
Netfan 624beb6fa0
fix: locale switching logic correction (#5344)
* 修复语言切换后的数据更新逻辑

* 表单默认按钮的content属性可提供computed类型的值
2025-01-10 14:32:21 +08:00
Netfan 7606b86854
fix: vxeGrid init without search form (#5342)
* 修复vxeGrid在未使用表单的情况下,自动加载数据失效的问题。

* 暂时将vxeGrid版本锁定在4.10.0,新版本尺寸计算尚有问题
2025-01-10 11:53:06 +08:00
Netfan e10cbe23b9 chore: update deps 2025-01-10 09:22:32 +08:00
Netfan 516d0b8dc8
fix: form `fieldMappingTime` improve and `modelPropName` support (#5335)
* 表单的fieldMappingTime支持将格式化掩码设为null以便原值映射,这样可以支持非日期时间类型的组件;
* 表单增加modelPropName设置组件的双向绑定属性名,用于支持未提前注册的双向绑定属性为非默认名称的组件。
* 增加一些经常会有人提到的组合字段演示,
2025-01-09 22:49:28 +08:00
Netfan 99c7fd72f8 fix: code lint 2025-01-09 13:04:14 +08:00
Netfan 2828e7a7b6
fix: form `fieldMappingTime` is not working (#5333)
* fix: form option `fieldMappingTime` is not working

* fix: form merge support `fieldMappingTime`
2025-01-09 12:28:33 +08:00
王文庭 16162c01ed
fix: download from url triggered twice sometimes (#5319)
解决Chrome、Safari通过路径一次下载两个文件的BUG
2025-01-08 16:01:23 +08:00
Netfan 801c640724
fix: vben select placeholder color (#5286) 2025-01-02 10:19:20 +08:00
Vben 081d2aed23
perf: format code with better style (#5283) 2025-01-01 11:39:49 +08:00
Netfan 4d81b9d18d
fix: sidebar preferences fixed (#5276) 2024-12-31 12:36:45 +08:00
Netfan 3af22f7e91
fix: header logo may not be collapsed in `header-sidebar-nav` layout (#5274) 2024-12-31 11:35:58 +08:00
Netfan 2135cb8ece
feat: new layout `sidebar nav with full header` (#5270) 2024-12-31 00:30:15 +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 2eb7fed9f4
fix: header-mixed layout side-menu active (#5265)
* fix: header-mixed layout side-menu active

* fix: config test
2024-12-30 15:24:01 +08:00
Netfan ff8d5ca351
feat: header mixed layout (#5263)
* feat: new layout header-mixed

* fix: header-mixed layout update

* feat: layout preference update

* fix: extra menus follow layout setting
2024-12-30 14:01:17 +08:00
vben 07c4ad05f4 chore: release 5.5.2 2024-12-28 22:15:00 +08:00
Netfan ec2c6eff6f
feat: header menu align support (#5256)
* feat: header menu align support

* fix: typo
2024-12-28 16:16:48 +08:00
Netfan acd87b2250
feat: add `resizable` and `ColPage` component (#5188)
* feat: add component resizable

* feat: component `ColPage` with demo
2024-12-19 20:37:42 +08:00
Netfan 1853ba1d60
fix: sidebar header height (#5183) 2024-12-19 11:45:32 +08:00
Netfan 10b3a16f79
fix: sidebar style on focus (#5178) 2024-12-18 22:52:40 +08:00
Netfan b22d900e27
feat: form compact mode support (#5165) 2024-12-17 20:51:17 +08:00
Netfan 181e38733c
fix: form auto submit no effect when showDefaultActions is false (#5163) 2024-12-17 20:15:09 +08:00
Netfan 593916d6aa
feat: form `colon` support (#5156) 2024-12-16 22:37:29 +08:00
Netfan 38805a0e1f
feat: improve code login demo (#5154)
* feat: add some method in formApi

* fix: VbenPinInput style with small screen

* chore: improve code login demo
2024-12-16 20:48:51 +08:00
Netfan 0f756503ff feat: add demo for modify menu badge data 2024-12-16 12:45:07 +08:00
Netfan 2efb5b71c3
feat: auto activate subMenu on select root menu (#5147)
* feat: auto activate subMenu on click root menu

* fix: prop name fixed

* chore: test and docs update
2024-12-16 02:57:50 +08:00
Netfan 22c1f86ca1
fix: `disabledOnChangeListener` not work in form (#5146) 2024-12-16 00:57:10 +08:00
Netfan 7581fb381f
fix: pinInput value synchronous update (#5142) 2024-12-15 14:26:42 +08:00
Netfan 698daf46c7
fix: form component events bind (#5137)
* fix: from component events bind

* chore: update docs

* chore: default value and docs sync
2024-12-14 17:42:13 +08:00
Netfan 7fbf7b189a
feat: tabbar support mouse wheel vertical (#5129)
* feat: tabbar support mouse wheel

* docs: add tabbar wheelable tips

* chore: resolve vitest test
2024-12-13 14:45:06 +08:00
Netfan be208fe915
fix: form support `disabledOnInputListener` (#5127)
* fix: form support `disabledOnInputListener`

* chore: docs update
2024-12-13 11:18:45 +08:00
Netfan 1d3729aa24
fix: form submission not appropriate (#5126) 2024-12-13 10:56:24 +08:00
vben cbca9ffd95 chore: release 5.5.1 2024-12-12 22:47:11 +08:00