1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<template>
  <div style="width: 70vw; height: 600px; background-color: aliceblue">
    <SceneMap :data="scenes"></SceneMap>
  </div>
</template>
<script setup>
import { computed } from 'vue';
const props = defineProps({
  // 场景计划
  plans: {
    type: Array,
    default: () => []
  },
  dayTasks: {
    type: Array,
    default: () => []
  }
});
 
const scenes = computed(() => {
  return props.plans.map((p) => {
    return p.scene;
  });
});
</script>