| | |
| | | } |
| | | |
| | | state = { |
| | | float: this.props.wrap.float, |
| | | roleList: [] |
| | | } |
| | | |
| | |
| | | render() { |
| | | const { wrap } = this.props |
| | | const { getFieldDecorator } = this.props.form |
| | | const { float, roleList } = this.state |
| | | const { roleList } = this.state |
| | | |
| | | const formItemLayout = { |
| | | labelCol: { |
| | |
| | | {getFieldDecorator('float', { |
| | | initialValue: wrap.float || 'left' |
| | | })( |
| | | <Radio.Group onChange={(e) => this.setState({float: e.target.value})}> |
| | | <Radio.Group> |
| | | <Radio value="left">左对齐</Radio> |
| | | <Radio value="right">右对齐</Radio> |
| | | </Radio.Group> |
| | | )} |
| | | </Form.Item> |
| | | </Col> |
| | | {float !== 'right' ? <Col span={12}> |
| | | <Col span={12}> |
| | | <Form.Item label="搜索按钮"> |
| | | {getFieldDecorator('show', { |
| | | initialValue: wrap.show || 'true' |
| | |
| | | </Radio.Group> |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | </Col> |
| | | <Col span={12}> |
| | | <Form.Item label="黑名单"> |
| | | {getFieldDecorator('blacklist', { |