mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-05-02 15:19:01 +08:00
feat(table): 添加vxe-table,适配naiveui主题,并替换掉之前table,自带导出
This commit is contained in:
parent
85867263e6
commit
9b43b9cad3
@ -102,11 +102,10 @@ const columns = [
|
|||||||
src: avatar,
|
src: avatar,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{ title: '用户名', key: 'username', width: 150, ellipsis: { tooltip: true } },
|
{ title: '用户名', key: 'username', ellipsis: { tooltip: true } },
|
||||||
{
|
{
|
||||||
title: '角色',
|
title: '角色',
|
||||||
key: 'roles',
|
key: 'roles',
|
||||||
width: 200,
|
|
||||||
ellipsis: { tooltip: true },
|
ellipsis: { tooltip: true },
|
||||||
render: ({ roles }) => {
|
render: ({ roles }) => {
|
||||||
if (roles?.length) {
|
if (roles?.length) {
|
||||||
@ -157,7 +156,7 @@ const columns = [
|
|||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
key: 'actions',
|
key: 'actions',
|
||||||
width: 100,
|
width: 120,
|
||||||
align: 'right',
|
align: 'right',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
hideInExcel: true,
|
hideInExcel: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user