mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): empty icon component judgment (#4178)
* fix(components): empty icon component judgment * revert: globals components * fix(components): el-icon missing import * fix: use shallowRef for icon components * refactor: remove shallowRef * fix: remove unused code * fix: social-link icon size * fix: time picker icon * fix: v-if judge
This commit is contained in:
@@ -161,13 +161,14 @@
|
||||
</template>
|
||||
<template #suffix>
|
||||
<el-icon
|
||||
v-if="iconComponent"
|
||||
v-show="!showClose"
|
||||
:class="['el-select__caret', 'el-input__icon', iconReverse]"
|
||||
>
|
||||
<component :is="iconComponent" />
|
||||
</el-icon>
|
||||
<el-icon
|
||||
v-if="showClose"
|
||||
v-if="showClose && clearIcon"
|
||||
class="el-select__caret el-input__icon"
|
||||
@click="handleClearClick"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user