feat: tag support icon slot (#3185)

This commit is contained in:
zkwolf 2020-11-15 23:18:42 +08:00 committed by GitHub
parent 210dadc93c
commit bc03b6ede2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ const Tag = defineComponent({
return () => {
const {
prefixCls: customizePrefixCls,
icon,
icon = slots.icon?.(),
color,
closeIcon = slots.closeIcon?.(),
closable = false,