From f34af9bbc5ec1a40fa5d9f658ea2face2fb13b19 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 10 九月 2025 15:04:44 +0800 Subject: [PATCH] fix: 公告 --- apps/taro/src/utils/common/message.tsx | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/apps/taro/src/utils/common/message.tsx b/apps/taro/src/utils/common/message.tsx index 937d801..9a64b30 100644 --- a/apps/taro/src/utils/common/message.tsx +++ b/apps/taro/src/utils/common/message.tsx @@ -24,11 +24,17 @@ title?: string; message?: string | VNode; confirmText?: string; + showCancelBtn?: boolean; }; export class Message { static confirm(options: ConfirmOptions = {}) { - const { title = '鎻愮ず', message = '纭畾瑕佸垹闄よ鏁版嵁鍚�?', confirmText = '纭' } = options; + const { + title = '鎻愮ず', + message = '纭畾瑕佸垹闄よ鏁版嵁鍚�?', + confirmText = '纭', + showCancelBtn = true, + } = options; return new Promise((resolve, reject) => { Portal.add((key) => { return ( @@ -54,6 +60,7 @@ onClose(); }} confirmText={confirmText} + showCancelBtn={showCancelBtn} ></Model> ), }} -- Gitblit v1.9.1