/
45case
/
ptable
Обзор
Документация
Войти
/
45case
/
ptable
Код
Запросы
3
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
dev
src/shared/ui/NavLink.vue
18 строк
859 B
Olya
feat: useSelectedElement, элемент-карточка на PropertiesPage, навигация ElementNavigation
13 июл 2026, 13:05
13 июл 2026, 13:05
cf40c04
Код
Авторство
О чём код?
<script setup lang="ts"> import { RouterLink, type RouteLocationRaw } from "vue-router"; defineProps<{ to: RouteLocationRaw; }>(); </script> <template> <RouterLink :to="to" active-class="border-(--color-border) bg-(--color-surface-muted) text-(--color-text-primary)" exact-active-class="border-(--color-border) bg-(--color-surface-muted) text-(--color-text-primary)" class="inline-flex min-h-10 items-center justify-center rounded-full border border-transparent px-3.5 text-sm font-semibold text-(--color-text-secondary) no-underline transition-[color,background-color,border-color] duration-200 hover:border-(--color-border) hover:bg-(--color-hover-surface) hover:text-(--color-text-primary) focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--color-focus-ring)" > <slot /> </RouterLink> </template>