命名空间显示优化
This commit is contained in:
parent
594bc683cf
commit
6d57007d7b
@ -85,6 +85,10 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP
|
|||||||
title: $t('page.namespace.uniqueId'),
|
title: $t('page.namespace.uniqueId'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width: 180,
|
width: 180,
|
||||||
|
ellipsis: {
|
||||||
|
tooltip: false, // 默认悬浮显示完整内容:ml-citation{ref="1" data="citationList"}
|
||||||
|
contentStyle: { maxWidth: '120px' } // 自定义提示框宽度:ml-citation{ref="1" data="citationList"}
|
||||||
|
},
|
||||||
render: row => (
|
render: row => (
|
||||||
<NPopover>
|
<NPopover>
|
||||||
{{
|
{{
|
||||||
@ -102,21 +106,34 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP
|
|||||||
key: 'createDt',
|
key: 'createDt',
|
||||||
title: $t('page.common.createTime'),
|
title: $t('page.common.createTime'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width: 130
|
width: 120,
|
||||||
|
ellipsis: {
|
||||||
|
tooltip: true, // 默认悬浮显示完整内容:ml-citation{ref="1" data="citationList"}
|
||||||
|
contentStyle: { maxWidth: '110px' } // 自定义提示框宽度:ml-citation{ref="1" data="citationList"}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'updateDt',
|
key: 'updateDt',
|
||||||
title: $t('page.common.upadteTime'),
|
title: $t('page.common.upadteTime'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width: 130
|
width: 120,
|
||||||
|
ellipsis: {
|
||||||
|
tooltip: true, // 默认悬浮显示完整内容:ml-citation{ref="1" data="citationList"}
|
||||||
|
contentStyle: { maxWidth: '110px' } // 自定义提示框宽度:ml-citation{ref="1" data="citationList"}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'operate',
|
key: 'operate',
|
||||||
title: $t('common.operate'),
|
title: $t('common.operate'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 80,
|
fixed: 'right',
|
||||||
|
width: 130,
|
||||||
|
// ellipsis: {
|
||||||
|
// tooltip: true, // 默认悬浮显示完整内容:ml-citation{ref="1" data="citationList"}
|
||||||
|
// contentStyle: { maxWidth: '110px' } // 自定义提示框宽度:ml-citation{ref="1" data="citationList"}
|
||||||
|
// },
|
||||||
render: row => (
|
render: row => (
|
||||||
<div class="flex-center gap-8px">
|
<div class="flex-center gap-5px" style="margin-left:12px">
|
||||||
<NButton type="primary" text ghost size="small" onClick={() => edit(row.id!)}>
|
<NButton type="primary" text ghost size="small" onClick={() => edit(row.id!)}>
|
||||||
{$t('common.edit')}
|
{$t('common.edit')}
|
||||||
</NButton>
|
</NButton>
|
||||||
|
Loading…
Reference in New Issue
Block a user