From 5a92d5c232c73aed788a69760c513f77a7918cfd Mon Sep 17 00:00:00 2001 From: kalu5 <451660550@qq.com> Date: Wed, 6 Aug 2025 21:10:09 +0800 Subject: [PATCH] fix(useConfirmDialog): change "revaled" for "revealed" #4937 --- packages/core/useConfirmDialog/demo.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/core/useConfirmDialog/demo.vue b/packages/core/useConfirmDialog/demo.vue index 8f391633509..6547740e37a 100644 --- a/packages/core/useConfirmDialog/demo.vue +++ b/packages/core/useConfirmDialog/demo.vue @@ -3,11 +3,11 @@ import { useConfirmDialog } from '@vueuse/core' import { shallowRef } from 'vue' const message = shallowRef('') -const revaled1 = shallowRef(false) -const revaled2 = shallowRef(false) +const revealed1 = shallowRef(false) +const revealed2 = shallowRef(false) -const dialog1 = useConfirmDialog(revaled1) -const dialog2 = useConfirmDialog(revaled2) +const dialog1 = useConfirmDialog(revealed1) +const dialog2 = useConfirmDialog(revealed2) dialog1.onReveal(() => { message.value = 'Modal is shown!' @@ -42,14 +42,14 @@ dialog2.onCancel(() => { {{ message }} -
+

Show Second Dialog?

@@ -66,7 +66,7 @@ dialog2.onCancel(() => {
-
+

Confirm or Reject