forked from github/dataease
Merge pull request #1562 from dataease/pr@dev@feat-mobile-reset
refactor: 仪表板间隙设置优化
This commit is contained in:
commit
6a56fe9b84
@ -535,7 +535,7 @@ export default {
|
||||
return this.$store.state.curComponent
|
||||
},
|
||||
curGap() {
|
||||
return this.element.auxiliaryMatrix && this.element.type !== 'custom' ? this.componentGap : 0
|
||||
return (this.canvasStyleData.panel.gap === 'yes' && this.element.auxiliaryMatrix && this.element.type !== 'custom') ? this.componentGap : 0
|
||||
},
|
||||
...mapState([
|
||||
'editor',
|
||||
|
@ -85,7 +85,7 @@ export default {
|
||||
return (this.curComponent && this.config === this.curComponent) && !this.previewVisible
|
||||
},
|
||||
curGap() {
|
||||
return this.config.auxiliaryMatrix ? this.componentGap : 0
|
||||
return (this.canvasStyleData.panel.gap === 'yes' && this.config.auxiliaryMatrix) ? this.componentGap : 0
|
||||
},
|
||||
...mapState([
|
||||
'mobileLayoutStatus',
|
||||
|
@ -261,6 +261,10 @@ export default {
|
||||
if (!this.preCanvasPanel || this.preCanvasPanel.resultCount !== newVal.panel.resultCount || this.preCanvasPanel.resultMode !== newVal.panel.resultMode) {
|
||||
this.getData(this.element.propValue.viewId, false)
|
||||
}
|
||||
// 如果gap有变化刷新
|
||||
if (this.preCanvasPanel && this.preCanvasPanel.gap !== newVal.panel.gap) {
|
||||
this.$refs[this.element.propValue.id].chartResize()
|
||||
}
|
||||
this.preCanvasPanel = deepCopy(newVal.panel)
|
||||
},
|
||||
deep: true
|
||||
|
Loading…
Reference in New Issue
Block a user