修改公共模态框

This commit is contained in:
何童崇 2021-12-22 13:40:01 +08:00
parent a2ade8687c
commit f030f76e60
3 changed files with 30 additions and 13 deletions

View File

@ -65,7 +65,7 @@ function renderModal(props) {
} else if (type === 'confirm') {
return <InitModal title="选择" afterClose={destroy} {...props} />
} else if (type === 'info') {
return <InitModal title="选择" afterClose={destroy} {...props} okText="知道了"/>
return <InitModal title="选择" afterClose={destroy} {...props} okText="知道了" cancelButtonProps={""}/>
} else {
return <InitModal title="选择" afterClose={destroy} {...props} />
}
@ -119,7 +119,7 @@ function InitModal({
<Button type="default" key="back" onClick={onCancelModal}>
{cancelText}
</Button>,
<Button className="foot-submit" key="submit" onClick={onSuccess}>
<Button type="primary" className="foot-submit" key="submit" onClick={onSuccess}>
{okText}
</Button>,
]}

View File

@ -46,17 +46,25 @@
width: 6rem;
}
}
.foot-submit {
.ant-btn-primary {
margin-left: 3rem;
color: #4154F1;
&:hover {
border-color: #4154F1;
background: #4154f1;
border-color: #4154f1;
&:hover,
&:active,
&:focus {
background: #5d6eff;
border-color: #5d6eff;
}
}
.ant-btn-default:hover,
.ant-btn-default:active,
.ant-btn-default:focus {
background: #5d6eff;
border-color: #5d6eff;
.ant-btn-default {
&:hover,
&:active,
&:focus {
color: #5d6eff;
border-color: #5d6eff;
}
}
}
}

View File

@ -205,6 +205,15 @@ function RegisterList({ showNotification }) {
}
}
function exportList(){
Info({
title: '提示',
content: <div className="import-important">
hhhh
</div>,
});
}
const upload = {
name: 'file',
action: `${httpUrl}/api/experts/registerByExcel`,
@ -263,7 +272,7 @@ function RegisterList({ showNotification }) {
>
<button className="but41_fill">导入</button>
</Upload>
<button className="but41_fill">导出</button>
<button className="but41_fill" onClick={exportList}>导出</button>
</div>
</div>
<Paginationtable