| | |
| | | let _options = fromJS(columnTypeOptions[this.column.type]).toJS() |
| | | |
| | | if (this.column.editable === 'true') { |
| | | _options.push('ctrlField') |
| | | if (this.column.ctrlField) { |
| | | _options.push('ctrlValue') |
| | | } |
| | | if (this.column.type === 'text') { |
| | | _options.push('editType') |
| | | |
| | |
| | | } |
| | | } else if (key === 'format' && value === 'percent') { |
| | | this.props.form.setFieldsValue({postfix: '%'}) |
| | | } else if (key === 'editable' || key === 'editType' || key === 'resourceType') { |
| | | } else if (key === 'editable' || key === 'editType' || key === 'resourceType' || key === 'ctrlField') { |
| | | let _options = this.getOptions() |
| | | |
| | | this.setState({ |