mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 11:20:36 +01:00
chore(Toggle): missing default function in size prop
This commit is contained in:
@@ -75,7 +75,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
size: {
|
size: {
|
||||||
type: String as PropType<ToggleSize>,
|
type: String as PropType<ToggleSize>,
|
||||||
default: config.default.size,
|
default: () => config.default.size,
|
||||||
validator (value: string) {
|
validator (value: string) {
|
||||||
return Object.keys(config.size).includes(value)
|
return Object.keys(config.size).includes(value)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user