| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <template>
- <div>
- <h2> 相机预览 </h2>
- <div class="cameraMain">
- <div class="cameraTree">
- <CameraTree :data="data" v-if="data" />
- </div>
- <div class="cameraSettingWrapper">
- <div class="cameraView">
- <CameraViewSetting />
- </div>
- <div class="cameraParamsSettingWrapper">
- <div class="cameraParamsSetting">
- <CameraParams :detail="cameraParamsDetail" />
- </div>
- <div class="algorithmsSetting"> <AlgorithmsSetting /> </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script lang="ts" setup>
- import { ref } from 'vue';
- import CameraTree from './components/CameraTree/CameraTree.vue';
- import CameraViewSetting from './components/CameraViewSetting/CameraViewSetting.vue';
- import AlgorithmsSetting from './components/AlgorithmsSetting/AlgorithmsSetting.vue';
- import useCameraTree from './hooks/useCameraTree';
- import CameraParams from './components/CameraParams/CameraParams.vue';
- const { data, loading } = useCameraTree();
- const cameraParamsDetail = ref({});
- </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;
- }
- .cameraParamsSettingWrapper {
- display: flex;
- margin-top: 10px;
- }
- .algorithmsSetting {
- flex: 1;
- min-height: 300px;
- margin-left: 10px;
- }
- </style>
|