mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
perf: [el-switch] activeIcon and inactiveIcon type (#4899)
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user