Commit 2d5ea064 authored by nick zheng's avatar nick zheng

chore: 个人空间应用列表样式调整

parent df71ac48
import { NImage, NTooltip } from 'naive-ui'
import { NImage, NPopover } from 'naive-ui'
import { h } from 'vue'
import CustomIcon from '@/components/custom-icon/custom-icon.vue'
import { PersonalAppConfigState } from '@/store/types/personal-app-config'
......@@ -54,12 +54,26 @@ export function createPersonalAppColumn(handlePersonalAppTableAction: (actionTyp
{
default: () => [
h(
NTooltip,
NPopover,
{
props: { placement: 'top' },
style: { maxWidth: '200px' },
},
{
trigger: () => h('span', {}, row.baseInfo.agentTitle || '--'),
trigger: () =>
h(
'span',
{
style: {
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
width: '100%',
display: 'block',
},
},
row.baseInfo.agentTitle || '--',
),
default: () => h('span', {}, row.baseInfo.agentTitle || '--'),
},
),
......@@ -116,7 +130,7 @@ export function createPersonalAppColumn(handlePersonalAppTableAction: (actionTyp
{
default: () => [
h(
NTooltip,
NPopover,
{
props: { placement: 'top' },
},
......@@ -242,7 +256,7 @@ export function createPersonalAppColumn(handlePersonalAppTableAction: (actionTyp
return [
row.baseInfo.agentPublishStatus === 'publish'
? h(
NTooltip,
NPopover,
{
props: { placement: 'top' },
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment