Vben
authored
|
1
2
|
<template>
<Card title="快捷导航" v-bind="$attrs">
|
vben
authored
|
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>
|
vben
authored
|
13
|
<script lang="ts" setup>
|
Vben
authored
|
14
15
|
import { Card } from 'ant-design-vue';
import { navItems } from './data';
|
vben
authored
|
16
|
import { Icon } from '/@/components/Icon';
|
Vben
authored
|
17
|
|
vben
authored
|
18
|
const CardGrid = Card.Grid;
|
Vben
authored
|
19
|
</script>
|