Skip to content

Commit

Permalink
perf: 优化标签组件内容为空时面板的位置
Browse files Browse the repository at this point in the history
  • Loading branch information
huailei000 committed Dec 20, 2023
1 parent 9f87708 commit f59b33a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/Table/ListTable/TableAction/LabelSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<span>{{ $t('common.Label') }}</span>
</el-button>
<el-cascader
v-show="showLabelSearch"
v-else
ref="labelCascader"
v-model="labelValue"
:options="labelOptions"
Expand All @@ -21,6 +21,7 @@
clearable
filterable
separator=": "
size="small"
>
<template slot-scope="{ node, data }">
<span>{{ data.label }}</span>
Expand Down Expand Up @@ -50,7 +51,6 @@ export default {
watch: {
labelValue(newValue) {
if (!newValue || newValue.length === 0) {
this.showLabelButton = true
this.showLabelSearch = false
}
Expand Down Expand Up @@ -130,14 +130,12 @@ export default {
padding: 10px 13px 10px 12px;
}
.label-select {
}
.label-cascader {
>>> .el-input__inner {
font-size: 13px;
}
>>> .el-cascader__search-input {
margin: 2px 0 2px 14px;
}
}
Expand Down

0 comments on commit f59b33a

Please sign in to comment.