fix(数据大屏): 修复跑马灯预览状态可编辑问题

This commit is contained in:
wangjiahao 2024-10-31 10:00:15 +08:00
parent c514752730
commit 38f134f7af
3 changed files with 12 additions and 11 deletions

View File

@ -378,12 +378,6 @@ const showActive = computed(() => props.popActive || (dvMainStore.mobileInPc &&
:id="viewDemoInnerId"
:style="componentBackgroundStyle"
>
<!--边框背景-->
<Board
v-if="svgInnerEnable"
:style="{ color: config.commonBackground.innerImageColor }"
:name="commonBackgroundSvgInner"
></Board>
<div
class="wrapper-inner-adaptor"
:style="slotStyle"
@ -413,6 +407,12 @@ const showActive = computed(() => props.popActive || (dvMainStore.mobileInPc &&
@onPointClick="onPointClick"
/>
</div>
<!--边框背景-->
<Board
v-if="svgInnerEnable"
:style="{ color: config.commonBackground.innerImageColor, pointerEvents: 'none' }"
:name="commonBackgroundSvgInner"
></Board>
</div>
</div>
</template>

View File

@ -53,7 +53,7 @@
<!--边框背景-->
<Board
v-if="svgInnerEnable"
:style="{ color: element.commonBackground.innerImageColor }"
:style="{ color: element.commonBackground.innerImageColor, pointerEvents: 'none' }"
:name="commonBackgroundSvgInner"
></Board>
</div>

View File

@ -109,10 +109,11 @@ const marqueeTxt = computed(
)
const setEdit = () => {
if (element.value['isLock']) return
canEdit.value = true
//
selectText(text.value)
if (['canvas', 'canvasDataV', 'edit'].includes(showPosition.value) && !element.value['isLock']) {
canEdit.value = true
//
selectText(text.value)
}
}
const selectText = element => {
const selection = window.getSelection()