fix:【system 系统管理】ele、antd 的搜索清理属性不对的问题

This commit is contained in:
YunaiV
2025-09-06 10:24:59 +08:00
parent fcaa81ff3b
commit 0539aece1b
90 changed files with 259 additions and 259 deletions

View File

@@ -19,7 +19,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '用户编号',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入用户编号',
},
},
@@ -29,7 +29,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.USER_TYPE, 'number'),
allowClear: true,
clearable: true,
placeholder: '请选择用户类型',
},
},
@@ -38,7 +38,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '应用名',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入应用名',
},
},
@@ -49,7 +49,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
// TODO @puhui999时间范围不太对。结束时间不是 23:59:59 这种哈
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
{
@@ -57,7 +57,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '执行时长',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入执行时长',
},
},
@@ -66,7 +66,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '结果码',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入结果码',
},
},

View File

@@ -20,7 +20,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '用户编号',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入用户编号',
},
},
@@ -30,7 +30,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.USER_TYPE, 'number'),
allowClear: true,
clearable: true,
placeholder: '请选择用户类型',
},
},
@@ -39,7 +39,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '应用名',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入应用名',
},
},
@@ -49,7 +49,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
{
@@ -61,7 +61,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
DICT_TYPE.INFRA_API_ERROR_LOG_PROCESS_STATUS,
'number',
),
allowClear: true,
clearable: true,
placeholder: '请选择处理状态',
},
defaultValue: InfraApiErrorLogProcessStatusEnum.INIT,

View File

@@ -46,7 +46,7 @@ export function useImportTableFormSchema(): VbenFormSchema[] {
label: '表名称',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入表名称',
},
},
@@ -55,7 +55,7 @@ export function useImportTableFormSchema(): VbenFormSchema[] {
label: '表描述',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入表描述',
},
},
@@ -166,7 +166,7 @@ export function useGenerationInfoBaseFormSchema(): VbenFormSchema[] {
help: '分配到指定菜单下,例如 系统管理',
component: 'ApiTreeSelect',
componentProps: {
allowClear: true,
clearable: true,
api: async () => {
const data = await getMenuList();
data.unshift({
@@ -260,7 +260,7 @@ export function useGenerationInfoTreeFormSchema(
help: '树显示的父编码字段名,例如 parent_Id',
componentProps: {
class: 'w-full',
allowClear: true,
clearable: true,
placeholder: '请选择',
options: columns.map((column) => ({
label: column.columnName,
@@ -276,7 +276,7 @@ export function useGenerationInfoTreeFormSchema(
help: '树节点显示的名称字段,一般是 name',
componentProps: {
class: 'w-full',
allowClear: true,
clearable: true,
placeholder: '请选择名称字段',
options: columns.map((column) => ({
label: column.columnName,
@@ -312,7 +312,7 @@ export function useGenerationInfoSubTableFormSchema(
help: '关联主表(父表)的表名, 如system_user',
componentProps: {
class: 'w-full',
allowClear: true,
clearable: true,
placeholder: '请选择',
options: tables.map((table) => ({
label: `${table.tableName}${table.tableComment}`,
@@ -328,7 +328,7 @@ export function useGenerationInfoSubTableFormSchema(
help: '子表关联的字段, 如user_id',
componentProps: {
class: 'w-full',
allowClear: true,
clearable: true,
placeholder: '请选择',
options: columns.map((column) => ({
label: `${column.columnName}:${column.columnComment}`,
@@ -344,7 +344,7 @@ export function useGenerationInfoSubTableFormSchema(
help: '主表与子表的关联关系',
componentProps: {
class: 'w-full',
allowClear: true,
clearable: true,
placeholder: '请选择',
options: [
{
@@ -370,7 +370,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '表名称',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入表名称',
},
},
@@ -379,7 +379,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '表描述',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入表描述',
},
},
@@ -389,7 +389,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -109,7 +109,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
componentProps: {
options: getDictOptions(DICT_TYPE.INFRA_CONFIG_TYPE, 'number'),
placeholder: '请选择系统内置',
allowClear: true,
clearable: true,
},
},
{
@@ -118,7 +118,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

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: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -23,7 +23,7 @@ export function useFormSchema(): VbenFormSchema[] {
label: '上级示例分类',
component: 'ApiTreeSelect',
componentProps: {
allowClear: true,
clearable: true,
api: async () => {
const data = await getDemo02CategoryList({});
data.unshift({
@@ -60,7 +60,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '名字',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入名字',
},
},
@@ -69,7 +69,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '父级编号',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入父级编号',
},
},
@@ -79,7 +79,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

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: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];
@@ -192,7 +192,7 @@ export function useDemo03CourseGridFormSchema(): VbenFormSchema[] {
label: '学生编号',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入学生编号',
},
},
@@ -201,7 +201,7 @@ export function useDemo03CourseGridFormSchema(): VbenFormSchema[] {
label: '名字',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入名字',
},
},
@@ -210,7 +210,7 @@ export function useDemo03CourseGridFormSchema(): VbenFormSchema[] {
label: '分数',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入分数',
},
},
@@ -220,7 +220,7 @@ export function useDemo03CourseGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];
@@ -307,7 +307,7 @@ export function useDemo03GradeGridFormSchema(): VbenFormSchema[] {
label: '学生编号',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入学生编号',
},
},
@@ -316,7 +316,7 @@ export function useDemo03GradeGridFormSchema(): VbenFormSchema[] {
label: '名字',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入名字',
},
},
@@ -325,7 +325,7 @@ export function useDemo03GradeGridFormSchema(): VbenFormSchema[] {
label: '班主任',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入班主任',
},
},
@@ -335,7 +335,7 @@ export function useDemo03GradeGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

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: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

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: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -50,7 +50,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -280,7 +280,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -97,7 +97,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '任务名称',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入任务名称',
},
},
@@ -107,7 +107,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.INFRA_JOB_STATUS, 'number'),
allowClear: true,
clearable: true,
placeholder: '请选择任务状态',
},
},
@@ -116,7 +116,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '处理器的名字',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入处理器的名字',
},
},

View File

@@ -19,7 +19,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '处理器的名字',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入处理器的名字',
},
},
@@ -28,7 +28,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '开始执行时间',
component: 'DatePicker',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '选择开始执行时间',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
showTime: {
@@ -42,7 +42,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '结束执行时间',
component: 'DatePicker',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '选择结束执行时间',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
showTime: {
@@ -57,7 +57,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.INFRA_JOB_LOG_STATUS, 'number'),
allowClear: true,
clearable: true,
placeholder: '请选择任务状态',
},
},