Skip to content

Commit

Permalink
style(components): [el-select] collapse-tags存在时,增加左边距 (element-plus#6037
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wzrove authored Feb 15, 2022
1 parent 4b6e988 commit 40242b2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/components/select/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@
:class="nsSelect.e('tags')"
:style="selectTagsStyle"
>
<span v-if="collapseTags && selected.length">
<span
v-if="collapseTags && selected.length"
:style="{
marginLeft:
prefixWidth && selected.length ? `${prefixWidth}px` : '',
}"
>
<el-tag
:closable="!selectDisabled && !selected[0].isDisabled"
:size="collapseTagSize"
Expand Down

0 comments on commit 40242b2

Please sign in to comment.