mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-29 17:58:08 +08:00
style(components): [select] add a unique class name for the clear icon (#17575)
Co-authored-by: Haceral <18274416193@163.com>
This commit is contained in:
parent
6b7e204e5b
commit
9234661993
@ -216,7 +216,11 @@
|
||||
</el-icon>
|
||||
<el-icon
|
||||
v-if="showClearBtn && clearIcon"
|
||||
:class="[nsSelect.e('caret'), nsInput.e('icon')]"
|
||||
:class="[
|
||||
nsSelect.e('caret'),
|
||||
nsInput.e('icon'),
|
||||
nsSelect.e('clear'),
|
||||
]"
|
||||
@click.prevent.stop="handleClear"
|
||||
>
|
||||
<component :is="clearIcon" />
|
||||
|
@ -216,7 +216,11 @@
|
||||
</el-icon>
|
||||
<el-icon
|
||||
v-if="showClose && clearIcon"
|
||||
:class="[nsSelect.e('caret'), nsSelect.e('icon')]"
|
||||
:class="[
|
||||
nsSelect.e('caret'),
|
||||
nsSelect.e('icon'),
|
||||
nsSelect.e('clear'),
|
||||
]"
|
||||
@click="handleClearClick"
|
||||
>
|
||||
<component :is="clearIcon" />
|
||||
|
Loading…
Reference in New Issue
Block a user