22 lines
676 B
JavaScript
22 lines
676 B
JavaScript
import React from "react";
|
|
import { Modal } from "antd";
|
|
import { WeaProgress } from "ecCom";
|
|
|
|
export default class ProgressModal extends React.Component {
|
|
render() {
|
|
return (
|
|
<div>
|
|
<Modal title="正在核算请稍后" style={{ top: 20 }} visible={this.props.visible}
|
|
width={this.props.width ? this.props.width : 600} 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>
|
|
);
|
|
}
|
|
}
|