feat:【antd】【crm】优化整体的 allowClear

This commit is contained in:
YunaiV
2025-09-30 14:56:55 +08:00
parent 2d5f24c626
commit 0d07db46f0
8 changed files with 34 additions and 38 deletions

View File

@@ -352,7 +352,7 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
title: '距离进入公海天数',
minWidth: 140,
formatter: ({ cellValue }) =>
cellValue == null ? '-' : `${cellValue}`,
cellValue === null ? '-' : `${cellValue}`,
},
{
field: 'ownerUserName',

View File

@@ -13,6 +13,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Input',
componentProps: {
placeholder: '请输入客户名称',
allowClear: true,
},
},
{
@@ -21,6 +22,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Input',
componentProps: {
placeholder: '请输入手机',
allowClear: true,
},
},
{
@@ -30,6 +32,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
componentProps: {
options: getDictOptions(DICT_TYPE.CRM_CUSTOMER_INDUSTRY, 'number'),
placeholder: '请选择所属行业',
allowClear: true,
},
},
{
@@ -39,6 +42,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
componentProps: {
options: getDictOptions(DICT_TYPE.CRM_CUSTOMER_LEVEL, 'number'),
placeholder: '请选择客户级别',
allowClear: true,
},
},
{
@@ -48,6 +52,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
componentProps: {
options: getDictOptions(DICT_TYPE.CRM_CUSTOMER_SOURCE, 'number'),
placeholder: '请选择客户来源',
allowClear: true,
},
},
];