fix(仪表板): 修复当开启辅助网格画布有滚动条时,画布滚动部分没有网格的问题

This commit is contained in:
wangjiahao 2022-11-14 16:53:24 +08:00
parent 0fc6be4d22
commit ed849eb290
2 changed files with 3 additions and 2 deletions

View File

@ -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')
},

View File

@ -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