App.vue 461 B

123456789101112131415
  1. <template>
  2. <ElButton @click="mound = !mound">销毁测试</ElButton>
  3. <QueryBoard :width="width" :height="height" v-if="mound" />
  4. </template>
  5. <script setup lang="ts">
  6. import { ref } from "vue";
  7. import { ElButton } from "element-plus";
  8. import QueryBoard from "./app/4dmap/example/index.vue";
  9. // import QueryBoard from "./app/liantong/example/index.vue";
  10. const mound = ref(true);
  11. const width = window.innerWidth;
  12. const height = window.innerHeight;
  13. </script>