mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-18 16:32:28 +00:00
perf: 优化修改 table label
This commit is contained in:
@@ -223,9 +223,9 @@ export default {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
left: -52px !important;
|
left: -51px !important;
|
||||||
width: 50px !important;
|
width: 50px !important;
|
||||||
transform: scale(1.06);
|
transform: scale(1.01);
|
||||||
}
|
}
|
||||||
i {
|
i {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
@@ -99,8 +99,12 @@
|
|||||||
:filter-multiple="false"
|
:filter-multiple="false"
|
||||||
:filters="col.filters || null"
|
:filters="col.filters || null"
|
||||||
:formatter="typeof col.formatter === 'function' ? col.formatter : null"
|
:formatter="typeof col.formatter === 'function' ? col.formatter : null"
|
||||||
|
:title="col.label"
|
||||||
v-bind="{align: columnsAlign, ...col}"
|
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}">
|
<template v-if="col.formatter && typeof col.formatter !== 'function'" v-slot:default="{row, column, index}">
|
||||||
<div
|
<div
|
||||||
:is="col.formatter"
|
:is="col.formatter"
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
:key="label"
|
:key="label"
|
||||||
>
|
>
|
||||||
<el-tag
|
<el-tag
|
||||||
:title="getKey(label) + getValue(label)"
|
:title="getKey(label) + ': ' + getValue(label)"
|
||||||
:type="getLabelType(label)"
|
:type="getLabelType(label)"
|
||||||
class="tag-formatter"
|
class="tag-formatter"
|
||||||
disable-transitions
|
disable-transitions
|
||||||
|
@@ -59,6 +59,9 @@ export default {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
columnsMeta: {
|
columnsMeta: {
|
||||||
|
mfa_level: {
|
||||||
|
width: '75px'
|
||||||
|
},
|
||||||
source: {
|
source: {
|
||||||
width: '120px',
|
width: '120px',
|
||||||
collapsible: false
|
collapsible: false
|
||||||
|
Reference in New Issue
Block a user