refactor(仪表板、数据大屏): 地图点击激活后允许缩放内部大小

This commit is contained in:
wangjiahao
2025-03-17 16:23:06 +08:00
committed by 王嘉豪
parent 490af7eee1
commit 45f1904849
2 changed files with 20 additions and 1 deletions

View File

@@ -163,8 +163,10 @@ const handleInnerMouseDown = e => {
e.stopPropagation()
e.preventDefault()
}
if (showPosition.value.includes('popEdit') || dvMainStore.mobileInPc) {
if (['popEdit', 'preview'].includes(showPosition.value) || dvMainStore.mobileInPc) {
onClick(e)
e.stopPropagation()
e.preventDefault()
}
}
@@ -438,6 +440,7 @@ const showActive = computed(() => props.popActive || (dvMainStore.mobileInPc &&
:is-edit="false"
:suffix-id="suffixId"
:font-family="fontFamily"
:active="active"
@onPointClick="onPointClick"
/>
</div>

View File

@@ -0,0 +1,16 @@
<script lang="tsx" setup></script>
<template>
<div class="scroll-shadow-content">tet</div>
</template>
<style lang="less" scoped>
.scroll-shadow-content {
z-index: 1;
position: absolute;
height: 100%;
width: 100%;
background-color: #ece7e7;
opacity: 0.5;
}
</style>