From c5e9cc0e10979e7281f8f2ca178204b24235f39a Mon Sep 17 00:00:00 2001 From: sadeghbarati Date: Mon, 28 Oct 2024 15:27:45 +0330 Subject: [PATCH] chore: update switch and rebuild registry --- apps/www/src/lib/registry/default/ui/switch/Switch.vue | 4 ++++ apps/www/src/public/registry/styles/default/switch.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/www/src/lib/registry/default/ui/switch/Switch.vue b/apps/www/src/lib/registry/default/ui/switch/Switch.vue index 6e79d03f..728963ca 100644 --- a/apps/www/src/lib/registry/default/ui/switch/Switch.vue +++ b/apps/www/src/lib/registry/default/ui/switch/Switch.vue @@ -10,11 +10,15 @@ import { import { computed, type HTMLAttributes } from 'vue' const props = defineProps() + const emits = defineEmits() + const delegatedProps = computed(() => { const { class: _, ...delegated } = props + return delegated }) + const forwarded = useForwardPropsEmits(delegatedProps, emits) diff --git a/apps/www/src/public/registry/styles/default/switch.json b/apps/www/src/public/registry/styles/default/switch.json index 02968d64..3768809e 100644 --- a/apps/www/src/public/registry/styles/default/switch.json +++ b/apps/www/src/public/registry/styles/default/switch.json @@ -7,7 +7,7 @@ "files": [ { "name": "Switch.vue", - "content": "\n\n" + "content": "\n\n\n" }, { "name": "index.ts",