mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-03 03:38:41 +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,
|
default: false,
|
||||||
},
|
},
|
||||||
activeIcon: {
|
activeIcon: {
|
||||||
type: definePropType<string | Component>([String, Object]),
|
type: definePropType<string | Component>([String, Object, Function]),
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
inactiveIcon: {
|
inactiveIcon: {
|
||||||
type: definePropType<string | Component>([String, Object]),
|
type: definePropType<string | Component>([String, Object, Function]),
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
activeText: {
|
activeText: {
|
||||||
|
Loading…
Reference in New Issue
Block a user