From b292a0a81869547e94fd85e783f9597db241a87e Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期一, 15 七月 2024 17:30:37 +0800 Subject: [PATCH] 2024.7.15 --- src/views/inspection/WorkStream.vue | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/views/inspection/WorkStream.vue b/src/views/inspection/WorkStream.vue index 0fbe9be..0a5d41c 100644 --- a/src/views/inspection/WorkStream.vue +++ b/src/views/inspection/WorkStream.vue @@ -1,6 +1,7 @@ <template> - <div class="border-r-small m-h-2 p-h-4"> - <el-scrollbar ref="scrollbarRef" height="calc(var(--fy-body-height) / 3 * 1 - 30px)"> + <!-- <div class="border-r-small m-h-2 p-h-4"> --> + <BaseCard> + <el-scrollbar ref="scrollbarRef" :height="height"> <div ref="scrollContentRef"> <div v-for="item in streams" :key="item.index"> <el-text type="primary">[{{ item.time }}]: </el-text> @@ -12,12 +13,18 @@ </div> </div> </el-scrollbar> - </div> + </BaseCard> + <!-- </div> --> </template> <script setup> -import { reactive, ref, onMounted } from 'vue' +import { reactive, ref, onMounted, inject } from 'vue' import dayjs from 'dayjs' +import { unCalc } from '@/utils/css-util' + +const excludeMapHeight = inject('excludeMapHeight') +const height = `calc(${unCalc(excludeMapHeight)} - 36px)` + const streams = reactive([]) const scrollContentRef = ref() const scrollbarRef = ref() -- Gitblit v1.9.3