chore: adjust the deletion modal config

This commit is contained in:
jialin
2024-12-24 10:34:08 +08:00
parent 762ab30c71
commit 02391e66dc
9 changed files with 65 additions and 14 deletions
+3 -3
View File
@@ -15,6 +15,7 @@ const DeleteModal = forwardRef((props, ref) => {
okText?: string;
cancelText?: string;
title?: string;
operation: string;
}
>({});
@@ -27,6 +28,7 @@ const DeleteModal = forwardRef((props, ref) => {
title?: string;
cancelText?: string;
okText?: string;
operation: string;
}
) => {
setConfig(data);
@@ -94,9 +96,7 @@ const DeleteModal = forwardRef((props, ref) => {
config.content &&
intl.formatMessage(
{
id: config.selection
? 'common.delete.confirm'
: 'common.delete.single.confirm'
id: config.operation || ''
},
{
type: intl.formatMessage({ id: config.content }),