Merge pull request #6590 from dataease/pr@dev@style_select_first
perf: 文本下拉选择首项样式
This commit is contained in:
commit
fcc2646b3c
@ -14,7 +14,7 @@
|
|||||||
@visible-change="popChange"
|
@visible-change="popChange"
|
||||||
>
|
>
|
||||||
<p
|
<p
|
||||||
v-if="startIndex === 0 && $attrs.multiple"
|
v-if="startIndex === 0 && $attrs.multiple && !itemDisabled"
|
||||||
class="select-all"
|
class="select-all"
|
||||||
>
|
>
|
||||||
<el-checkbox
|
<el-checkbox
|
||||||
|
|||||||
@ -11,11 +11,12 @@
|
|||||||
:placeholder="$t(element.options.attrs.placeholder) + placeholderSuffix"
|
:placeholder="$t(element.options.attrs.placeholder) + placeholderSuffix"
|
||||||
:popper-append-to-body="inScreen"
|
:popper-append-to-body="inScreen"
|
||||||
:size="size"
|
:size="size"
|
||||||
:filterable="true"
|
:filterable="inDraw || !selectFirst"
|
||||||
:filter-method="filterMethod"
|
:filter-method="filterMethod"
|
||||||
:item-disabled="!inDraw && selectFirst"
|
:item-disabled="!inDraw && selectFirst"
|
||||||
:key-word="keyWord"
|
:key-word="keyWord"
|
||||||
popper-class="coustom-de-select"
|
popper-class="coustom-de-select"
|
||||||
|
:class="{'disabled-close': !inDraw && selectFirst && element.options.attrs.multiple}"
|
||||||
:list="data"
|
:list="data"
|
||||||
:is-config="isConfig"
|
:is-config="isConfig"
|
||||||
:custom-style="customStyle"
|
:custom-style="customStyle"
|
||||||
@ -467,7 +468,14 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.disabled-close ::v-deep .el-icon-close {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
||||||
|
|
||||||
.coustom-de-select {
|
.coustom-de-select {
|
||||||
background-color: var(--BgSelectColor, #FFFFFF) !important;
|
background-color: var(--BgSelectColor, #FFFFFF) !important;
|
||||||
border-color: var(--BrSelectColor, #E4E7ED) !important;
|
border-color: var(--BrSelectColor, #E4E7ED) !important;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user