fix: 优化组态 在编辑页可以放大缩小

This commit is contained in:
huanghao1412 2024-03-07 11:53:41 +08:00
parent 302da03590
commit 0a343ad794
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<div v-if="chartConfig.customData.mapId" :style="{width: w, height: h}"> <div v-if="chartConfig.customData.mapId" :style="{width: w, height: h}">
<!-- :style="{transform: handleScale}"--> <!-- :style="{transform: handleScale}"-->
<iframe ref="iframe" :src="url" :width="w" :height="h" :style="{pointerEvents: !isPreview() && option.enableInner ? 'auto' : ''}" style="transform-origin: left top" frameborder="no" scrolling="no"></iframe> <iframe ref="iframe" :src="url" :width="w" :height="h" :style="{pointerEvents: (!isPreview() && option.enableInner ? 'auto' : '') as any}" style="transform-origin: left top" frameborder="no" scrolling="no"></iframe>
</div> </div>
<div style="display: flex;flex-direction: column;align-items: center;justify-content: center;" v-else> <div style="display: flex;flex-direction: column;align-items: center;justify-content: center;" v-else>
<img src="@/assets/images/exception/nodata.svg" style="width: 100%;height: 30%" alt=""> <img src="@/assets/images/exception/nodata.svg" style="width: 100%;height: 30%" alt="">

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="go-shape-box" :style="{pointerEvents}" :class="{ lock, hide }"> <div class="go-shape-box" :style="{pointerEvents: pointerEvents as any}" :class="{ lock, hide }">
<slot :enableOuter="enableOuter"></slot> <slot :enableOuter="enableOuter"></slot>
<!-- 锚点 --> <!-- 锚点 -->
<template v-if="!hiddenPoint"> <template v-if="!hiddenPoint">