From 41168c178014cef558d29541346e6ef8f8ab9a49 Mon Sep 17 00:00:00 2001 From: dwightjack Date: Fri, 17 May 2024 11:39:36 +0900 Subject: [PATCH] docs(alertDialog): update default values for the components --- docs/content/meta/AlertDialogAction.md | 2 +- docs/content/meta/AlertDialogCancel.md | 2 +- docs/content/meta/AlertDialogDescription.md | 2 +- docs/content/meta/AlertDialogTitle.md | 2 +- docs/content/meta/AlertDialogTrigger.md | 2 +- packages/radix-vue/src/AlertDialog/AlertDialogAction.vue | 2 +- packages/radix-vue/src/AlertDialog/AlertDialogCancel.vue | 2 +- packages/radix-vue/src/AlertDialog/AlertDialogDescription.vue | 2 +- packages/radix-vue/src/AlertDialog/AlertDialogTitle.vue | 2 +- packages/radix-vue/src/AlertDialog/AlertDialogTrigger.vue | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/content/meta/AlertDialogAction.md b/docs/content/meta/AlertDialogAction.md index f13bfa76a..fe0f54f14 100644 --- a/docs/content/meta/AlertDialogAction.md +++ b/docs/content/meta/AlertDialogAction.md @@ -6,7 +6,7 @@ 'description': '

The element or component this component should render as. Can be overwrite by asChild

\n', 'type': 'AsTag | Component', 'required': false, - 'default': '\'div\'' + 'default': '\'button\'' }, { 'name': 'asChild', diff --git a/docs/content/meta/AlertDialogCancel.md b/docs/content/meta/AlertDialogCancel.md index f13bfa76a..fe0f54f14 100644 --- a/docs/content/meta/AlertDialogCancel.md +++ b/docs/content/meta/AlertDialogCancel.md @@ -6,7 +6,7 @@ 'description': '

The element or component this component should render as. Can be overwrite by asChild

\n', 'type': 'AsTag | Component', 'required': false, - 'default': '\'div\'' + 'default': '\'button\'' }, { 'name': 'asChild', diff --git a/docs/content/meta/AlertDialogDescription.md b/docs/content/meta/AlertDialogDescription.md index f13bfa76a..bcfbc0925 100644 --- a/docs/content/meta/AlertDialogDescription.md +++ b/docs/content/meta/AlertDialogDescription.md @@ -6,7 +6,7 @@ 'description': '

The element or component this component should render as. Can be overwrite by asChild

\n', 'type': 'AsTag | Component', 'required': false, - 'default': '\'div\'' + 'default': '\'p\'' }, { 'name': 'asChild', diff --git a/docs/content/meta/AlertDialogTitle.md b/docs/content/meta/AlertDialogTitle.md index f13bfa76a..94fbff8b8 100644 --- a/docs/content/meta/AlertDialogTitle.md +++ b/docs/content/meta/AlertDialogTitle.md @@ -6,7 +6,7 @@ 'description': '

The element or component this component should render as. Can be overwrite by asChild

\n', 'type': 'AsTag | Component', 'required': false, - 'default': '\'div\'' + 'default': '\'h2\'' }, { 'name': 'asChild', diff --git a/docs/content/meta/AlertDialogTrigger.md b/docs/content/meta/AlertDialogTrigger.md index f13bfa76a..fe0f54f14 100644 --- a/docs/content/meta/AlertDialogTrigger.md +++ b/docs/content/meta/AlertDialogTrigger.md @@ -6,7 +6,7 @@ 'description': '

The element or component this component should render as. Can be overwrite by asChild

\n', 'type': 'AsTag | Component', 'required': false, - 'default': '\'div\'' + 'default': '\'button\'' }, { 'name': 'asChild', diff --git a/packages/radix-vue/src/AlertDialog/AlertDialogAction.vue b/packages/radix-vue/src/AlertDialog/AlertDialogAction.vue index 7af4553dd..d2f881080 100644 --- a/packages/radix-vue/src/AlertDialog/AlertDialogAction.vue +++ b/packages/radix-vue/src/AlertDialog/AlertDialogAction.vue @@ -8,7 +8,7 @@ export interface AlertDialogActionProps extends DialogCloseProps {} diff --git a/packages/radix-vue/src/AlertDialog/AlertDialogCancel.vue b/packages/radix-vue/src/AlertDialog/AlertDialogCancel.vue index 0b1c2b428..faf8da22d 100644 --- a/packages/radix-vue/src/AlertDialog/AlertDialogCancel.vue +++ b/packages/radix-vue/src/AlertDialog/AlertDialogCancel.vue @@ -10,7 +10,7 @@ import { onMounted } from 'vue' import { injectAlertDialogContentContext } from './AlertDialogContent.vue' import { DialogClose } from '@/Dialog' -const props = defineProps() +const props = withDefaults(defineProps(), { as: 'button' }) const contentContext = injectAlertDialogContentContext() const { forwardRef, currentElement } = useForwardExpose() diff --git a/packages/radix-vue/src/AlertDialog/AlertDialogDescription.vue b/packages/radix-vue/src/AlertDialog/AlertDialogDescription.vue index 37265ca85..b1a91c339 100644 --- a/packages/radix-vue/src/AlertDialog/AlertDialogDescription.vue +++ b/packages/radix-vue/src/AlertDialog/AlertDialogDescription.vue @@ -8,7 +8,7 @@ export interface AlertDialogDescriptionProps extends DialogDescriptionProps {} diff --git a/packages/radix-vue/src/AlertDialog/AlertDialogTitle.vue b/packages/radix-vue/src/AlertDialog/AlertDialogTitle.vue index 7672020a7..200d9bc39 100644 --- a/packages/radix-vue/src/AlertDialog/AlertDialogTitle.vue +++ b/packages/radix-vue/src/AlertDialog/AlertDialogTitle.vue @@ -8,7 +8,7 @@ export interface AlertDialogTitleProps extends DialogTitleProps {} diff --git a/packages/radix-vue/src/AlertDialog/AlertDialogTrigger.vue b/packages/radix-vue/src/AlertDialog/AlertDialogTrigger.vue index bec0f44fd..af18f8cfd 100644 --- a/packages/radix-vue/src/AlertDialog/AlertDialogTrigger.vue +++ b/packages/radix-vue/src/AlertDialog/AlertDialogTrigger.vue @@ -8,7 +8,7 @@ export interface AlertDialogTriggerProps extends DialogTriggerProps {}