mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2025-12-10 04:47:50 +00:00
表单特殊处理checkbox和radio没有value属性的情况
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user