test vite ssr

This commit is contained in:
polv committed 2022-05-07 19:28:04 +07:00
1 parent 6725bf89ad
commit 066f94188a
20 files changed
+406

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
<template>
<a :class="{ active: pageContext.urlPathname === $attrs.href }">
<slot />
</a>
</template>
<style scoped>
a {
padding: 3px 10px;
}
a.active {
background-color: #eee;
}
</style>
<script lang="ts" setup>
import { usePageContext } from './usePageContext'
const pageContext = usePageContext()
</script>