fix(Icon): default slot

This commit is contained in:
chenjiahan 2020-07-05 15:59:36 +08:00
parent b79e59bc18
commit 3a2e20eb52

View File

@ -43,7 +43,7 @@ export default createComponent({
fontSize: addUnit(this.size),
}}
>
{/* {slots.default && slots.default()} */}
{this.$slots.default?.()}
{imageIcon && <img class={bem('image')} src={name} />}
<Info
dot={this.dot}