智慧园区前端大屏
shuishen
2024-12-17 a07f79573d52f61ba6ec97766e9abc12309eadee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!--
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2023-03-10 15:27:59
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-27 19:05:04
 * @FilePath: \bigScreen\src\views\ochart\index.vue
 * @Description: 综合设计
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
-->
<script setup>
import { Picture } from '@element-plus/icons-vue'
const { VITE_APP_BASE } = import.meta.env
let image = ref(VITE_APP_BASE + 'img/ochart.jpeg')
</script>
 
<template>
  <div class="container page-container">
    <div class="w100 h100 img-box">
      <el-image :src="image" :zoom-rate="1.2" :max-scale="7" :min-scale="0.2" :preview-src-list="[image]"
        :initial-index="4" fit="cover">
        <template #error>
          <div class="image-slot">
            <el-icon>
              <Picture />
            </el-icon>
          </div>
        </template>
      </el-image>
    </div>
  </div>
</template>
 
<style lang="scss" scoped>
.container {
  position: absolute;
  width: 100%;
  height: 100%;
 
  .img-box {
    pointer-events: all;
    overflow: hidden;
    overflow-y: auto;
  }
}
</style>