feat: allowClear to clearable

This commit is contained in:
xingyu4j
2025-10-16 18:05:39 +08:00
parent dd1528d45a
commit e358c85c15
16 changed files with 107 additions and 100 deletions

View File

@@ -66,7 +66,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '名字',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入名字',
},
},
@@ -75,7 +75,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '性别',
component: 'Select',
componentProps: {
allowClear: true,
clearable: true,
options: getDictOptions(DICT_TYPE.SYSTEM_USER_SEX, 'number'),
placeholder: '请选择性别',
},
@@ -85,7 +85,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '简介',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入简介',
},
},
@@ -95,7 +95,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'DatePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];