style(components): [el-select] collapse-tags存在时,增加左边距 (#6037)

This commit is contained in:
wzrove 2022-02-15 11:14:29 +08:00 committed by GitHub
parent 4b6e9889de
commit 40242b2730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,13 @@
:class="nsSelect.e('tags')" :class="nsSelect.e('tags')"
:style="selectTagsStyle" :style="selectTagsStyle"
> >
<span v-if="collapseTags && selected.length"> <span
v-if="collapseTags && selected.length"
:style="{
marginLeft:
prefixWidth && selected.length ? `${prefixWidth}px` : '',
}"
>
<el-tag <el-tag
:closable="!selectDisabled && !selected[0].isDisabled" :closable="!selectDisabled && !selected[0].isDisabled"
:size="collapseTagSize" :size="collapseTagSize"