style: 优化部分表格列宽度样式

This commit is contained in:
2024-10-28 22:06:44 +08:00
parent 9e5dff144b
commit b908f14b33
8 changed files with 31 additions and 32 deletions

View File

@@ -93,19 +93,18 @@ const columns: TableInstanceColumns[] = [
align: 'center',
render: ({ rowIndex }) => h('span', {}, rowIndex + 1 + (pagination.current - 1) * pagination.pageSize),
},
{ title: '标签', dataIndex: 'label', slotName: 'label', width: 100, align: 'center' },
{ title: '值', dataIndex: 'value', width: 100, align: 'center', ellipsis: true, tooltip: true },
{ title: '状态', slotName: 'status', width: 80, align: 'center' },
{ title: '标签', dataIndex: 'label', slotName: 'label', minWidth: 100, align: 'center' },
{ title: '值', dataIndex: 'value', minWidth: 100, align: 'center', ellipsis: true, tooltip: true },
{ title: '状态', slotName: 'status', align: 'center' },
{
title: '排序',
dataIndex: 'sort',
width: 90,
align: 'center',
sortable: {
sortDirections: ['ascend', 'descend'],
},
},
{ title: '描述', dataIndex: 'description', width: 130, ellipsis: true, tooltip: true },
{ title: '描述', dataIndex: 'description', minWidth: 130, ellipsis: true, tooltip: true },
{ title: '创建人', dataIndex: 'createUserString', width: 140, ellipsis: true, tooltip: true, show: false },
{ title: '创建时间', dataIndex: 'createTime', width: 180 },
{ title: '修改人', dataIndex: 'updateUserString', width: 140, ellipsis: true, tooltip: true, show: false },