<template>

  <InfoBar />
  <CarList />
  
  <TrackViews v-if="carTracked" />
  <EventList v-model="viewAct" v-else />

  <SpaceCtrl />

</template>

<script lang='ts' setup>

// 组件
import InfoBar from './InfoBar.vue'
import CarList from './CarList.vue'
import EventList from './EventList.vue'
import TrackViews from './TrackViews.vue'
import SpaceCtrl from '../SpaceCtrl/index.vue'
import { carTracked } from '../../_state'

const viewAct = defineModel()

</script>

<style lang='scss' scoped>

</style>