From b823ca3d9f2e6dd6cdc2d388576d02c73d5f9896 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 01 十二月 2025 13:20:45 +0800
Subject: [PATCH] release: @life-payment/core v0.0.4
---
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