| | |
| | | card.$tables = getTables(card) |
| | | } |
| | | |
| | | delete card.$c_ds |
| | | delete card.$c_ac |
| | | delete card.$c_sc |
| | | delete card.$c_el |
| | | |
| | | this.setState({ |
| | | card: card |
| | | }) |
| | |
| | | |
| | | changeStyle = () => { |
| | | const { card } = this.state |
| | | let options = ['width', 'height', 'background', 'border', 'padding', 'margin', 'shadow', 'clear', 'minHeight', 'position', 'transform'] |
| | | |
| | | MKEmitter.emit('changeStyle', ['width', 'height', 'background', 'border', 'padding', 'margin', 'shadow', 'clear', 'minHeight', 'position', 'transform'], card.style, this.getStyle) |
| | | if (card.style && !card.style.width) { |
| | | if (card.style.height) { |
| | | options = ['height', 'width', 'background', 'border', 'padding', 'margin', 'shadow', 'clear', 'minHeight', 'position', 'transform'] |
| | | } else if (card.style.position && ['fixed', 'absolute'].includes(card.style.position)) { |
| | | options = ['position', 'width', 'height', 'background', 'border', 'padding', 'margin', 'shadow', 'clear', 'minHeight', 'transform'] |
| | | } |
| | | } |
| | | |
| | | MKEmitter.emit('changeStyle', options, card.style, this.getStyle) |
| | | } |
| | | |
| | | getStyle = (style) => { |
| | |
| | | let _style = resetStyle(card.style) |
| | | |
| | | return ( |
| | | <div className="menu-balcony-edit-box" style={_style} id={card.uuid}> |
| | | <div className={'menu-balcony-edit-box' + (['fixed', 'absolute'].includes(_style.position) ? ' ctrl-position' : '')} style={_style} id={card.uuid}> |
| | | {card.style.height ? <ColumnHeightOutlined className="fixed-height" title="定高" /> : null} |
| | | <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={ |
| | | <div className="mk-popover-control"> |