mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[new feature] Step: add inactive-icon slot
This commit is contained in:
@@ -43,8 +43,9 @@ export default sfc({
|
||||
);
|
||||
}
|
||||
|
||||
if (inactiveIcon) {
|
||||
return <Icon class={bem('icon')} name={inactiveIcon} />;
|
||||
const inactiveIconSlot = slots('inactive-icon');
|
||||
if (inactiveIcon || inactiveIconSlot) {
|
||||
return inactiveIconSlot || <Icon class={bem('icon')} name={inactiveIcon} />;
|
||||
}
|
||||
|
||||
return <i class={bem('circle')} />;
|
||||
|
Reference in New Issue
Block a user