feat: okText add function #6748

pull/6817/head
tangjinzhou 2023-08-06 12:44:16 +08:00
parent 7bfe30d280
commit e3f09a18a1
1 changed files with 2 additions and 1 deletions

View File

@ -219,7 +219,8 @@ export default defineComponent<ConfirmDialogProps>({
buttonProps={okButtonProps} buttonProps={okButtonProps}
prefixCls={`${rootPrefixCls}-btn`} prefixCls={`${rootPrefixCls}-btn`}
> >
{okText || (mergedOkCancel ? mergedLocal.okText : mergedLocal.justOkText)} {renderSomeContent(okText) ||
(mergedOkCancel ? mergedLocal.okText : mergedLocal.justOkText)}
</ActionButton> </ActionButton>
</div> </div>
)} )}