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:
Haceral 2024-08-22 09:35:44 +08:00 committed by GitHub
parent 6b7e204e5b
commit 9234661993
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -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" />

View File

@ -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" />