wangrong
2026-08-30 761e5c5fa871959f60e15c971c8d83f2b53d0af5
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<script lang="tsx" setup>
import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()
defineProps({
  themes: {
    type: String,
    default: 'light'
  }
})
</script>
 
<template>
  <div class="view-panel-mask-left"></div>
  <div class="view-panel-mask">
    <el-popover
      :visible="true"
      placement="bottom"
      popper-class="template-popper-tips"
      :width="256"
      show-arrow
    >
      <div class="template-popper-tips-content">
        <p class="constant">{{ t('visualization.template_view_tips') }}</p>
      </div>
      <template #reference>
        <div
          class="view-panel-mask-inner"
          :class="{ 'view-panel-mask-inner-dark': themes === 'dark' }"
        ></div>
      </template>
    </el-popover>
  </div>
</template>
 
<style lang="less" scoped>
.view-panel-mask-left {
  height: 100%;
  width: 240px;
  position: absolute;
  top: 0;
  left: 0;
  cursor: not-allowed;
  background-color: rgba(31, 35, 41);
  opacity: 0.4;
  z-index: 2;
}
.view-panel-mask {
  height: 100%;
  width: 178px;
  background-color: rgba(31, 35, 41);
  opacity: 0.4;
  position: absolute;
  top: 0;
  left: 240px;
  z-index: 2;
  cursor: not-allowed;
  pointer-events: none;
}
.view-panel-mask-inner {
  top: 51px;
  left: 6px;
  height: 34px;
  width: 170px;
  background: white;
  position: relative;
  pointer-events: none;
  border-radius: 5px;
}
 
.view-panel-mask-inner-dark {
  background: rgba(31, 35, 41);
}
</style>
 
<style lang="less">
.template-popper-tips {
  z-index: 1000 !important;
  padding: 24px !important;
  box-shadow: none !important;
  border: 0 !important;
  background: var(--ed-color-primary) !important;
  .ed-popper__arrow::before {
    border: 1px solid var(--ed-color-primary) !important;
    background: var(--ed-color-primary) !important;
  }
}
.template-popper-tips-content {
  color: rgba(255, 255, 255, 1);
  .content {
    font-family: var(--de-custom_font, 'PingFang');
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    text-align: left;
  }
}
</style>