forked from github/dataease
refactor(仪表板): 优化限制矩阵模式下的组最小的长宽为4*4最小单位
This commit is contained in:
parent
2e55ebe6d7
commit
466f53c994
@ -595,14 +595,14 @@ export default {
|
||||
return (this.canvasStyleData.panel.gap === 'yes' && this.element.auxiliaryMatrix) ? this.componentGap : 0
|
||||
},
|
||||
miniWidth() {
|
||||
return this.element.auxiliaryMatrix ? this.curCanvasScale.matrixStyleWidth * (this.element.miniSizex || 1) : 0
|
||||
return this.element.auxiliaryMatrix ? this.curCanvasScale.matrixStyleWidth * 4 : 0
|
||||
},
|
||||
miniHeight() {
|
||||
if (this.element.auxiliaryMatrix) {
|
||||
if (this.element.component === 'de-number-range') {
|
||||
return this.element.auxiliaryMatrix ? this.curCanvasScale.matrixStyleHeight * (this.element.miniSizey || 2) : 0
|
||||
return this.element.auxiliaryMatrix ? this.curCanvasScale.matrixStyleHeight * 4 : 0
|
||||
} else {
|
||||
return this.element.auxiliaryMatrix ? this.curCanvasScale.matrixStyleHeight * (this.element.miniSizey || 1) : 0
|
||||
return this.element.auxiliaryMatrix ? this.curCanvasScale.matrixStyleHeight * 4 : 0
|
||||
}
|
||||
} else {
|
||||
return 0
|
||||
|
@ -138,14 +138,14 @@ export default {
|
||||
return this.targetLinkageInfo[this.element.propValue.viewId]
|
||||
},
|
||||
miniHeight() {
|
||||
let miniHeight = this.curComponent.miniSizey || 1
|
||||
let miniHeight = 4
|
||||
if (this.element.component === 'de-number-range') {
|
||||
miniHeight = this.curComponent.miniSizey || 2
|
||||
miniHeight = 4
|
||||
}
|
||||
return miniHeight
|
||||
},
|
||||
miniWidth() {
|
||||
return this.curComponent.miniSizex || 1
|
||||
return 4
|
||||
},
|
||||
...mapState([
|
||||
'menuTop',
|
||||
|
Loading…
Reference in New Issue
Block a user