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> |
<template> |
||||
<Card title="快捷导航" v-bind="$attrs"> |
<Card title="快捷导航"> |
||||
<CardGrid v-for="item in navItems" :key="item"> |
<CardGrid v-for="item in navItems" :key="item.title"> |
||||
<span class="flex flex-col items-center"> |
<span class="flex flex-col items-center"> |
||||
<Icon :icon="item.icon" :color="item.color" size="20" /> |
<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> |
</span> |
||||
</CardGrid> |
</CardGrid> |
||||
</Card> |
</Card> |
||||
</template> |
</template> |
||||
<script lang="ts" setup> |
<script lang="ts" setup> |
||||
import { Card } from 'ant-design-vue'; |
import { Card, CardGrid } from 'ant-design-vue'; |
||||
import { navItems } from './data'; |
import { navItems } from './data'; |
||||
import { Icon } from '/@/components/Icon'; |
import { Icon } from '/@/components/Icon'; |
||||
|
|
||||
const CardGrid = Card.Grid; |
|
||||
</script> |
</script> |
||||
|
|||||
Loading…
Reference in new issue