| | |
| | | import { Form, Row, Col, Button, Input, InputNumber } from 'antd' |
| | | import './index.scss' |
| | | |
| | | class UniqueForm extends Component { |
| | | class ExcelOutColumn extends Component { |
| | | static propTpyes = { |
| | | dict: PropTypes.object, // 字典项 |
| | | columns: PropTypes.array, // 列名集合 |
| | |
| | | this.props.form.setFieldsValue({ |
| | | Column: record.Column, |
| | | Text: record.Text, |
| | | Width: record.Width, |
| | | Width: record.Width |
| | | }) |
| | | } |
| | | |
| | |
| | | this.props.form.setFieldsValue({ |
| | | Column: '', |
| | | Text: '', |
| | | Width: 20, |
| | | Width: 20 |
| | | }) |
| | | } |
| | | }) |
| | |
| | | } |
| | | } |
| | | |
| | | export default Form.create()(UniqueForm) |
| | | export default Form.create()(ExcelOutColumn) |