App.vue 658 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <div id="right-pano">
  3. <ElButton @click="mound = !mound">销毁测试</ElButton>
  4. </div>
  5. <QueryBoard :width="width" :height="height" v-if="mound" />
  6. </template>
  7. <script setup lang="ts">
  8. import { ref } from "vue";
  9. import { ElButton } from "element-plus";
  10. // import QueryBoard from "./app/4dmap/example/index.vue";
  11. // import QueryBoard from "./app/liantong/example/index.vue";
  12. import QueryBoard from "./app/test/index.vue";
  13. const mound = ref(true);
  14. const width = window.innerWidth;
  15. const height = window.innerHeight;
  16. </script>
  17. <style>
  18. #right-pano {
  19. position: absolute;
  20. right: 0;
  21. top: 0;
  22. max-width: 200px;
  23. z-index: 1;
  24. }
  25. </style>