mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-05 08:51:41 +00:00
perf: 优化标签组件内容为空时面板的位置
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<span>{{ $t('common.Label') }}</span>
|
<span>{{ $t('common.Label') }}</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-cascader
|
<el-cascader
|
||||||
v-show="showLabelSearch"
|
v-else
|
||||||
ref="labelCascader"
|
ref="labelCascader"
|
||||||
v-model="labelValue"
|
v-model="labelValue"
|
||||||
:options="labelOptions"
|
:options="labelOptions"
|
||||||
@@ -21,6 +21,7 @@
|
|||||||
clearable
|
clearable
|
||||||
filterable
|
filterable
|
||||||
separator=": "
|
separator=": "
|
||||||
|
size="small"
|
||||||
>
|
>
|
||||||
<template slot-scope="{ node, data }">
|
<template slot-scope="{ node, data }">
|
||||||
<span>{{ data.label }}</span>
|
<span>{{ data.label }}</span>
|
||||||
@@ -50,7 +51,6 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
labelValue(newValue) {
|
labelValue(newValue) {
|
||||||
if (!newValue || newValue.length === 0) {
|
if (!newValue || newValue.length === 0) {
|
||||||
this.showLabelButton = true
|
|
||||||
this.showLabelSearch = false
|
this.showLabelSearch = false
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,14 +130,12 @@ export default {
|
|||||||
padding: 10px 13px 10px 12px;
|
padding: 10px 13px 10px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.label-select {
|
|
||||||
}
|
|
||||||
|
|
||||||
.label-cascader {
|
.label-cascader {
|
||||||
>>> .el-input__inner {
|
>>> .el-input__inner {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
>>> .el-cascader__search-input {
|
>>> .el-cascader__search-input {
|
||||||
|
margin: 2px 0 2px 14px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user