fix(Modal): fix modal locale (#6423)

pull/6425/head
luoawai 2023-04-06 10:56:10 +08:00 committed by GitHub
parent 3e46f27b59
commit 84037f8eef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -165,10 +165,9 @@ export default defineComponent<ConfirmDialogProps>({
buttonProps={cancelButtonProps}
prefixCls={`${rootPrefixCls}-btn`}
>
{renderSomeContent(okCancel) || locale.value.cancelText}
{renderSomeContent(props.cancelText) || locale.value.cancelText}
</ActionButton>
);
return (
<Dialog
prefixCls={prefixCls}