feat: 增加最小宽度,使fixed生效

This commit is contained in:
xingyu4j
2025-06-25 15:29:53 +08:00
parent 709501937d
commit 3527b12b84
4 changed files with 61 additions and 5 deletions

View File

@@ -188,17 +188,20 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
field: 'name',
title: '联系人姓名',
fixed: 'left',
minWidth: 240,
slots: { default: 'name' },
},
{
field: 'customerName',
title: '客户名称',
fixed: 'left',
minWidth: 240,
slots: { default: 'customerName' },
},
{
field: 'sex',
title: '性别',
minWidth: 120,
cellRender: {
name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_USER_SEX },
@@ -207,26 +210,32 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{
field: 'mobile',
title: '手机',
minWidth: 120,
},
{
field: 'telephone',
title: '电话',
minWidth: 120,
},
{
field: 'email',
title: '邮箱',
minWidth: 120,
},
{
field: 'post',
title: '职位',
minWidth: 120,
},
{
field: 'detailAddress',
title: '地址',
minWidth: 120,
},
{
field: 'master',
title: '关键决策人',
minWidth: 120,
cellRender: {
name: 'CellDict',
props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
@@ -235,34 +244,41 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{
field: 'parentId',
title: '直属上级',
minWidth: 120,
slots: { default: 'parentId' },
},
{
field: 'ownerUserName',
title: '负责人',
minWidth: 120,
},
{
field: 'ownerUserDeptName',
title: '所属部门',
minWidth: 120,
},
{
field: 'contactNextTime',
title: '下次联系时间',
formatter: 'formatDateTime',
minWidth: 180,
},
{
field: 'remark',
title: '备注',
minWidth: 200,
},
{
field: 'createTime',
title: '创建时间',
formatter: 'formatDateTime',
minWidth: 180,
},
{
field: 'updateTime',
title: '更新时间',
formatter: 'formatDateTime',
minWidth: 180,
},
{
title: '操作',