From 918908664d93ef2e6e24258e55ff3e904a56b4e5 Mon Sep 17 00:00:00 2001 From: Frontend Developer Date: Tue, 10 Mar 2026 09:14:51 +0000 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF:=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E5=AF=B9=E8=AF=9D=E6=A1=86=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/renderer/components/ConfirmDialog.jsx | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 frontend/src/renderer/components/ConfirmDialog.jsx diff --git a/frontend/src/renderer/components/ConfirmDialog.jsx b/frontend/src/renderer/components/ConfirmDialog.jsx new file mode 100644 index 0000000..e944a61 --- /dev/null +++ b/frontend/src/renderer/components/ConfirmDialog.jsx @@ -0,0 +1,29 @@ +import React from 'react'; +import { Modal } from 'antd'; + +function ConfirmDialog({ + open, + title = '确认', + content = '确定要执行此操作吗?', + onConfirm, + onCancel, + confirmText = '确定', + cancelText = '取消', + danger = false +}) { + return ( + +

{content}

+
+ ); +} + +export default ConfirmDialog;