React AntDesign写一个导出数据的提示语 上面有跳转的路径,或者点击知道了,关闭该弹层

效果如下:
React AntDesign写一个导出数据的提示语 上面有跳转的路径,或者点击知道了,关闭该弹层_第1张图片

代码如下:

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,
    });
};

你可能感兴趣的:(react.js,javascript,前端)