Merge pull request #12921 from dataease/pr@dev-v2@refactor_mobile

refactor(仪表板): 移动端设计面板支持Tab内组件样式设计
This commit is contained in:
王嘉豪 2024-10-25 18:06:52 +08:00 committed by GitHub
commit 24f2de2497
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -145,7 +145,7 @@ const handleInnerMouseDown = e => {
e.stopPropagation()
e.preventDefault()
}
if (showPosition.value.includes('popEdit')) {
if (showPosition.value.includes('popEdit') || dvMainStore.mobileInPc) {
onClick(e)
}
}
@ -338,6 +338,7 @@ const initOpenHandler = newWindow => {
}
}
const deepScale = computed(() => scale.value / 100)
const showActive = computed(() => props.popActive || (dvMainStore.mobileInPc && props.active))
</script>
<template>
@ -386,7 +387,7 @@ const deepScale = computed(() => scale.value / 100)
<div
class="wrapper-inner-adaptor"
:style="slotStyle"
:class="{ 'pop-wrapper-inner': popActive, 'event-active': eventEnable }"
:class="{ 'pop-wrapper-inner': showActive, 'event-active': eventEnable }"
@mousedown="onWrapperClick"
>
<component