From 118ca6cb7c0b455ea118047f6323cfecc36e6e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=95=9D=E8=A3=B3?= <1923740402@qq.com> Date: Wed, 9 Feb 2022 22:13:50 +0800 Subject: [PATCH] fix(utils-v2): add Function type to iconPropType (#5890) --- packages/utils-v2/vue/icon.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/utils-v2/vue/icon.ts b/packages/utils-v2/vue/icon.ts index fcbb72c5ab..e9e9cbc53a 100644 --- a/packages/utils-v2/vue/icon.ts +++ b/packages/utils-v2/vue/icon.ts @@ -11,7 +11,11 @@ import { import { definePropType } from './prop' import type { Component } from 'vue' -export const iconPropType = definePropType([String, Object]) +export const iconPropType = definePropType([ + String, + Object, + Function, +]) export const CloseComponents = { Close,