forked from github/dataease
fix(数据大屏): 修复跑马灯预览状态可编辑问题
This commit is contained in:
parent
c514752730
commit
38f134f7af
@ -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>
|
||||
|
@ -53,7 +53,7 @@
|
||||
<!--边框背景-->
|
||||
<Board
|
||||
v-if="svgInnerEnable"
|
||||
:style="{ color: element.commonBackground.innerImageColor }"
|
||||
:style="{ color: element.commonBackground.innerImageColor, pointerEvents: 'none' }"
|
||||
:name="commonBackgroundSvgInner"
|
||||
></Board>
|
||||
</div>
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user