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>
5 months ago
Jin Mao
260e45cd7b
Merge branch 'main' into feat/add-vben-modal-animation
5 months ago
vben
1575619d53
chore: release v5.5.8
6 months ago
panda7
fc9ea347ca
Merge branch 'main' into feat/add-vben-modal-animation
6 months ago
panda7
1a9b0509d5
feat: add animation effects to VbenModal component
6 months ago
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>
6 months ago
panda7
d4786f3f75
Merge branch 'main' into feature/scroll_to_the_error_field
6 months ago
xue-jn
b333fd676d
docs: update vben-drawer.md ( #6478 )
...
* docs: update vben-drawer.md
* docs: update vben-drawer.md
---------
Co-authored-by: Jin Mao <50581550+jinmao88@users.noreply.github.com>
6 months ago
sqchen
243f3a201d
feat: add scrollToFirstError to the form component
6 months ago
Netfan
78076e70b4
chore: update deps
6 months ago
Netfan
97b8e28a2b
docs: fix delete request usage ( #6389 )
7 months ago
vben
b9aef618fe
chore: release 5.5.7
7 months ago
wyc001122
78c3c9da6f
docs(settings): 完善'生产环境动态配置'步骤 ( #6297 )
7 months ago
wyc001122
f31360ba4e
feat: support for hybrid permission access control mode ( #6294 )
...
* feat: 添加混合权限访问控制模式
* feat: 文档补充
7 months ago
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>
7 months ago
panda7
a2bdcd6e49
feat: ellipsis text automatically displays tooltip based on ellipsis ( #6244 )
...
* feat: ellipsis text automatically displays tooltip based on ellipsis
* feat: ellipsis text automatically displays tooltip based on ellipsis
---------
Co-authored-by: sqchen <9110848@qq.com>
Co-authored-by: sqchen <chenshiqi@sshlx.com>
7 months ago
wyc001122
8ac97688da
fix(preferences): 更新内容内边距默认值 ( #6233 )
...
Co-authored-by: wyc001122 <wangyongchao@testor.com.cn>
8 months ago
李轻舟
2efacb3e5b
docs: Update build.md ( #6228 )
8 months ago
wyc001122
dae46abb71
feat: additional-settings ( #6225 )
...
* feat(preferences): 补充VbenAdminLayout传入属性(来自偏好设置)
* docs(@vben/docs):update settings doc
---------
Co-authored-by: wyc001122 <wangyongchao@testor.com.cn>
8 months ago
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提示的警告
8 months ago
wyc001122
84ef207d9c
docs(@vben/docs): update settings doc ( #6128 )
...
Co-authored-by: wyc001122 <wangyongchao@testor.com.cn>
8 months ago
vben
cc6c9bf7a0
chore: release v5.5.6
8 months ago
Vben
5689ac60ff
feat(project): migrate from husky and lint-staged to lefthook ( #6104 )
8 months ago
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>
8 months ago
Netfan
3e6d608a2f
fix: destroyOnClose incorrect default value, fixed #6092 ( #6093 )
8 months ago
Trivikram Kamat
dd2b1ed580
fix: install corepack from npm ( #5905 )
...
* fix: install corepack from npm
* docs: install corepack from npm
8 months ago
vben
7c7051a11e
chore: release v5.5.5
8 months ago
Jin Mao
9ee6d06d50
docs: add deepWiki doc link ( #6057 )
8 months ago
Netfan
cb45987fe2
docs: update example ( #6036 )
...
* 跟进后端菜单逻辑的修改,现已无需传递basicLayout布局
8 months ago
Netfan
14bd6dd25d
fix: destroyOnClose works within connectedComponent ( #5989 )
...
* 修复destroyOnClose没能销毁connectedComponent自身的问题
9 months ago
PIPEDREA_WZJ
7f269e0d69
Update tailwindcss.md ( #5602 )
...
tailwindcss最新的版本已经是v4.x,vben中使用的是3.x的tailwindcss。在未进行兼容前,会出现运行失败的问题
9 months ago
Netfan
f7a4d13a4c
fix: fixed arguments of callbacks in `formApi` ( #5970 )
...
* 修复 `handleValuesChange` 传递的参数不是处理后的表单值的问题
* 修复 `handleReset` 未能传递正确参数的问题
9 months ago
Netfan
0936861da1
feat: pass `fieldsChanged` into the `handleValuesChange` callback function ( #5968 )
...
* fieldsChanged(已被改变值的字段名)将传入handleValuesChange回调函数
9 months ago
Netfan
d18f56177c
docs: update alert and apiComponent docs ( #5961 )
9 months ago
ming4762
c7e6210c8d
feat: `modal`&`drawer` support `center-footer` slot ( #5956 )
9 months ago
Netfan
fcdc1a1602
feat: add more expose methods for `apiComponent` ( #5958 )
...
* 为ApiComponent组件添加getOptions和getValue导出方法。
9 months ago
Netfan
bf7496f0d5
feat: add `useAlertContext` for Alert component ( #5947 )
...
* 新增Alert的子组件中获取弹窗上下文的能力
9 months ago
Netfan
f0e9e55af2
feat: alert support customize `footer` ( #5940 )
...
* Alert组件支持自定义footer
9 months ago
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>
9 months ago
ming4762
b5700bd0b1
perf: improve `autoSelect` of `ApiComponent` ( #5936 )
...
* fix: 修复autoSelect不生效的问题,props.valueField已经被omit了
* feat: ApiComponent autoSelect支持使用函数,可以满足灵活性要求更高的场景
9 months ago
Netfan
a8c4786311
feat: api-component support autoSelect prop ( #5931 )
...
* feat: api-component support autoSelect prop
* docs: add version requirement
9 months ago
Netfan
2971ccc0b7
docs: docs modal z-index fixed, update alert docs ( #5930 )
9 months ago
Netfan
9379093a4f
feat: customizable table separator ( #5898 )
...
* 表格的分隔条支持定制背景色或完全移除
9 months ago
Netfan
71e8d12b70
fix: improve prompt component ( #5879 )
...
* fix: prompt component render fixed
* fix: alert buttonAlign default value
9 months ago
superdl1996
cde1a85394
docs: typo ( #5855 )
9 months ago
Netfan
c623604ea9
docs: fix alert demo in docs
9 months ago
Netfan
ecf518bb02
fix: alert `beforeClose` callback arguments fixed ( #5845 )
9 months ago
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
9 months ago
Joeshu
0e3abc2b53
docs: add third-party libraries to check update methods ( #5819 )
9 months ago
Arthur Darkstone
a96be3db98
docs: add explanation and related script configuration to distinguish build environment ( #5826 )
...
* docs: add explanation and related script configuration to distinguish build environment
* docs: fix spell error
9 months ago