chore: migrate vue3.3

This commit is contained in:
zhuzhengjian
2023-04-27 11:30:19 +08:00
parent 7f296bc378
commit b486c0ae40
4 changed files with 137 additions and 134 deletions

View File

@ -148,7 +148,7 @@ const Button = defineComponent({
return () => {
const { shape, rootClassName, ghost, type, block, danger } = props
const icon = getSlotsProps(slots, props, 'icon')
const children = filterEmpty(slots.default?.())
const children = filterEmpty(slots.default?.() as any)
isNeedInserted =
children.length === 1 &&
!slots.icon &&