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: {