diff --git a/src/button/Button.tsx b/src/button/Button.tsx index 77724b788..11fe62667 100644 --- a/src/button/Button.tsx +++ b/src/button/Button.tsx @@ -89,6 +89,10 @@ export default defineComponent({ return renderLoadingIcon(); } + if (slots.icon) { + return
{slots.icon()}
; + } + if (props.icon) { return ( `; +exports[`should render icon slot correctly 1`] = ` + +`; + exports[`should render loading slot correctly 1`] = `