riku
2024-07-15 b292a0a81869547e94fd85e783f9597db241a87e
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()