| | |
| | | }, 200) |
| | | } |
| | | |
| | | filterComponent = (config) => { |
| | | let item = null |
| | | config.subMenus.forEach(menu => { |
| | | if (menu.setting.type === 'linkmenu' && menu.setting.linkMenuId === '') { |
| | | item = menu |
| | | } |
| | | }) |
| | | |
| | | this.updateComponent(config) |
| | | |
| | | setTimeout(() => { |
| | | let node = document.getElementById(item.uuid) |
| | | node && node.click() |
| | | }, 200) |
| | | } |
| | | |
| | | move = (item, direction) => { |
| | | let card = fromJS(this.state.card).toJS() |
| | | |
| | |
| | | <EditOutlined style={{color: '#1890ff'}} title="编辑"/> |
| | | </NormalForm> |
| | | <CopyComponent type="menubar" card={card}/> |
| | | <PasteComponent config={card} options={['menucell']} updateConfig={this.updateComponent} /> |
| | | <PasteComponent config={card} options={['menucell']} updateConfig={this.filterComponent} /> |
| | | <FontColorsOutlined className="style" title="调整样式" onClick={this.changeStyle} /> |
| | | <UserComponent config={card}/> |
| | | <DeleteOutlined className="close" title="删除组件" onClick={() => this.props.deletecomponent(card.uuid)} /> |