mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2025-12-10 04:47:50 +00:00
优化表单配置
This commit is contained in:
@@ -28,12 +28,10 @@ const options = [
|
||||
},
|
||||
children: [{
|
||||
labelKey: 'common.label.langCn',
|
||||
value: GlobalLocales.CN,
|
||||
type: 'option'
|
||||
value: GlobalLocales.CN
|
||||
}, {
|
||||
labelKey: 'common.label.langEn',
|
||||
value: GlobalLocales.EN,
|
||||
type: 'option'
|
||||
value: GlobalLocales.EN
|
||||
}]
|
||||
},
|
||||
{
|
||||
@@ -46,12 +44,10 @@ const options = [
|
||||
},
|
||||
children: [{
|
||||
labelKey: 'common.label.layoutLeft',
|
||||
value: GlobalLayoutMode.LEFT,
|
||||
type: 'option'
|
||||
value: GlobalLayoutMode.LEFT
|
||||
}, {
|
||||
labelKey: 'common.label.layoutTop',
|
||||
value: GlobalLayoutMode.TOP,
|
||||
type: 'option'
|
||||
value: GlobalLayoutMode.TOP
|
||||
}]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -35,6 +35,46 @@ const formOptions = [{
|
||||
value: '',
|
||||
placeholder: '选择出生日期',
|
||||
required: true
|
||||
}, {
|
||||
label: '兴趣爱好',
|
||||
type: 'checkbox-group',
|
||||
prop: 'hobby',
|
||||
value: '',
|
||||
required: true,
|
||||
children: [
|
||||
{
|
||||
label: '编程',
|
||||
value: 'program'
|
||||
},
|
||||
{
|
||||
label: '吃饭',
|
||||
value: 'eat'
|
||||
},
|
||||
{
|
||||
label: '睡觉',
|
||||
value: 'sleep'
|
||||
}
|
||||
]
|
||||
}, {
|
||||
label: '性别',
|
||||
type: 'radio-group',
|
||||
prop: 'gender',
|
||||
value: '',
|
||||
required: true,
|
||||
children: [
|
||||
{
|
||||
label: '男',
|
||||
value: 'male'
|
||||
},
|
||||
{
|
||||
label: '女',
|
||||
value: 'female'
|
||||
},
|
||||
{
|
||||
label: '保密',
|
||||
value: 'unknown'
|
||||
}
|
||||
]
|
||||
}]
|
||||
const userDto = ref({
|
||||
userName: '',
|
||||
|
||||
Reference in New Issue
Block a user