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

@@ -26,7 +26,7 @@ export function useFormSchema(): VbenFormSchema[] {
label: '上级部门',
component: 'ApiTreeSelect',
componentProps: {
allowClear: true,
clearable: true,
api: async () => {
const data = await getDeptList();
data.unshift({
@@ -72,7 +72,7 @@ export function useFormSchema(): VbenFormSchema[] {
labelField: 'nickname',
valueField: 'id',
placeholder: '请选择负责人',
allowClear: true,
clearable: true,
},
rules: z.number().optional(),
},

View File

@@ -13,7 +13,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '用户名称',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入用户名称',
},
},
@@ -22,7 +22,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '登录地址',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入登录地址',
},
},
@@ -32,7 +32,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -20,7 +20,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
{
@@ -28,7 +28,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '用户编号',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入用户编号',
},
},
@@ -38,7 +38,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.USER_TYPE, 'number'),
allowClear: true,
clearable: true,
placeholder: '请选择用户类型',
},
},
@@ -48,7 +48,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.SYSTEM_MAIL_SEND_STATUS, 'number'),
allowClear: true,
clearable: true,
placeholder: '请选择发送状态',
},
},
@@ -60,7 +60,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
api: async () => await getSimpleMailAccountList(),
labelField: 'mail',
valueField: 'id',
allowClear: true,
clearable: true,
placeholder: '请选择邮箱账号',
},
},
@@ -69,7 +69,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '模板编号',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入模板编号',
},
},

View File

@@ -161,7 +161,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
allowClear: true,
clearable: true,
placeholder: '请选择开启状态',
},
},
@@ -170,7 +170,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '模板编码',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入模板编码',
},
},
@@ -179,7 +179,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '模板名称',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入模板名称',
},
},
@@ -191,7 +191,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
api: async () => await getSimpleMailAccountList(),
labelField: 'mail',
valueField: 'id',
allowClear: true,
clearable: true,
placeholder: '请选择邮箱账号',
},
},
@@ -201,7 +201,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -39,7 +39,7 @@ export function useFormSchema(): VbenFormSchema[] {
label: '上级菜单',
component: 'ApiTreeSelect',
componentProps: {
allowClear: true,
clearable: true,
api: async () => {
const data = await getMenuList();
data.unshift({
@@ -170,7 +170,7 @@ export function useFormSchema(): VbenFormSchema[] {
label: '组件名称',
component: 'AutoComplete',
componentProps: {
allowClear: true,
clearable: true,
filterOption(input: string, option: { value: string }) {
return option.value.toLowerCase().includes(input.toLowerCase());
},

View File

@@ -71,7 +71,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Input',
componentProps: {
placeholder: '请输入公告标题',
allowClear: true,
clearable: true,
},
},
{
@@ -81,7 +81,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
componentProps: {
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
placeholder: '请选择公告状态',
allowClear: true,
clearable: true,
},
},
];

View File

@@ -18,7 +18,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '用户编号',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入用户编号',
},
},
@@ -27,7 +27,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '用户类型',
component: 'Select',
componentProps: {
allowClear: true,
clearable: true,
options: getDictOptions(DICT_TYPE.USER_TYPE, 'number'),
placeholder: '请选择用户类型',
},
@@ -37,7 +37,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '模板编码',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入模板编码',
},
},
@@ -50,7 +50,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE,
'number',
),
allowClear: true,
clearable: true,
placeholder: '请选择模版类型',
},
},
@@ -60,7 +60,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -21,7 +21,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING, 'boolean'),
allowClear: true,
clearable: true,
placeholder: '请选择是否已读',
},
},
@@ -30,7 +30,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '发送时间',
component: 'RangePicker',
componentProps: {
allowClear: true,
clearable: true,
...getRangePickerDefaultProps(),
},
},

View File

@@ -102,7 +102,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '模板名称',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入模板名称',
},
},
@@ -111,7 +111,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '模板编码',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入模板编码',
},
},
@@ -121,7 +121,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
allowClear: true,
clearable: true,
placeholder: '请选择状态',
},
},
@@ -134,7 +134,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE,
'number',
),
allowClear: true,
clearable: true,
placeholder: '请选择模板类型',
},
},
@@ -144,7 +144,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -184,7 +184,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
allowClear: true,
clearable: true,
placeholder: '请输入状态',
},
},

View File

@@ -22,7 +22,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: 'nickname',
value: 'id',
},
allowClear: true,
clearable: true,
placeholder: '请选择操作人员',
},
},
@@ -31,7 +31,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '操作模块',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入操作模块',
},
},
@@ -40,7 +40,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '操作名',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入操作名',
},
},
@@ -49,7 +49,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '操作内容',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入操作内容',
},
},
@@ -59,7 +59,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
{
@@ -67,7 +67,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '业务编号',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入业务编号',
},
},

