salary-management-front/pc4mobx/hrmSalary/components/progressModal/index.js

27 lines
852 B
JavaScript
Raw Normal View History

import React from "react";
import { Modal } from "antd";
2023-04-14 14:21:23 +08:00
import { WeaProgress, WeaLocaleProvider } from "ecCom";
2022-05-05 12:17:12 +08:00
2023-04-14 14:21:23 +08:00
const getLabel = WeaLocaleProvider.getLabel;
2022-05-05 12:17:12 +08:00
export default class ProgressModal extends React.Component {
render() {
2023-06-08 18:13:37 +08:00
const { title = getLabel(543243, "正在核算请稍后") } = this.props;
return (
<div>
2022-11-17 18:55:29 +08:00
<Modal
title={title} style={{ top: 20 }} visible={this.props.visible}
width={this.props.width ? this.props.width : 600}
maskClosable={false}
onCancel={() => {
this.props.onCancel();
}} footer={null}>
<div>
<WeaProgress percent={this.props.progress ? this.props.progress : 0}
strokeColor={this.props.color ? this.props.color : "#B37BFA"}/>
</div>
</Modal>
</div>
);
}
}