salary-management-front/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/copySchemaModal.js

32 lines
867 B
JavaScript

import React from "react";
import { Col, Modal, Row } from "antd";
import { WeaInput } from "ecCom";
export default class CopySchemaModal extends React.Component {
constructor(props) {
super(props);
this.state = {
value: ""
};
}
render() {
return (
<Modal title={`复制${this.props.title}`} footer={this.props.footer} onCancel={() => this.props.onCancel()}
visible={this.props.visible}>
<Row style={{ display: "flex", alignItems: "center" }}>
<Col span={8} style={{ textAlign: "center" }}>
{`${this.props.title}名称`}
</Col>
<Col span={16}>
<WeaInput value={this.state.value} onChange={(v) => {
this.setState({ value: v });
this.props.onChange(v);
}}/>
</Col>
</Row>
</Modal>
);
}
}