zhangxiao
2024-08-06 23f8f2717620e9c4b8184275e785df32501c53b5
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
<template>
  <a-card
    class="general-card"
    :title="$t('workplace.recently.visited')"
    :header-style="{ paddingBottom: '0' }"
    :body-style="{ paddingTop: '26px' }"
  >
    <div style="margin-bottom: -1rem">
      <a-row :gutter="8">
        <a-col v-for="link in links" :key="link.text" :span="8" class="wrapper">
          <div class="icon">
            <component :is="link.icon" />
          </div>
          <a-typography-paragraph class="text">
            {{ $t(link.text) }}
          </a-typography-paragraph>
        </a-col>
      </a-row>
    </div>
  </a-card>
</template>
 
<script lang="ts" setup>
  const links = [
    {
      text: 'workplace.contentManagement',
      icon: 'icon-storage',
    },
    {
      text: 'workplace.contentStatistical',
      icon: 'icon-file',
    },
    {
      text: 'workplace.advanced',
      icon: 'icon-settings',
    },
  ];
</script>
 
<style lang="less" scoped>
  :deep(.arco-card-header-title) {
    line-height: inherit;
  }
</style>