mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-01 20:57:57 +01:00
docs(ComponentCode): fix boolean type
This commit is contained in:
@@ -73,7 +73,7 @@ const options = computed(() => {
|
|||||||
value: item,
|
value: item,
|
||||||
label: item
|
label: item
|
||||||
}))
|
}))
|
||||||
: prop?.type === 'boolean'
|
: prop?.type === 'boolean' || prop?.type === 'boolean | undefined'
|
||||||
? [{ value: true, label: 'true' }, { value: false, label: 'false' }]
|
? [{ value: true, label: 'true' }, { value: false, label: 'false' }]
|
||||||
: Object.keys(componentTheme?.variants?.[key] || {}).map(variant => ({
|
: Object.keys(componentTheme?.variants?.[key] || {}).map(variant => ({
|
||||||
value: variant,
|
value: variant,
|
||||||
|
|||||||
Reference in New Issue
Block a user