| | |
| | | initVal: this.props.card.position || 'right', |
| | | required: true, |
| | | options: [{ |
| | | MenuID: 'right', |
| | | text: '右侧' |
| | | }, { |
| | | MenuID: 'left', |
| | | text: '左侧' |
| | | }, { |
| | | MenuID: 'right', |
| | | text: '右侧' |
| | | }] |
| | | } |
| | | ] |
| | |
| | | const { getFieldDecorator } = this.props.form |
| | | const fields = [] |
| | | this.state.formlist.forEach((item, index) => { |
| | | if (item.type === 'text') { // 文本搜索 |
| | | if (item.type === 'text') { |
| | | fields.push( |
| | | <Col span={12} key={index}> |
| | | <Form.Item label={item.label}> |
| | |
| | | </Form.Item> |
| | | </Col> |
| | | ) |
| | | } else if (item.type === 'number') { // 文本搜索 |
| | | } else if (item.type === 'number') { |
| | | fields.push( |
| | | <Col span={12} key={index}> |
| | | <Form.Item label={item.label}> |