<template>
  <div>
    <div class="cameraMain">
      <div class="cameraTree">
        <CameraTree />
      </div>
      <div class="cameraSettingWrapper">
        <div class="cameraView">
          <CameraViewSetting v-if="cameraDetailStore.cameraId" />
          <div class="cameraPlaceholder" v-else>请选择左侧相机</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import CameraTree from './components/CameraTree/CameraTree.vue';
  import CameraViewSetting from './components/CameraViewSetting/CameraViewSetting.vue';
  import useCameraDetailStore from './store/useCameraDetailStore';
  const cameraDetailStore = useCameraDetailStore();
</script>
<style lang="scss" scoped>
  .cameraView {
    width: 800px;
    // height: 400px;
    // border: 1px solid #ccc;
  }

  .cameraParamsSetting {
    width: 350px;
    min-height: 300px;
    // border: 1px solid #ccc;
  }

  .cameraParamsSetting {
    width: 350px;
    min-height: 300px;
    // border: 1px solid #ccc;
  }

  .algorithmsSetting {
    flex: 1;
    border-left: 1px solid #ccc;
    padding-left: 20px;
  }
  .cameraMain {
    display: flex;
    background: #fff;
  }
  .cameraTree {
    width: 250px;
    // height: 800px;
    // border: 1px solid #ccc;
  }

  .cameraPlaceholder {
    color: #ccc;
    text-align: center;
    margin-top: 100px;
  }
</style>
