Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: 优化标签组件内容为空时面板的位置 #3626

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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