forgeplus-react/src/forge/Component/DeleteModal/Index.jsx

33 lines
783 B
React
Raw Normal View History

2021-07-30 15:06:32 +08:00
import React from 'react';
import { AlignCenter } from '../layout';
2021-09-01 17:46:58 +08:00
import { Button } from 'antd';
import Modals from '../PublicModal/Index';
2021-07-30 15:06:32 +08:00
function DeleteBox({
visible ,
onCancel ,
onSuccess ,
title ,
subTitle,
content
}) {
return(
2021-09-01 17:46:58 +08:00
<Modals
title={title}
btn={
2021-07-30 15:06:32 +08:00
<div>
<Button size={'large'} onClick={onCancel}>取消</Button>
<Button type={"danger"} size={"large"} onClick={onSuccess}>确认删除</Button>
</div>
2021-09-01 17:46:58 +08:00
}
onCancel={onCancel}
visible={visible}
2021-07-30 15:06:32 +08:00
>
<div className="desc">
<AlignCenter className="descMain"><i className="iconfont icon-shanchu_tc_icon mr10"></i>{content}</AlignCenter>
2021-09-01 17:46:58 +08:00
<p>{subTitle}</p>
2021-07-30 15:06:32 +08:00
</div>
2021-09-01 17:46:58 +08:00
</Modals>
2021-07-30 15:06:32 +08:00
)
}
export default DeleteBox;