feat(Button): add icon slot (#8783)
This commit is contained in:
@@ -89,6 +89,10 @@ export default defineComponent({
|
||||
return renderLoadingIcon();
|
||||
}
|
||||
|
||||
if (slots.icon) {
|
||||
return <div class={bem('icon')}>{slots.icon()}</div>;
|
||||
}
|
||||
|
||||
if (props.icon) {
|
||||
return (
|
||||
<Icon
|
||||
|
||||
Reference in New Issue
Block a user