chore: 列宽设置
This commit is contained in:
parent
bc2f5be973
commit
e0588234ee
@ -43,20 +43,23 @@ export const columns: VxeGridProps['columns'] = [
|
|||||||
{
|
{
|
||||||
field: 'userName',
|
field: 'userName',
|
||||||
title: '名称',
|
title: '名称',
|
||||||
|
minWidth: 80,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'nickName',
|
field: 'nickName',
|
||||||
title: '昵称',
|
title: '昵称',
|
||||||
|
minWidth: 130,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'avatar',
|
field: 'avatar',
|
||||||
title: '头像',
|
title: '头像',
|
||||||
slots: { default: 'avatar' },
|
slots: { default: 'avatar' },
|
||||||
width: 80,
|
minWidth: 80,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'deptName',
|
field: 'deptName',
|
||||||
title: '部门',
|
title: '部门',
|
||||||
|
minWidth: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'phonenumber',
|
field: 'phonenumber',
|
||||||
@ -64,21 +67,25 @@ export const columns: VxeGridProps['columns'] = [
|
|||||||
formatter({ cellValue }) {
|
formatter({ cellValue }) {
|
||||||
return cellValue || '暂无';
|
return cellValue || '暂无';
|
||||||
},
|
},
|
||||||
|
minWidth: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'status',
|
field: 'status',
|
||||||
title: '状态',
|
title: '状态',
|
||||||
slots: { default: 'status' },
|
slots: { default: 'status' },
|
||||||
|
minWidth: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'createTime',
|
field: 'createTime',
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
|
minWidth: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'action',
|
field: 'action',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
slots: { default: 'action' },
|
slots: { default: 'action' },
|
||||||
title: '操作',
|
title: '操作',
|
||||||
|
resizable: false,
|
||||||
width: 180,
|
width: 180,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user