Browse Source
* fix: fix display issues when reloading page * feat: change a fit color for js-logo icon * fix: prevent layout chaos because of text wrappull/2175/merge
committed by
GitHub
3 changed files with 8 additions and 10 deletions
@ -1,17 +1,15 @@ |
|||
<template> |
|||
<Card title="快捷导航" v-bind="$attrs"> |
|||
<CardGrid v-for="item in navItems" :key="item"> |
|||
<Card title="快捷导航"> |
|||
<CardGrid v-for="item in navItems" :key="item.title"> |
|||
<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 class="text-md mt-2 truncate">{{ item.title }}</span> |
|||
</span> |
|||
</CardGrid> |
|||
</Card> |
|||
</template> |
|||
<script lang="ts" setup> |
|||
import { Card } from 'ant-design-vue'; |
|||
import { Card, CardGrid } from 'ant-design-vue'; |
|||
import { navItems } from './data'; |
|||
import { Icon } from '/@/components/Icon'; |
|||
|
|||
const CardGrid = Card.Grid; |
|||
</script> |
|||
|
|||
Loading…
Reference in new issue