From 427c876d16ba2e310b90092ab65af40f96c672f4 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期五, 19 四月 2024 10:47:45 +0800
Subject: [PATCH] 接口权限精确到按钮补充
---
src/views/screen/components/screen-map-three/index.vue | 41 +++++++++++++++++++++++++++++++++++++----
1 files changed, 37 insertions(+), 4 deletions(-)
diff --git a/src/views/screen/components/screen-map-three/index.vue b/src/views/screen/components/screen-map-three/index.vue
index aae98bf..af189c1 100644
--- a/src/views/screen/components/screen-map-three/index.vue
+++ b/src/views/screen/components/screen-map-three/index.vue
@@ -1,13 +1,46 @@
<template>
- <div>
- 123
+ <div class="map-container" >
+ <canvas class="world" ref="worldContainer"></canvas>
</div>
</template>
<script>
+import Experience from './experience/index';
+let world = null;
export default {
- name: 'ScreenMapThree'
+ name: 'ScreenMapThree',
+ props: {
+ loadEnd: {
+ type: Boolean,
+ default: false
+ },
+ },
+ watch: {
+ loadEnd: {
+ handler(newVal) {
+ console.log(newVal);
+ if(newVal) {
+ world = new Experience(this.$refs.worldContainer);
+ }
+ }
+ }
+ },
+ mounted() {
+ }
}
</script>
-<style lang="scss" scoped></style>
\ No newline at end of file
+<style lang="scss" scoped>
+.map-container {
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ left: 0;
+ top: 0;
+ z-index: 0;
+ .world {
+ width: 100%;
+ height: 100%;
+ }
+}
+</style>
\ No newline at end of file
--
Gitblit v1.8.0