mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 11:20:36 +01:00
docs(ComponentCode): ignore boolean theme variants
This commit is contained in:
@@ -149,7 +149,9 @@ const options = computed(() => {
|
|||||||
}))
|
}))
|
||||||
: prop?.type === 'boolean' || prop?.type === 'boolean | undefined'
|
: 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] || {}).filter((variant) => {
|
||||||
|
return variant !== 'true' && variant !== 'false'
|
||||||
|
}).map(variant => ({
|
||||||
value: variant,
|
value: variant,
|
||||||
label: variant,
|
label: variant,
|
||||||
chip: key.toLowerCase().endsWith('color') ? { color: variant } : undefined
|
chip: key.toLowerCase().endsWith('color') ? { color: variant } : undefined
|
||||||
|
|||||||
Reference in New Issue
Block a user