diff --git a/packages/components/src/components/dialog/Dialog.vue b/packages/components/src/components/dialog/Dialog.vue index 37ea55b08..09d8ff478 100644 --- a/packages/components/src/components/dialog/Dialog.vue +++ b/packages/components/src/components/dialog/Dialog.vue @@ -11,6 +11,7 @@ import { import type { PropType } from "vue"; import { computed, ref } from "vue"; import type { Type } from "@/components/dialog/interface"; +import type { Type as ButtonType } from "@/components/button/interface"; const props = defineProps({ type: { @@ -29,6 +30,10 @@ const props = defineProps({ type: String, default: "确定", }, + confirmType: { + type: String as PropType, + default: "primary", + }, cancelText: { type: String, default: "取消", @@ -112,7 +117,7 @@ const handleClose = () => {