|
|
@@ -3,13 +3,13 @@ import {Modal} from 'antd';
|
|
|
export function deleteConfirm(
|
|
|
label: string,
|
|
|
onOk: () => void,
|
|
|
- options?: {title?: string},
|
|
|
+ options?: {title?: string, extra?: string},
|
|
|
) {
|
|
|
- const {title} = options ?? {};
|
|
|
+ const {title, extra} = options ?? {};
|
|
|
|
|
|
Modal.confirm({
|
|
|
title: title ?? `删除${label}`,
|
|
|
- content: `你确定要删除当前${label}吗?`,
|
|
|
+ content: `你确定要删除当前${label}吗?${extra ?? ''}`,
|
|
|
onOk,
|
|
|
});
|
|
|
}
|