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;
|
||||
|
||||
&:hover {
|
||||
left: -52px !important;
|
||||
left: -51px !important;
|
||||
width: 50px !important;
|
||||
transform: scale(1.06);
|
||||
transform: scale(1.01);
|
||||
}
|
||||
i {
|
||||
font-size: 20px;
|
||||
|
@@ -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"
|
||||
|
@@ -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
|
||||
|
@@ -59,6 +59,9 @@ export default {
|
||||
]
|
||||
},
|
||||
columnsMeta: {
|
||||
mfa_level: {
|
||||
width: '75px'
|
||||
},
|
||||
source: {
|
||||
width: '120px',
|
||||
collapsible: false
|
||||
|
Reference in New Issue
Block a user