docs(ComponentCode): fix boolean type

This commit is contained in:
Benjamin Canac
2024-09-17 11:36:44 +02:00
parent ff8eefdce7
commit d5339d3ebe

View File

@@ -73,7 +73,7 @@ const options = computed(() => {
value: item,
label: item
}))
: prop?.type === 'boolean'
: prop?.type === 'boolean' || prop?.type === 'boolean | undefined'
? [{ value: true, label: 'true' }, { value: false, label: 'false' }]
: Object.keys(componentTheme?.variants?.[key] || {}).map(variant => ({
value: variant,