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

@@ -21,7 +21,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '用户编号',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入用户编号',
},
},
@@ -31,7 +31,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.USER_TYPE, 'number'),
allowClear: true,
clearable: true,
placeholder: '请选择用户类型',
},
},
@@ -40,7 +40,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '应用名',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入应用名',
},
},
@@ -50,7 +50,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'DatePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
{
@@ -58,7 +58,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '执行时长',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入执行时长',
},
},
@@ -67,7 +67,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '结果码',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入结果码',
},
},