Merge pull request #6590 from dataease/pr@dev@style_select_first

perf: 文本下拉选择首项样式
This commit is contained in:
fit2cloud-chenyw 2023-11-08 14:48:31 +08:00 committed by GitHub
commit fcc2646b3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -14,7 +14,7 @@
@visible-change="popChange"
>
<p
v-if="startIndex === 0 && $attrs.multiple"
v-if="startIndex === 0 && $attrs.multiple && !itemDisabled"
class="select-all"
>
<el-checkbox

View File

@ -11,11 +11,12 @@
:placeholder="$t(element.options.attrs.placeholder) + placeholderSuffix"
:popper-append-to-body="inScreen"
:size="size"
:filterable="true"
:filterable="inDraw || !selectFirst"
:filter-method="filterMethod"
:item-disabled="!inDraw && selectFirst"
:key-word="keyWord"
popper-class="coustom-de-select"
:class="{'disabled-close': !inDraw && selectFirst && element.options.attrs.multiple}"
:list="data"
:is-config="isConfig"
:custom-style="customStyle"
@ -467,7 +468,14 @@ export default {
}
</script>
<style lang="scss" scoped>
.disabled-close ::v-deep .el-icon-close {
display: none !important;
}
</style>
<style lang="scss">
.coustom-de-select {
background-color: var(--BgSelectColor, #FFFFFF) !important;
border-color: var(--BrSelectColor, #E4E7ED) !important;