| | |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {type === 'search' ? <Col span={12}> |
| | | <Form.Item label="提示文字"> |
| | | {getFieldDecorator('label', { |
| | | initialValue: config.setting.label, |
| | | rules: [ |
| | | { |
| | | max: formRule.input.max, |
| | | message: formRule.input.message |
| | | } |
| | | ] |
| | | })(<Input placeholder="" autoComplete="off" onPressEnter={this.handleSubmit} />)} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {type === 'search' ? <Col span={12}> |
| | | <Form.Item label="匹配方式"> |
| | | {getFieldDecorator('match', { |
| | | initialValue: config.setting.match || 'like' |
| | |
| | | )} |
| | | </Form.Item> |
| | | </Col> |
| | | {type === 'search' ? <Col span={12}> |
| | | {type === 'search' && config.floor === 1 ? <Col span={12}> |
| | | <Form.Item label="扫码"> |
| | | {getFieldDecorator('scan', { |
| | | initialValue: config.setting.scan || 'false' |