mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +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'
|
||||
? [{ 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,
|
||||
label: variant,
|
||||
chip: key.toLowerCase().endsWith('color') ? { color: variant } : undefined
|
||||
|
||||
Reference in New Issue
Block a user