2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 14:57:16 +08:00

feat: 优化链接图标

This commit is contained in:
2026-01-26 21:12:03 +08:00
parent dd15c47acf
commit 2e3cb81f42

View File

@@ -28,16 +28,15 @@ const columns: any = [
ellipsis: { tooltip: true },
render(row: any) {
const elements = [h('span', {}, row.name)]
// 如果有域名,添加飞机图标和弹层
if (row.domains && row.domains.length > 0) {
elements.push(
h(
NPopover,
{ trigger: 'click', placement: 'right' },
{ trigger: 'hover', placement: 'right' },
{
trigger: () =>
h('span', { class: 'cursor-pointer hover:opacity-60 ml-1 inline-flex' }, [
h(TheIcon, { icon: 'mdi:send', size: 16 })
h('span', { class: 'cursor-pointer hover:opacity-60 inline-flex' }, [
h(TheIcon, { icon: 'mdi:link-variant', size: 16 })
]),
default: () =>
h(