From fa751a6ae03305415087a9555934d187db8d7eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=95=9D=E8=A3=B3?= <1923740402@qq.com> Date: Tue, 21 Dec 2021 11:47:04 +0800 Subject: [PATCH] perf: [el-switch] activeIcon and inactiveIcon type (#4899) --- packages/components/switch/src/switch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/switch/src/switch.ts b/packages/components/switch/src/switch.ts index ce1e61e1bd..5a1d8ab68a 100644 --- a/packages/components/switch/src/switch.ts +++ b/packages/components/switch/src/switch.ts @@ -30,11 +30,11 @@ export const switchProps = buildProps({ default: false, }, activeIcon: { - type: definePropType([String, Object]), + type: definePropType([String, Object, Function]), default: '', }, inactiveIcon: { - type: definePropType([String, Object]), + type: definePropType([String, Object, Function]), default: '', }, activeText: {