Blame view

src/views/dashboard/workbench/components/QuickNav.vue 565 Bytes
Vben authored
1
2
<template>
  <Card title="快捷导航" v-bind="$attrs">
3
    <template v-for="item in navItems" :key="item">
Vben authored
4
5
6
7
8
9
10
11
12
      <CardGrid>
        <span class="flex flex-col items-center">
          <Icon :icon="item.icon" :color="item.color" size="20" />
          <span class="text-md mt-2">{{ item.title }}</span>
        </span>
      </CardGrid>
    </template>
  </Card>
</template>
13
<script lang="ts" setup>
Vben authored
14
15
  import { Card } from 'ant-design-vue';
  import { navItems } from './data';
16
  import { Icon } from '/@/components/Icon';
Vben authored
17
18
  const CardGrid = Card.Grid;
Vben authored
19
</script>