| | |
| | | this.updateComponent(config) |
| | | } |
| | | |
| | | parseComponent = (config, type) => { |
| | | if (type === 'cols') { |
| | | this.updatecolumn(config) |
| | | } |
| | | this.updateComponent(config) |
| | | } |
| | | |
| | | render() { |
| | | const { card } = this.state |
| | | let options = ['action', 'search', 'form', 'cols'] |
| | |
| | | <EditOutlined style={{color: '#1890ff'}} title="编辑"/> |
| | | </NormalForm> |
| | | <CopyComponent type="basetable" card={card}/> |
| | | <PasteComponent config={card} options={options} updateConfig={this.updateComponent} /> |
| | | <PasteComponent config={card} options={options} updateConfig={this.parseComponent} /> |
| | | <FontColorsOutlined className="style" title="调整样式" onClick={this.changeStyle}/> |
| | | <SettingComponent config={card} updateConfig={this.updateComponent} /> |
| | | </div> |