| | |
| | | return item |
| | | }) |
| | | |
| | | let _field = '' |
| | | if (value === 'formula') { |
| | | _field = this.props.form.getFieldValue('field') || '' |
| | | } |
| | | |
| | | this.setState({ |
| | | link: '', |
| | | eleType: value, |
| | |
| | | this.props.form.setFieldsValue({color: '#000000'}) |
| | | } else if (value === 'text' || value === 'number') { |
| | | this.props.form.setFieldsValue({format: ''}) |
| | | } else if (value === 'formula' && _field) { |
| | | this.props.form.setFieldsValue({formula: '@' + _field + '@'}) |
| | | } |
| | | if (value === 'text' || value === 'picture') { |
| | | this.props.form.setFieldsValue({link: ''}) |