Merge pull request #8558 from dataease/pr@dev_select_filter

fix(仪表板): 过滤组件多选时,进行输入搜索选项,会把之前勾选的清空
This commit is contained in:
dataeaseShu 2024-03-18 14:12:58 +08:00 committed by GitHub
commit 712edaa064
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 2 deletions

View File

@ -52,6 +52,7 @@
class="tree-select-all"
><el-checkbox
v-model="selectAll"
class="is-tree-select"
:indeterminate="isIndeterminate"
@change="selectAllChange"
>{{ $t('dataset.check_all') }}</el-checkbox></p>
@ -595,7 +596,7 @@ export default {
padding: 10px 20px 0 24px;
}
.tree-select-all .el-checkbox__label {
color: var(--SelectTreeColor, #606266);
color: var(--SelectTreeColor, #606266) !important;
}
[aria-disabled='true'] > .el-tree-node__content {
color: inherit !important;

View File

@ -19,6 +19,7 @@
>
<el-checkbox
v-model="selectAll"
class="is-tree-select"
v-customStyle="customStyle"
:indeterminate="isIndeterminate"
@change="selectAllChange"

View File

@ -317,6 +317,10 @@ export default {
this.refreshOptions()
}, 1000),
filterMethod(key) {
if (!key && !this.keyWord) {
this.keyWord = key
return
}
this.keyWord = key
this.searchWithKey()
},

View File

@ -829,7 +829,7 @@ div:focus {
}
.el-checkbox__input.is-checked:not(.is-disabled)+.el-checkbox__label {
.el-checkbox:not(.is-tree-select) .el-checkbox__input.is-checked:not(.is-disabled)+.el-checkbox__label {
color: #1F2329 !important;
}