fix(仪表板): 仪表板超出一屏时tab内部组件移出定位阴影出现向上偏转问题

This commit is contained in:
wangjiahao
2024-11-05 22:14:42 +08:00
parent af63720687
commit 39b709dec2
5 changed files with 27 additions and 6 deletions

View File

@@ -78,6 +78,11 @@ const props = defineProps({
isSelector: {
type: Boolean,
default: false
},
// 显示悬浮按钮
showPopBar: {
type: Boolean,
default: false
}
})
@@ -91,7 +96,8 @@ const {
previewActive,
downloadStatus,
outerScale,
outerSearchCount
outerSearchCount,
showPopBar
} = toRefs(props)
const domId = 'preview-' + canvasId.value
const scaleWidthPoint = ref(100)
@@ -398,7 +404,10 @@ const dataVPreview = computed(
const linkOptBarShow = computed(() => {
return Boolean(
canvasStyleData.value.suspensionButtonAvailable && !inMobile.value && !mobileInPc.value
canvasStyleData.value.suspensionButtonAvailable &&
!inMobile.value &&
!mobileInPc.value &&
showPopBar.value
)
})

View File

@@ -156,7 +156,8 @@ const {
tabCollisionActiveId,
tabMoveInActiveId,
tabMoveOutComponentId,
mobileInPc
mobileInPc,
mainScrollTop
} = storeToRefs(dvMainStore)
const { editorMap, areaData, isCtrlOrCmdDown } = storeToRefs(composeStore)
const emit = defineEmits([
@@ -558,7 +559,7 @@ const handleMouseDownOnShape = e => {
mouseY:
!isDashboard() && outerTabDom
? outerTabDom.offsetTop + curDom.offsetTop + offsetY + 100
: curY,
: curY + mainScrollTop.value,
width: componentWidth,
height: componentHeight
})