效果如下:
代码如下:
ForwardDataCenterModal('_blank');
export const ForwardDataCenterModal = (target?: string) => {
let contentBefore = React.createElement('span', null, '数据正在处理中,请稍后前往');
let contentAfter = React.createElement('span', null, '查看');
let link = React.createElement(
'a',
{
onClick: () => {
AntModal.destroyAll();
setTimeout(() => {
window.open('#/report-download-center', target ? target : '_self');
}, 100);
},
},
'数据-导入/导出记录'
);
let content = React.createElement('div', {}, [contentBefore, link, contentAfter]);
Modal.info({
content: content,
});
};