fix(components): [step] className should be is-icon when using icon slot (#8706)

This commit is contained in:
bqy_fe 2022-07-09 18:27:31 +08:00 committed by GitHub
parent b50e21015c
commit f850aa28cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,9 @@
<i :class="ns.e('line-inner')" :style="lineStyle" />
</div>
<div :class="[ns.e('icon'), ns.is(icon ? 'icon' : 'text')]">
<div
:class="[ns.e('icon'), ns.is(icon || $slots.icon ? 'icon' : 'text')]"
>
<slot
v-if="currentStatus !== 'success' && currentStatus !== 'error'"
name="icon"