fix(utils): fix iconPropType (#9506)

This commit is contained in:
zz
2022-08-28 19:13:58 +08:00
committed by GitHub
parent ba15302200
commit 3be8b536b8
25 changed files with 264 additions and 253 deletions

View File

@ -12,7 +12,8 @@ import { definePropType } from './props'
import type { Component, VNode } from 'vue'
export const iconPropType = definePropType<Component | (() => VNode)>([
export const iconPropType = definePropType<string | Component | (() => VNode)>([
String,
Object,
Function,
])