mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 19:28:14 +08:00
perf: [el-switch] activeIcon and inactiveIcon type (#4899)
This commit is contained in:
parent
ae4e8f20f3
commit
fa751a6ae0
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user