panda7
573637222d
feat: add form handleCollapsedChange event ( #6893 )
* feat: add form handleCollapsedChange event
* fix: ts lint
* fix: ts error
---------
Co-authored-by: sqchen <chenshiqi@sshlx.com>
4 months ago
pangyajun123
26f8d2aa30
perf: 表单需要通过权限控制是否需要展示,dependencies.if 这种方式需要别triggerFields触发字段,不能满足要求 ( #6756 )
6 months ago
谦元吉
58e3941810
chore(docs): update the component import of the form adapter description in the document ( #6656 )
7 months ago
ming4762
1e6417f95b
feat: vBenForm add layout: inline ( #6644 )
7 months ago
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>
8 months ago
panda7
1a9b0509d5
feat: add animation effects to VbenModal component
8 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>
8 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>
9 months ago
sqchen
243f3a201d
feat: add scrollToFirstError to the form component
9 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>
10 months ago
Netfan
3e6d608a2f
fix: destroyOnClose incorrect default value, fixed #6092 ( #6093 )
11 months ago
Netfan
14bd6dd25d
fix: destroyOnClose works within connectedComponent ( #5989 )
* 修复destroyOnClose没能销毁connectedComponent自身的问题
11 months ago
Netfan
f7a4d13a4c
fix: fixed arguments of callbacks in `formApi` ( #5970 )
* 修复 `handleValuesChange` 传递的参数不是处理后的表单值的问题
* 修复 `handleReset` 未能传递正确参数的问题
11 months ago
Netfan
0936861da1
feat: pass `fieldsChanged` into the `handleValuesChange` callback function ( #5968 )
* fieldsChanged(已被改变值的字段名)将传入handleValuesChange回调函数
11 months ago
Netfan
d18f56177c
docs: update alert and apiComponent docs ( #5961 )
11 months ago
ming4762
c7e6210c8d
feat: `modal`&`drawer` support `center-footer` slot ( #5956 )
11 months ago
Netfan
fcdc1a1602
feat: add more expose methods for `apiComponent` ( #5958 )
* 为ApiComponent组件添加getOptions和getValue导出方法。
11 months ago
Netfan
bf7496f0d5
feat: add `useAlertContext` for Alert component ( #5947 )
* 新增Alert的子组件中获取弹窗上下文的能力
11 months ago
Netfan
f0e9e55af2
feat: alert support customize `footer` ( #5940 )
* Alert组件支持自定义footer
11 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>
11 months ago
ming4762
b5700bd0b1
perf: improve `autoSelect` of `ApiComponent` ( #5936 )
* fix: 修复autoSelect不生效的问题,props.valueField已经被omit了
* feat: ApiComponent autoSelect支持使用函数,可以满足灵活性要求更高的场景
11 months ago
Netfan
a8c4786311
feat: api-component support autoSelect prop ( #5931 )
* feat: api-component support autoSelect prop
* docs: add version requirement
12 months ago
Netfan
9379093a4f
feat: customizable table separator ( #5898 )
* 表格的分隔条支持定制背景色或完全移除
12 months ago
Netfan
71e8d12b70
fix: improve prompt component ( #5879 )
* fix: prompt component render fixed
* fix: alert buttonAlign default value
12 months ago
superdl1996
cde1a85394
docs: typo ( #5855 )
12 months ago
Netfan
ecf518bb02
fix: alert `beforeClose` callback arguments fixed ( #5845 )
12 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
12 months ago
Netfan
d6f239c564
docs: fix api-component demo link ( #5828 )
12 months ago
Netfan
166e9a0e82
chore: add demo for apiComponent with caching and concurrency ( #5827 )
* chore: add demo for apiComponent with caching and concurrency
* docs: update api component docs
12 months ago
Netfan
e91e4e0eea
docs: fix form `compact` docs ( #5811 )
* docs: fix form `compact` docs
* docs: remove `compact` from FormCommonConfig
1 year ago
Netfan
096545c5a1
docs: update table slots docs
1 year ago
Netfan
04dff33ac5
feat: improved formApi for component instance support
* 改进表单API以支持组件实例的获取,以及焦点字段的获取
1 year ago
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
1 year ago
Netfan
e815f0ff89
docs: `vbenVxeTable` slots docs update
1 year ago
Netfan
c3eb4fab13
docs: fix zod rules docs
1 year ago
Netfan
1a12687027
fix: vben count to animator event name fixed ( #5573 )
1 year ago
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
1 year ago
Netfan
a9f9031f49
docs: update form docs ( #5485 )
1 year ago
Netfan
509b268fba
docs: update docs ( #5408 )
1 year ago
Netfan
8cc903c0e1
feat: modal state locked on submitting ( #5401 )
* feat: modal state locked on submitting
* docs: 更新modal文档
1 year ago
Netfan
fb0ec05ff8
perf: improve fieldMappingTime to support format function ( #5392 )
1 year ago
Netfan
e1c503e51e
feat: support set default props for drawer and modal ( #5390 )
* feat: support set default props for drawer and modal
* docs: fix typo
1 year ago
Netfan
6719e2679f
feat: popup component support overlay blur effect ( #5359 )
1 year ago
Netfan
1a04a05b79
perf: modal and drawer api support chain calls ( #5351 )
* perf: modal and drawer api support chain calls
* fix: typo
1 year ago
Netfan
516d0b8dc8
fix: form `fieldMappingTime` improve and `modelPropName` support ( #5335 )
* 表单的fieldMappingTime支持将格式化掩码设为null以便原值映射,这样可以支持非日期时间类型的组件;
* 表单增加modelPropName设置组件的双向绑定属性名,用于支持未提前注册的双向绑定属性为非默认名称的组件。
* 增加一些经常会有人提到的组合字段演示,
1 year ago
Netfan
376aad5d26
feat: drawer close icon placement ( #5269 )
1 year ago
Netfan
27ba45aa75
docs: update dialog and drawer docs
1 year ago
Netfan
e86a7906fe
feat: drawer support `onOpened` & `onClosed`
1 year ago
Netfan
b22d900e27
feat: form compact mode support ( #5165 )
1 year ago
Netfan
4fe44611d3
docs: fix docs-link and add `EllipsisText` docs ( #5158 )
* docs: fix docs-link and add `EllipsisText` docs
* fix: ellipsisText docs link
1 year ago