| | |
| | | return item |
| | | }) |
| | | }) |
| | | if (val === 'absolute') { |
| | | this.props.form.setFieldsValue({cardWidth: 250}) |
| | | } else { |
| | | this.props.form.setFieldsValue({cardWidth: 6}) |
| | | } |
| | | } else if (key === 'over' && val === 'roll') { |
| | | this.setState({ |
| | | formlist: formlist.map(item => { |
| | |
| | | }) |
| | | }) |
| | | if (this.props.form.getFieldValue('widthType') !== undefined) { |
| | | this.props.form.setFieldsValue({widthType: 'absolute'}) |
| | | this.props.form.setFieldsValue({widthType: 'absolute', cardWidth: 250}) |
| | | } |
| | | } else if (key === 'over' && val === 'whole') { |
| | | this.setState({ |
| | |
| | | <Row gutter={24}>{this.getFields()}</Row> |
| | | {legends ? <Row gutter={24} className="chart-model-image"> |
| | | {legends.map(item => <Col span={6} key={item.uuid}> |
| | | <img onClick={() => this.changeSelectLegend(item)} src={item.url} className={selectlegend.uuid === item.uuid ? 'active' : ''} alt=""/> |
| | | <img onClick={() => this.changeSelectLegend(item)} src={item.url} className={selectlegend && selectlegend.uuid === item.uuid ? 'active' : ''} alt=""/> |
| | | </Col>)} |
| | | </Row> : null} |
| | | </Form> |