mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-02-03 02:18:40 +08:00
fix(form): ensure that the hidden fields of the form are verified properly, fix #413
This commit is contained in:
parent
5c57a1dda1
commit
237f41da68
@ -20,6 +20,7 @@
|
|||||||
- 确保 progress 进度条正确关闭
|
- 确保 progress 进度条正确关闭
|
||||||
- 修复表格勾选列配置失效问题
|
- 修复表格勾选列配置失效问题
|
||||||
- 确保一级菜单可以被隐藏
|
- 确保一级菜单可以被隐藏
|
||||||
|
- 确保表单隐藏字段校验正常
|
||||||
|
|
||||||
### 🎫 Chores
|
### 🎫 Chores
|
||||||
|
|
||||||
|
@ -156,9 +156,9 @@
|
|||||||
if (!isShow) {
|
if (!isShow) {
|
||||||
rule.required = false;
|
rule.required = false;
|
||||||
}
|
}
|
||||||
if (rule.required && component) {
|
if (component) {
|
||||||
if (!Reflect.has(rule, 'type')) {
|
if (!Reflect.has(rule, 'type')) {
|
||||||
rule.type = 'string';
|
rule.type = component === 'InputNumber' ? 'number' : 'string';
|
||||||
}
|
}
|
||||||
const joinLabel = Reflect.has(props.schema, 'rulesMessageJoinLabel')
|
const joinLabel = Reflect.has(props.schema, 'rulesMessageJoinLabel')
|
||||||
? rulesMessageJoinLabel
|
? rulesMessageJoinLabel
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
span.anticon:not(.app-iconify) {
|
span.anticon:not(.app-iconify) {
|
||||||
vertical-align: 0.135em;
|
vertical-align: 0.125em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-back-top {
|
.ant-back-top {
|
||||||
|
@ -38,6 +38,14 @@
|
|||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'id',
|
||||||
|
label: 'id',
|
||||||
|
required: true,
|
||||||
|
defaultValue: 0,
|
||||||
|
component: 'InputNumber',
|
||||||
|
show: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'field3',
|
field: 'field3',
|
||||||
component: 'DatePicker',
|
component: 'DatePicker',
|
||||||
|
Loading…
Reference in New Issue
Block a user