fix(components): [el-rate] allow-half show two icon (#6076)

This commit is contained in:
btea 2022-02-16 10:41:59 +08:00 committed by GitHub
parent 2dd396f644
commit cc32d275ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,10 @@
:class="[ns.e('icon'), { hover: hoverIndex === item }]"
:style="getIconStyle(item)"
>
<component :is="iconComponents[item - 1]" />
<component
:is="iconComponents[item - 1]"
v-if="!showDecimalIcon(item)"
/>
<el-icon
v-if="showDecimalIcon(item)"
:style="decimalStyle"