forked from github/dataease
fix(仪表板): 修复当开启辅助网格画布有滚动条时,画布滚动部分没有网格的问题
This commit is contained in:
parent
0fc6be4d22
commit
ed849eb290
@ -306,6 +306,7 @@ export default {
|
||||
}
|
||||
},
|
||||
canvasScroll(e) {
|
||||
this.scrollTop = e.target.scrollTop
|
||||
this.$emit('canvasScroll', { scrollLeft: e.target.scrollLeft, scrollTop: e.target.scrollTop })
|
||||
bus.$emit('onScroll')
|
||||
},
|
||||
|
@ -932,7 +932,7 @@ export default {
|
||||
return !this.linkageSettingStatus && !this.batchOptStatus
|
||||
},
|
||||
showGrid() {
|
||||
if (this.canvasStyleData && this.canvasStyleData.aidedDesign) {
|
||||
if (this.canvasStyleData && this.canvasStyleData.aidedDesign && this.canvasId === 'canvas-main') {
|
||||
return this.canvasStyleData.aidedDesign.showGrid
|
||||
} else {
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user