表单特殊处理checkbox和radio没有value属性的情况

This commit is contained in:
Gary Fu
2023-12-31 22:24:14 +08:00
parent 9b0c5f6373
commit a73e998498
4 changed files with 47 additions and 12 deletions

View File

@@ -55,6 +55,26 @@ const formOptions = [{
value: 'sleep'
}
]
}, {
label: '职业',
type: 'select',
prop: 'career',
value: '',
required: true,
children: [
{
label: '程序员',
value: 'programer'
},
{
label: '无业游民',
value: 'none'
},
{
label: '教师',
value: 'teacher'
}
]
}, {
label: '性别',
type: 'radio-group',