feat(Step): add finish-icon slot (#8241)

This commit is contained in:
neverland
2021-02-28 19:50:16 +08:00
committed by GitHub
parent ca97ef1012
commit d17e0ae9b8
5 changed files with 43 additions and 8 deletions
+5 -1
View File
@@ -73,7 +73,11 @@ export default createComponent({
);
}
if (getStatus() === 'finish' && finishIcon) {
if (getStatus() === 'finish' && (finishIcon || slots['finish-icon'])) {
if (slots['finish-icon']) {
return slots['finish-icon']();
}
return (
<Icon
class={bem('icon', 'finish')}