View File

@@ -79,7 +79,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '岗位状态',
component: 'Select',
componentProps: {
allowClear: true,
clearable: true,
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
},
},

View File

@@ -172,7 +172,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '角色状态',
component: 'Select',
componentProps: {
allowClear: true,
clearable: true,
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
},
},
@@ -182,7 +182,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -96,7 +96,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '短信签名',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入短信签名',
},
},
@@ -105,7 +105,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '渠道编码',
component: 'Select',
componentProps: {
allowClear: true,
clearable: true,
options: getDictOptions(DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE, 'string'),
placeholder: '请选择短信渠道',
},
@@ -115,7 +115,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '状态',
component: 'Select',
componentProps: {
allowClear: true,
clearable: true,
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
},
},
@@ -125,7 +125,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -19,7 +19,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '手机号',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入手机号',
},
},
@@ -31,7 +31,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
api: async () => await getSimpleSmsChannelList(),
labelField: 'signature',
valueField: 'id',
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: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.SYSTEM_SMS_SEND_STATUS, 'number'),
allowClear: true,
clearable: true,
placeholder: '请选择发送状态',
},
},
@@ -60,7 +60,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
{
@@ -69,7 +69,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.SYSTEM_SMS_RECEIVE_STATUS, 'number'),
allowClear: true,
clearable: true,
placeholder: '请选择接收状态',
},
},
@@ -79,7 +79,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -112,7 +112,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE, 'number'),
allowClear: true,
clearable: true,
placeholder: '请选择短信类型',
},
},
@@ -122,7 +122,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
allowClear: true,
clearable: true,
placeholder: '请选择开启状态',
},
},
@@ -131,7 +131,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '模板编码',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入模板编码',
},
},
@@ -140,7 +140,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '模板名称',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入模板名称',
},
},
@@ -152,7 +152,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
api: async () => await getSimpleSmsChannelList(),
labelField: 'signature',
valueField: 'id',
allowClear: true,
clearable: true,
placeholder: '请选择短信渠道',
},
},
@@ -162,7 +162,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -117,7 +117,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
componentProps: {
options: getDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE, 'number'),
placeholder: '请选择社交平台',
allowClear: true,
clearable: true,
},
},
{
@@ -127,7 +127,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
componentProps: {
options: getDictOptions(DICT_TYPE.USER_TYPE, 'number'),
placeholder: '请选择用户类型',
allowClear: true,
clearable: true,
},
},
{
@@ -145,7 +145,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
componentProps: {
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
placeholder: '请选择状态',
allowClear: true,
clearable: true,
},
},
];

View File

@@ -20,7 +20,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
componentProps: {
options: getDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE, 'number'),
placeholder: '请选择社交平台',
allowClear: true,
clearable: true,
},
},
{
@@ -29,7 +29,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Input',
componentProps: {
placeholder: '请输入用户昵称',
allowClear: true,
clearable: true,
},
},
{
@@ -38,7 +38,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Input',
componentProps: {
placeholder: '请输入社交 openid',
allowClear: true,
clearable: true,
},
},
{
@@ -47,7 +47,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -97,7 +97,7 @@ export function useFormSchema(): VbenFormSchema[] {
componentProps: {
placeholder: '请输入绑定域名,多个域名请换行分隔',
rows: 3,
allowClear: true,
clearable: true,
},
},
{
@@ -122,7 +122,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '租户名',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
},
},
{
@@ -130,7 +130,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '联系人',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
},
},
{
@@ -138,7 +138,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '联系手机',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
},
},
{
@@ -146,7 +146,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '状态',
component: 'Select',
componentProps: {
allowClear: true,
clearable: true,
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
},
},
@@ -156,7 +156,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -61,7 +61,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '套餐名称',
component: 'Input',
componentProps: {
allowClear: true,
clearable: true,
placeholder: '请输入套餐名称',
},
},
@@ -71,7 +71,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
allowClear: true,
clearable: true,
placeholder: '请选择状态',
},
},
@@ -81,7 +81,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];

View File

@@ -250,7 +250,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Input',
componentProps: {
placeholder: '请输入用户名称',
allowClear: true,
clearable: true,
},
},
{
@@ -259,7 +259,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Input',
componentProps: {
placeholder: '请输入手机号码',
allowClear: true,
clearable: true,
},
},
{
@@ -268,7 +268,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
clearable: true,
},
},
];