|
@@ -2,18 +2,16 @@
|
|
|
<div class="vr" :style="{ width: width + 'px', height: height + 'px' }" ref="vrRef">
|
|
|
<div class="header" ref="headerRef">
|
|
|
<span>VR全景</span>
|
|
|
- <el-icon class="close" @click="$emit('close')"><Close /></el-icon>
|
|
|
+ <Icon class="close" name="close" @click="$emit('close')" />
|
|
|
</div>
|
|
|
<div class="content" :style="{ pointerEvents: downPos ? 'none' : 'all' }">
|
|
|
<iframe :src="tempStrFill(SceneTypeTempUrls[scene.type], scene)" />
|
|
|
- <el-icon class="full" @click="fullHandler"><FullScreen /></el-icon>
|
|
|
+ <Icon class="full" name="close" @click="fullHandler" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { ElIcon } from "element-plus";
|
|
|
-import { Close, FullScreen } from "@element-plus/icons-vue";
|
|
|
import { dragListener, listener } from "@/utils/event";
|
|
|
import { onUnmounted, ref, watch, watchEffect } from "vue";
|
|
|
import { Pos } from "@/utils/math";
|
|
@@ -25,8 +23,8 @@ defineEmits<{ (e: "close"): void }>();
|
|
|
|
|
|
const headerRef = ref<HTMLDivElement>();
|
|
|
const vrRef = ref<HTMLDivElement>();
|
|
|
-const width = ref(295);
|
|
|
-const height = ref(175);
|
|
|
+const width = ref(320);
|
|
|
+const height = ref(220);
|
|
|
|
|
|
let isFull = false;
|
|
|
const fullHandler = () => {
|
|
@@ -100,20 +98,24 @@ defineExpose({ refresh: initMoveHandler });
|
|
|
z-index: 1;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
+ border-radius: 4px;
|
|
|
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
|
|
|
|
|
.header {
|
|
|
- height: 25px;
|
|
|
+ height: 40px;
|
|
|
flex: 0 0 auto;
|
|
|
+
|
|
|
display: flex;
|
|
|
cursor: move;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
- padding: 0 5px;
|
|
|
+ padding: 0 16px;
|
|
|
font-size: 14px;
|
|
|
+ color: #000;
|
|
|
|
|
|
.close {
|
|
|
color: #000;
|
|
|
- font-size: 16px;
|
|
|
+ font-size: 22px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
}
|
|
@@ -122,13 +124,12 @@ defineExpose({ refresh: initMoveHandler });
|
|
|
flex: 1;
|
|
|
position: relative;
|
|
|
.full {
|
|
|
- box-shadow: 0 0 5px #000;
|
|
|
right: 5px;
|
|
|
bottom: 5px;
|
|
|
+ font-size: 22px;
|
|
|
color: #fff;
|
|
|
position: absolute;
|
|
|
cursor: pointer;
|
|
|
- font-size: 18px;
|
|
|
}
|
|
|
}
|
|
|
iframe {
|