Merge pull request #12143 from dataease/pr@dev-v2@fix_tab-gap

feat(仪表板): 修复tab中的组件,在编辑的时候组件之后有空隙,在预览界面,无空隙问题 #12132
This commit is contained in:
王嘉豪
2024-09-11 10:57:06 +08:00
committed by GitHub

View File

@@ -253,8 +253,8 @@ const getShapeItemShowStyle = item => {
}
const curGap = computed(() => {
return dashboardActive.value && canvasStyleData.value?.dashboard?.gap === 'yes'
? canvasStyleData.value?.dashboard?.gapSize
return dashboardActive.value && dvMainStore.canvasStyleData.dashboard?.gap === 'yes'
? dvMainStore.canvasStyleData?.dashboard?.gapSize
: 0
})