diff --git a/packages/next/src/form-dialog/index.tsx b/packages/next/src/form-dialog/index.tsx index 9bab62e06f6..53bf02a9dbf 100644 --- a/packages/next/src/form-dialog/index.tsx +++ b/packages/next/src/form-dialog/index.tsx @@ -112,6 +112,47 @@ export function FormDialog(title: any, id: any, renderer?: any): IFormDialog { ) => { const ctx = getContext() const prefix = modal.prefix || ctx.prefix || 'next' + const okProps = { + children: ctx?.locale?.Dialog?.ok || '确定', + ...(ctx?.defaultPropsConfig?.Dialog?.okProps || {}), + ...(modal.okProps || {}), + } + const cancelProps = { + children: ctx?.locale?.Dialog?.cancel || '取消', + ...(ctx?.defaultPropsConfig?.Dialog?.cancelProps || {}), + ...(modal.cancelProps || {}), + } + const buttonMap = { + ok: ( + - + {footerActions.map((item) => buttonMap[item])} } onClose={(trigger, e) => {