king
2025-02-25 010fdcf8abd58bde5c1106db8ed8448effc75b4b
src/templates/sharecomponent/actioncomponent/verifyexcelout/columnform/index.jsx
@@ -1,7 +1,7 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import { Form, Row, Col, Button, Input, InputNumber, Radio } from 'antd'
import './index.scss'
// import './index.scss'
class ExcelOutColumn extends Component {
  static propTpyes = {
@@ -12,11 +12,12 @@
    // 表单提交时检查输入值是否正确
    this.props.form.validateFieldsAndScroll((err, values) => {
      if (!err) {
        this.props.columnChange(values)
        this.props.form.setFieldsValue({
          Column: '',
          Text: '',
          Width: 20
        this.props.columnChange(values, () => {
          this.props.form.setFieldsValue({
            Column: '',
            Text: '',
            Width: 20
          })
        })
      }
    })
@@ -46,9 +47,13 @@
                  {
                    required: true,
                    message: '请输入字段!'
                  },
                  {
                    pattern: /^[\u4E00-\u9FA50-9a-zA-Z_]*$/ig,
                    message: '只允许包含数字、字母、汉字以及_'
                  }
                ]
              })(<Input placeholder="" autoComplete="off" />)}
              })(<Input placeholder="" autoComplete="off" onPressEnter={this.handleConfirm}/>)}
            </Form.Item>
          </Col>
          <Col span={5}>
@@ -61,7 +66,7 @@
                    message: '请输入名称!'
                  }
                ]
              })(<Input placeholder="" autoComplete="off" />)}
              })(<Input placeholder="" autoComplete="off" onPressEnter={this.handleConfirm}/>)}
            </Form.Item>
          </Col>
          <Col span={5}>
@@ -74,7 +79,7 @@
                    message: '请输入列宽!'
                  }
                ]
              })(<InputNumber min={5} max={200} precision={0} />)}
              })(<InputNumber min={5} max={200} precision={0} onPressEnter={this.handleConfirm}/>)}
            </Form.Item>
          </Col>
          <Col span={6}>