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

This commit is contained in:
wangjiahao 2022-11-14 16:53:24 +08:00
parent 7168aee0a6
commit 4b67acf258
2 changed files with 3 additions and 2 deletions

View File

@ -287,6 +287,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

@ -120,7 +120,7 @@
:canvas-id="canvasId"
/>
<!-- 右击菜单 -->
<ContextMenu />
<ContextMenu/>
<!-- 对齐标线 -->
<span
@ -931,7 +931,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