From e3f09a18a13dc35cd5ee4456b1dd468cc332b31a Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sun, 6 Aug 2023 12:44:16 +0800 Subject: [PATCH] feat: okText add function #6748 --- components/modal/ConfirmDialog.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/modal/ConfirmDialog.tsx b/components/modal/ConfirmDialog.tsx index dc1a2cfe7..a19b0d77a 100644 --- a/components/modal/ConfirmDialog.tsx +++ b/components/modal/ConfirmDialog.tsx @@ -219,7 +219,8 @@ export default defineComponent({ buttonProps={okButtonProps} prefixCls={`${rootPrefixCls}-btn`} > - {okText || (mergedOkCancel ? mergedLocal.okText : mergedLocal.justOkText)} + {renderSomeContent(okText) || + (mergedOkCancel ? mergedLocal.okText : mergedLocal.justOkText)} )}