From 925aeb43d709d6fb3c3d04206f6eff39db83492a Mon Sep 17 00:00:00 2001 From: zernonia Date: Tue, 24 Oct 2023 20:09:07 +0800 Subject: [PATCH] chore: update component preview --- .../.vitepress/theme/components/ComponentPreview.vue | 8 ++++++-- apps/www/src/content/docs/components/accordion.md | 2 +- apps/www/src/content/docs/components/input.md | 12 ++++++------ apps/www/src/content/docs/components/textarea.md | 2 +- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/apps/www/.vitepress/theme/components/ComponentPreview.vue b/apps/www/.vitepress/theme/components/ComponentPreview.vue index ed37d250..8653daa9 100644 --- a/apps/www/.vitepress/theme/components/ComponentPreview.vue +++ b/apps/www/.vitepress/theme/components/ComponentPreview.vue @@ -7,7 +7,11 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/lib/registry/default import { useConfigStore } from '@/stores/config' import { cn } from '@/lib/utils' -const props = withDefaults(defineProps<{ +defineOptions({ + inheritAttrs: false, +}) + +withDefaults(defineProps<{ name: string align?: 'center' | 'start' | 'end' sfcTsCode?: string @@ -54,7 +58,7 @@ const { style } = useConfigStore() 'items-end': align === 'end', })" > - + diff --git a/apps/www/src/content/docs/components/accordion.md b/apps/www/src/content/docs/components/accordion.md index a2f6b862..451ab1d9 100644 --- a/apps/www/src/content/docs/components/accordion.md +++ b/apps/www/src/content/docs/components/accordion.md @@ -6,7 +6,7 @@ primitive: https://www.radix-vue.com/components/accordion.html --- - + ## Installation diff --git a/apps/www/src/content/docs/components/input.md b/apps/www/src/content/docs/components/input.md index 6c120676..d1614790 100644 --- a/apps/www/src/content/docs/components/input.md +++ b/apps/www/src/content/docs/components/input.md @@ -4,7 +4,7 @@ description: Displays a form input field or a component that looks like an input --- - + ## Installation @@ -45,23 +45,23 @@ import { Input } from '@/components/ui/input' ### Default - + ### File - + ### Disabled - + ### With Label - + ### With Button - + ### Form diff --git a/apps/www/src/content/docs/components/textarea.md b/apps/www/src/content/docs/components/textarea.md index 24b31da8..930a7762 100644 --- a/apps/www/src/content/docs/components/textarea.md +++ b/apps/www/src/content/docs/components/textarea.md @@ -59,7 +59,7 @@ import { Textarea } from '@/components/ui/textarea' ### With Label - + ### With Text