feat(仪表板): 修复tab中的组件,在编辑的时候组件之后有空隙,在预览界面,无空隙问题 #12132

This commit is contained in:
wangjiahao 2024-09-11 10:55:36 +08:00
parent 3e6c65d30a
commit 6047b4d3fa

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
})