From f1193c35c5a461ce79a44f6b1918f42ab19a6326 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 24 Jul 2024 16:59:07 +0200 Subject: [PATCH] docs(ComponentProps): update --- docs/app/components/content/ComponentProps.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/app/components/content/ComponentProps.vue b/docs/app/components/content/ComponentProps.vue index 71ec270a..cfcff514 100644 --- a/docs/app/components/content/ComponentProps.vue +++ b/docs/app/components/content/ComponentProps.vue @@ -25,7 +25,7 @@ const metaProps: ComputedRef = computed(() => { }).map((prop) => { prop.default = prop.default ?? prop.tags?.find(tag => tag.name === 'defaultValue')?.text ?? componentTheme?.defaultVariants?.[prop.name] // @ts-expect-error - Type is not correct - prop.type = !['boolean'].includes(prop.type) && prop.schema?.kind === 'enum' && Object.keys(prop.schema.schema)?.length ? Object.values(prop.schema.schema).map(schema => schema?.type ? schema.type : schema).join(' | ') : prop.type + prop.type = !prop.type.startsWith('boolean') && prop.schema?.kind === 'enum' && Object.keys(prop.schema.schema)?.length ? Object.values(prop.schema.schema).map(schema => schema?.type ? schema.type : schema).join(' | ') : prop.type return prop }).sort((a, b) => { if (a.name === 'as') {