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
vben
1575619d53
chore: release v5.5.8
2025-07-19 22:19:50 +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
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
vben
b9aef618fe
chore: release 5.5.7
2025-06-04 05:33:06 +08: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
Netfan
0c3edb10b0
fix: getFieldComponentRef will return actual ref within AsyncComponentWrapper ( #6252 )
...
修复异步加载组件时,表单的getFieldComponentRef方法没能获取到正确的组件实例
2025-05-21 14:48:51 +08:00
vben
cc6c9bf7a0
chore: release v5.5.6
2025-05-06 22:32:58 +08:00
Vben
17a18fc9ba
chore: close eslint object sorting ( #6101 )
2025-05-03 16:06:36 +08:00
Netfan
add1e61b6f
fix: show validation message as tooltip in compact form ( #6087 )
...
* 紧凑模式表单的校验消息将显示为一个tooltip
2025-04-30 23:41:44 +08:00
Netfan
8aa7dabeff
fix: calculation for collapsing search form is incorrect while initially hidden ( #6068 )
...
* 修复当默认隐藏搜索表单时,折叠位置的计算不正确的问题
2025-04-28 23:20:33 +08:00
vben
7c7051a11e
chore: release v5.5.5
2025-04-27 21:45:10 +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
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
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
04dff33ac5
feat: improved formApi for component instance support
...
* 改进表单API以支持组件实例的获取,以及焦点字段的获取
2025-03-10 02:56:44 +08:00
Netfan
5e421ce607
chore: demo page menu management ( #5619 )
...
* 添加菜单管理演示页面
2025-02-27 01:22:25 +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
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
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
c3129663eb
fix: form update state error before form mounted ( #5406 )
2025-01-15 20:11:32 +08:00
Netfan
fb0ec05ff8
perf: improve fieldMappingTime to support format function ( #5392 )
2025-01-14 18:15:00 +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
516d0b8dc8
fix: form `fieldMappingTime` improve and `modelPropName` support ( #5335 )
...
* 表单的fieldMappingTime支持将格式化掩码设为null以便原值映射,这样可以支持非日期时间类型的组件;
* 表单增加modelPropName设置组件的双向绑定属性名,用于支持未提前注册的双向绑定属性为非默认名称的组件。
* 增加一些经常会有人提到的组合字段演示,
2025-01-09 22:49:28 +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
Vben
081d2aed23
perf: format code with better style ( #5283 )
2025-01-01 11:39:49 +08:00
vben
07c4ad05f4
chore: release 5.5.2
2024-12-28 22:15:00 +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
22c1f86ca1
fix: `disabledOnChangeListener` not work in form ( #5146 )
2024-12-16 00:57:10 +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
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
Netfan
7c4dfdc1c2
feat: form support reverse action buttons ( #5108 )
...
* feat: form support reverse action buttons
* fix: submit button class
2024-12-11 15:29:25 +08:00
Netfan
43adc943b9
docs: fix typos ( #5105 )
2024-12-11 14:48:08 +08:00
Netfan
b75a8e6a2b
fix: form setValues not support `dayjs` and `Date` value ( #5064 )
...
* fix: setFormValues not support `dayjs object` value
* fix: setFormValues not support `Date` value
* chore: remove console log
2024-12-07 11:09:55 +08:00
Netfan
4c1fc4a11e
fix: validate message not display, fix #5034 ( #5038 )
2024-12-07 11:02:59 +08:00
Netfan
03f166f8a4
fix: `form` prop `handleValuesChange` no effect ( #5060 )
2024-12-07 11:02:14 +08:00