From 7405b57c6dc7b79919c71864fcbefc31afd08c10 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 26 Jul 2022 11:45:00 +0800 Subject: [PATCH] feat: add plugin uninstall support Signed-off-by: Ryan Wang --- .../src/components/dialog/Dialog.vue | 7 ++- .../src/components/dialog/DialogProvider.vue | 1 + .../src/components/dialog/interface.ts | 2 + .../src/components/dialog/use-dialog.ts | 3 ++ src/main.ts | 2 +- src/modules/system/plugins/PluginList.vue | 52 ++++++++++++++++++- 6 files changed, 63 insertions(+), 4 deletions(-) diff --git a/packages/components/src/components/dialog/Dialog.vue b/packages/components/src/components/dialog/Dialog.vue index 37ea55b0..09d8ff47 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 = () => {