| | |
| | | import { formRule } from '@/utils/option.js' |
| | | import './index.scss' |
| | | |
| | | const { TextArea } = Input |
| | | |
| | | class MainSearch extends Component { |
| | | static propTpyes = { |
| | | dict: PropTypes.object, // 字典项 |
| | |
| | | if (value.length > 100) return |
| | | this.setState({}, () => { |
| | | this.props.updatemenu({...this.props.config, easyCode: value}) |
| | | }) |
| | | } |
| | | |
| | | changeRemark = (e) => { |
| | | let value = e.target.value || '' |
| | | this.setState({}, () => { |
| | | this.props.updatemenu({...this.props.config, Remark: value}) |
| | | }) |
| | | } |
| | | |
| | |
| | | }} /> |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Form.Item label="备注"> |
| | | {getFieldDecorator('Remark', { |
| | | initialValue: config.Remark || '', |
| | | rules: [ |
| | | { |
| | | max: 512, |
| | | message: '备注最多512个字符!' |
| | | } |
| | | ] |
| | | })(<TextArea rows={2} placeholder={''} onChange={this.changeRemark} />)} |
| | | </Form.Item> |
| | | </Col> |
| | | </Row> |
| | | </Form> |
| | | ) |