mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-09 08:57:14 +08:00
style: 优化字典、用户描述展示
This commit is contained in:
@@ -12,7 +12,10 @@
|
||||
<template #title="node">
|
||||
<a-trigger v-model:popup-visible="node.popupVisible" trigger="contextMenu" align-point
|
||||
animation-name="slide-dynamic-origin" auto-fit-transform-origin position="bl" scroll-to-close>
|
||||
<div @contextmenu="onContextmenu(node)">{{ node.name }}({{ node.code }})</div>
|
||||
<a-tooltip v-if="node.description" :content="node.description" background-color="rgb(var(--primary-6))" position="right">
|
||||
<div @contextmenu="onContextmenu(node)">{{ node.name }}({{ node.code }})</div>
|
||||
</a-tooltip>
|
||||
<div v-else @contextmenu="onContextmenu(node)">{{ node.name }}({{ node.code }})</div>
|
||||
<template #content>
|
||||
<RightMenu v-if="has.hasPermOr(['system:dict:update', 'system:dict:delete'])" :data="node"
|
||||
@on-menu-item-click="onMenuItemClick" />
|
||||
|
@@ -165,7 +165,7 @@ const columns: TableInstanceColumns[] = [
|
||||
{ title: '手机号', dataIndex: 'phone', width: 170, ellipsis: true, tooltip: true },
|
||||
{ title: '邮箱', dataIndex: 'email', width: 170, ellipsis: true, tooltip: true },
|
||||
{ title: '系统内置', slotName: 'isSystem', width: 100, align: 'center', show: false },
|
||||
{ title: '描述', dataIndex: 'description', ellipsis: true, tooltip: true },
|
||||
{ title: '描述', dataIndex: 'description', width: 130, ellipsis: true, tooltip: true },
|
||||
{ title: '创建人', dataIndex: 'createUserString', ellipsis: true, tooltip: true, width: 140, show: false },
|
||||
{ title: '创建时间', dataIndex: 'createTime', width: 180 },
|
||||
{ title: '修改人', dataIndex: 'updateUserString', ellipsis: true, tooltip: true, width: 140, show: false },
|
||||
|
Reference in New Issue
Block a user