| | |
| | | |
| | | if (_type === 'cardcell') { |
| | | _parent = _p |
| | | MKEmitter.emit('changeCombineStyle', ['margin', 'padding', 'border', 'background', 'font']) |
| | | MKEmitter.emit('switchMultiStyle', 'open') |
| | | } else { |
| | | let getParents = (box) => { |
| | | box.components.forEach(item => { |
| | |
| | | getParents(menu) |
| | | } |
| | | |
| | | MKEmitter.emit('changeCombineStyle', ['margin', 'padding', 'border', 'background']) |
| | | MKEmitter.emit('switchMultiStyle', 'open') |
| | | } |
| | | |
| | | document.getElementById(card.uuid).classList.add('selected-control-element') |
| | |
| | | } |
| | | |
| | | if (components.length === 0) { |
| | | MKEmitter.emit('closeCombineStyle') |
| | | MKEmitter.emit('switchMultiStyle', 'close') |
| | | sessionStorage.setItem('style-control', 'true') |
| | | } |
| | | |
| | |
| | | document.getElementById(item.uuid).classList.remove('selected-control-element') |
| | | }) |
| | | |
| | | MKEmitter.emit('closeCombineStyle') |
| | | MKEmitter.emit('switchMultiStyle', 'close') |
| | | |
| | | this.setState({label: '批量调整', parent: null, components: []}) |
| | | } |