perf: [el-switch] activeIcon and inactiveIcon type (#4899)

This commit is contained in:
啝裳 2021-12-21 11:47:04 +08:00 committed by GitHub
parent ae4e8f20f3
commit fa751a6ae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,11 +30,11 @@ export const switchProps = buildProps({
default: false,
},
activeIcon: {
type: definePropType<string | Component>([String, Object]),
type: definePropType<string | Component>([String, Object, Function]),
default: '',
},
inactiveIcon: {
type: definePropType<string | Component>([String, Object]),
type: definePropType<string | Component>([String, Object, Function]),
default: '',
},
activeText: {