| | |
| | | |
| | | complete = (key, option) => { |
| | | let label = option.props.label |
| | | |
| | | |
| | | this.props.form.setFieldsValue({label: label}) |
| | | } |
| | | |
| | |
| | | |
| | | if (item.key === 'field' && item.options && item.options.length > 0) { |
| | | content = <AutoComplete |
| | | dataSource={item.options.map((cell) => <AutoComplete.Option label={cell.label} key={cell.key}> |
| | | dataSource={item.options.map((cell) => <AutoComplete.Option label={cell.label} value={cell.value} key={cell.key}> |
| | | {cell.text} |
| | | </AutoComplete.Option>)} |
| | | filterOption={(input, option) => option.props.children.indexOf(input) > -1} |