wangrong
2026-08-30 4c949c0dc9bcae785c281c9d8125295f09810b15
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
<script lang="tsx" setup>
import { iconChartDarkMap } from '@/components/icon-group/chart-dark-list-empty'
import { iconChartMap } from '@/components/icon-group/chart-list-empty'
import { toRefs } from 'vue'
const props = defineProps({
  viewIcon: {
    type: String,
    required: true,
    default: ''
  },
  themes: {
    type: String,
    required: true,
    default: ''
  }
})
 
const { viewIcon, themes } = toRefs(props)
</script>
 
<template>
  <div class="canvas-content error-info">
    <Icon class-name="item-icon"
      ><component
        class="svg-icon item-icon"
        :is="themes === 'dark' ? iconChartDarkMap[`${viewIcon}-dark`] : iconChartMap[viewIcon]"
      ></component
    ></Icon>
  </div>
</template>
 
<style lang="less" scoped>
.error-info {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #9ea6b2;
  width: 100%;
  height: 100%;
  flex-direction: column;
}
 
.item-icon {
  width: 50%;
  height: 50%;
}
</style>