| | |
| | | changeStyle = () => { |
| | | const { group } = this.state |
| | | |
| | | MKEmitter.emit('changeStyle', [group.uuid], ['background', 'border', 'padding', 'margin'], group.style) |
| | | MKEmitter.emit('changeStyle', [group.uuid], ['background', 'border', 'padding', 'margin', 'shadow'], group.style) |
| | | } |
| | | |
| | | getStyle = (comIds, style) => { |
| | |
| | | const { group } = this.state |
| | | let _style = resetStyle(group.style) |
| | | |
| | | let paddingTop = true |
| | | if (group.style.paddingTop && parseInt(group.style.paddingTop) >= 28) { |
| | | paddingTop = false |
| | | } |
| | | |
| | | return ( |
| | | <div className="menu-group-edit-box" style={_style} onClick={this.clickComponent} id={group.uuid}> |
| | | <div className={'menu-group-edit-box' + (paddingTop ? ' padding' : '')} style={_style} onClick={this.clickComponent} id={group.uuid}> |
| | | <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={ |
| | | <div className="mk-popover-control"> |
| | | <SettingComponent config={group} updateConfig={this.updateComponent} /> |