| | |
| | | _type = 'text' |
| | | } |
| | | } else if (props.type === 'search') { |
| | | if (_type !== 'select') { |
| | | if (_type === 'date' || _type === 'datetime') { |
| | | _type = 'date' |
| | | } else if (_type !== 'select') { |
| | | _type = 'text' |
| | | } |
| | | } else if (props.type === 'form') { |
| | | if (_type !== 'number') { |
| | | if (_type === 'datetime' || _type === 'date') { |
| | | _type = 'date' |
| | | } else if (_type !== 'number') { |
| | | _type = 'text' |
| | | } |
| | | } |
| | |
| | | <Radio.Group onChange={this.changeType} value={card.type} disabled={!card.selected || card.origin}> |
| | | <Radio value="text">text</Radio> |
| | | <Radio value="select">select</Radio> |
| | | <Radio value="date">date</Radio> |
| | | </Radio.Group> : null |
| | | } |
| | | {type === 'columns' ? |