12345678910111213141516171819202122232425262728293031323334353637383940 |
- <script lang="ts" setup>
- import VPLink from '../common/vp-link.vue'
- import type { Link } from '../../types'
- defineProps<{
- item: Link
- }>()
- </script>
- <template>
- <VPLink
- :class="{
- 'is-menu-link': true,
- }"
- :href="item.link"
- :no-icon="true"
- >
- {{ item.text }}
- </VPLink>
- </template>
- <style scoped lang="scss">
- .is-menu-link {
- display: block;
- font-size: 13px;
- font-weight: 500;
- line-height: 24px;
- color: var(--text-color);
- transition: color var(--el-transition-duration);
- &.active {
- border-bottom: 2px solid var(--brand-color);
- }
- &:hover {
- color: var(--brand-color);
- }
- }
- </style>
|