From 505798927f75c84693cc51becf16aa525503fc92 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 11 七月 2024 17:23:38 +0800 Subject: [PATCH] 2024.7.11 --- src/views/inspection/WorkStream.vue | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/inspection/WorkStream.vue b/src/views/inspection/WorkStream.vue index 0fbe9be..769878e 100644 --- a/src/views/inspection/WorkStream.vue +++ b/src/views/inspection/WorkStream.vue @@ -1,6 +1,6 @@ <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)"> + <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> @@ -15,9 +15,14 @@ </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)} - 30px)` + const streams = reactive([]) const scrollContentRef = ref() const scrollbarRef = ref() -- Gitblit v1.9.3