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
98
99
100
<script lang="ts" setup>
import topEnterpriseTrial from '@/assets/svg/top-enterprise-trial.svg'
import topHelpDoc from '@/assets/svg/top-help-doc.svg'
import topProductBbs from '@/assets/svg/top-product-bbs.svg'
import topTechnology from '@/assets/svg/top-technology.svg'
import { useI18n } from '@/hooks/web/useI18n'
import docs from '@/assets/svg/icon-maybe_outlined.svg'
import { computed } from 'vue'
import { Icon } from '@/components/icon-custom'
import TopDocCard from '@/layout/components/TopDocCard.vue'
import { useAppearanceStoreWithOut } from '@/store/modules/appearance'
const appearanceStore = useAppearanceStoreWithOut()
const navigateBg = computed(() => appearanceStore.getNavigateBg)
const help = computed(() => appearanceStore.getHelp)
const { t } = useI18n()
 
const cardInfoList = [
  {
    name: t('api_pagination.help_documentation'),
    url: help.value || 'https://dataease.io/docs/v2/',
    icon: topHelpDoc
  },
  {
    name: t('api_pagination.product_forum'),
    url: 'https://bbs.fit2cloud.com/c/de/6',
    icon: topProductBbs
  },
  {
    name: t('api_pagination.technical_blog'),
    url: 'https://blog.fit2cloud.com/categories/dataease',
    icon: topTechnology
  },
  {
    name: t('api_pagination.enterprise_edition_trial'),
    url: 'https://jinshuju.net/f/TK5TTd',
    icon: topEnterpriseTrial
  }
]
</script>
 
<template>
  <el-popover
    :show-arrow="false"
    popper-class="top-popover"
    placement="bottom-end"
    width="210"
    trigger="hover"
  >
    <top-doc-card
      :span="12"
      v-for="(item, index) in cardInfoList"
      :key="index"
      :card-info="item"
    ></top-doc-card>
    <template #reference>
      <div
        class="sys-setting"
        :class="{ 'is-light-setting': navigateBg && navigateBg === 'light' }"
      >
        <el-icon>
          <Icon name="docs"><docs class="svg-icon" /></Icon>
        </el-icon>
      </div>
    </template>
  </el-popover>
</template>
 
<style lang="less" scoped>
.sys-setting {
  margin: 0 10px;
  padding: 5px;
  height: 28px;
  width: 28px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  &:hover {
    background-color: #1e2738;
  }
}
.is-light-setting {
  &:hover {
    background-color: #1f23291a !important;
  }
}
</style>
 
<style lang="less">
.top-popover {
  display: flex;
  padding: 8px !important;
  flex-wrap: wrap;
  .doc-card {
    margin: auto;
  }
}
</style>