Skip to content

Commit ed849eb

Browse files
committed
fix(仪表板): 修复当开启辅助网格画布有滚动条时,画布滚动部分没有网格的问题
1 parent 0fc6be4 commit ed849eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

frontend/src/components/canvas/DeCanvas.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ export default {
306306
}
307307
},
308308
canvasScroll(e) {
309+
this.scrollTop = e.target.scrollTop
309310
this.$emit('canvasScroll', { scrollLeft: e.target.scrollLeft, scrollTop: e.target.scrollTop })
310311
bus.$emit('onScroll')
311312
},

frontend/src/components/canvas/components/editor/DeEditor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
:canvas-id="canvasId"
122122
/>
123123
<!-- 右击菜单 -->
124-
<ContextMenu />
124+
<ContextMenu/>
125125

126126
<!-- 对齐标线 -->
127127
<span
@@ -932,7 +932,7 @@ export default {
932932
return !this.linkageSettingStatus && !this.batchOptStatus
933933
},
934934
showGrid() {
935-
if (this.canvasStyleData && this.canvasStyleData.aidedDesign) {
935+
if (this.canvasStyleData && this.canvasStyleData.aidedDesign && this.canvasId === 'canvas-main') {
936936
return this.canvasStyleData.aidedDesign.showGrid
937937
} else {
938938
return false

0 commit comments

Comments
 (0)