perf: 优化显示效果 及 formatter row cellvalue的区分

This commit is contained in:
xingyu4j
2025-05-29 14:52:03 +08:00
parent 8be5c19154
commit b4a77266a1
40 changed files with 12 additions and 302 deletions

View File

@@ -116,7 +116,6 @@ export function useGridColumns(
{
field: 'name',
title: '部门名称',
minWidth: 150,
align: 'left',
fixed: 'left',
treeNode: true,
@@ -124,20 +123,15 @@ export function useGridColumns(
{
field: 'leaderUserId',
title: '负责人',
minWidth: 150,
formatter: (row) => {
return getLeaderName?.(row.cellValue) || '-';
},
formatter: ({ cellValue }) => getLeaderName?.(cellValue) || '-',
},
{
field: 'sort',
title: '显示顺序',
minWidth: 100,
},
{
field: 'status',
title: '部门状态',
minWidth: 100,
cellRender: {
name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS },
@@ -146,7 +140,6 @@ export function useGridColumns(
{
field: 'createTime',
title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime',
},
{