perf: 优化修改 table label

This commit is contained in:
ibuler
2024-04-18 13:14:56 +08:00
parent 373661d35a
commit 981fe00c5f
4 changed files with 10 additions and 3 deletions

View File

@@ -223,9 +223,9 @@ export default {
cursor: pointer;
&:hover {
left: -52px !important;
left: -51px !important;
width: 50px !important;
transform: scale(1.06);
transform: scale(1.01);
}
i {
font-size: 20px;

View File

@@ -99,8 +99,12 @@
:filter-multiple="false"
:filters="col.filters || null"
:formatter="typeof col.formatter === 'function' ? col.formatter : null"
:title="col.label"
v-bind="{align: columnsAlign, ...col}"
>
<template #header>
<span :title="col.label">{{ col.label }}</span>
</template>
<template v-if="col.formatter && typeof col.formatter !== 'function'" v-slot:default="{row, column, index}">
<div
:is="col.formatter"

View File

@@ -12,7 +12,7 @@
:key="label"
>
<el-tag
:title="getKey(label) + getValue(label)"
:title="getKey(label) + ': ' + getValue(label)"
:type="getLabelType(label)"
class="tag-formatter"
disable-transitions

View File

@@ -59,6 +59,9 @@ export default {
]
},
columnsMeta: {
mfa_level: {
width: '75px'
},
source: {
width: '120px',
collapsible: false