mirror of
https://github.com/dataease/dataease.git
synced 2026-05-21 04:08:10 +08:00
fix(仪表板): 仪表板超出一屏时tab内部组件移出定位阴影出现向上偏转问题
This commit is contained in:
@@ -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
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user