-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
52 deletions.
There are no files selected for viewing
88 changes: 36 additions & 52 deletions
88
packages/storybook-nuxt/playground/components/MyNuxtPage.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,42 @@ | ||
<script setup> | ||
const router = useRouter() | ||
const route = useRoute() | ||
</script> | ||
|
||
<template> | ||
<v-container> | ||
<div class="overflow-visible" style="height: 56px;display: flex;gap: 10px;"> | ||
<my-button @click="router.push(`/`)"> | ||
<NuxtLink to="/" class="n-link-base"> | ||
Home | ||
</NuxtLink> | ||
</my-button> | ||
<my-button @click="router.push(`/about`)"> | ||
<NuxtLink to="/about" class="n-link-base"> | ||
About | ||
</NuxtLink> | ||
</my-button> | ||
|
||
<my-button @click="router.push(`/parent`)"> | ||
<NuxtLink to="/parent" class="n-link-base"> | ||
Parent (index) | ||
</NuxtLink> | ||
</my-button> | ||
<my-button> | ||
<NuxtLink to="/parent/b" class="n-link-base"> | ||
Parent (b) | ||
</NuxtLink> | ||
</my-button> | ||
<my-button class="n-link-base" @click="router.push(`/parent/reload-${(Math.random() * 100).toFixed()}`)"> | ||
Keyed child | ||
</my-button> | ||
<my-button class="n-link-base" @click="router.push(`/parent/static-${(Math.random() * 100).toFixed()}`)"> | ||
Non-keyed child | ||
</my-button> | ||
</div> | ||
<div> | ||
<NuxtPage /> | ||
<template #footer> | ||
<div class="text-center p-4 op-50"> | ||
Current route: <code>{{ $route.path }}</code> | ||
</div> | ||
</template> | ||
</v-container> | ||
<v-layout class="overflow-visible" style="height: 56px;"> | ||
<v-bottom-navigation | ||
v-model="value" | ||
active | ||
color="primary" | ||
> | ||
<v-btn> | ||
<v-icon>mdi-home</v-icon> | ||
|
||
<NuxtLink to="/" class="n-link-base"> | ||
Home | ||
</NuxtLink> | ||
</v-btn> | ||
<v-btn> | ||
<v-icon>mdi-history</v-icon> | ||
|
||
<NuxtLink to="/about" class="n-link-base"> | ||
About | ||
</NuxtLink> | ||
</v-btn> | ||
|
||
<v-btn> | ||
<v-icon>mdi-heart</v-icon> | ||
|
||
<NuxtLink to="/parent" class="n-link-base"> | ||
Parent (index) | ||
</NuxtLink> | ||
</v-btn> | ||
|
||
<v-btn> | ||
<v-icon>mdi-map-marker</v-icon> | ||
|
||
<NuxtLink to="/parent/b" class="n-link-base"> | ||
Parent (b) | ||
</NuxtLink> | ||
</v-btn> | ||
<v-btn class="n-link-base" @click="$router.push(`/parent/reload-${(Math.random() * 100).toFixed()}`)"> | ||
Keyed child | ||
</v-btn> | ||
<v-btn class="n-link-base" @click="$router.push(`/parent/static-${(Math.random() * 100).toFixed()}`)"> | ||
Non-keyed child | ||
</v-btn> | ||
</v-bottom-navigation> | ||
</v-layout> | ||
<div class="text-center p-4 op-50"> | ||
Current route: <code>{{ route.path }}</code> | ||
</div> | ||
</div> | ||
</template> |