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

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