Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-julien committed Jul 30, 2023
2 parents e35cb3b + 15454ae commit 4f4052a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/basic/modules/page-extend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default defineNuxtModule({
meta: {
name: 'page-extend'
},
setup() {
setup () {
const nuxt = useNuxt()
const resolver = createResolver(import.meta.url)

Expand Down
4 changes: 3 additions & 1 deletion test/fixtures/basic/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
<component :is="`with${'-'.toString()}suffix`" />
<ClientWrapped ref="clientRef" style="color: red;" class="client-only" />
<ServerOnlyComponent class="server-only" style="background-color: gray;" />
<NuxtLink to="/big-page-1">to big 1</NuxtLink>
<NuxtLink to="/big-page-1">
to big 1
</NuxtLink>
</div>
</template>

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/basic/pages/nested/[foo].vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ const route = useRoute('nested-foo')
height: 90vh;
width: 100vw;
}
</style>
</style>
8 changes: 6 additions & 2 deletions test/fixtures/basic/pages/nested/[foo]/[bar].vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ const route = useRoute('nested-foo-bar')
<div>nested/[foo]/[bar].vue</div>
<div>foo: {{ route.params.foo }}</div>
<div>bar: {{ route.params.bar }}</div>
<NuxtLink to="/nested/foo/user-test" id="user-test">to /nested/foo/user-test</NuxtLink>
<NuxtLink to="/nested/foo/test" id="test">to /nested/foo/test</NuxtLink>
<NuxtLink id="user-test" to="/nested/foo/user-test">
to /nested/foo/user-test
</NuxtLink>
<NuxtLink id="test" to="/nested/foo/test">
to /nested/foo/test
</NuxtLink>
</div>
</template>
10 changes: 7 additions & 3 deletions test/fixtures/basic/pages/nested/[foo]/user-[group].vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ const route = useRoute('nested-foo-user-group')
<div>nested/[foo]/user-[group].vue</div>
<div>foo: {{ route.params.foo }}</div>
<div>group: {{ route.params.group }}</div>

<NuxtLink to="/nested/foo/user-test" id="user-test">to /nested/foo/user-test</NuxtLink>
<NuxtLink to="/nested/foo/test" id="test">to /nested/foo/test</NuxtLink>

<NuxtLink id="user-test" to="/nested/foo/user-test">
to /nested/foo/user-test
</NuxtLink>
<NuxtLink id="test" to="/nested/foo/test">
to /nested/foo/test
</NuxtLink>
</div>
</template>

0 comments on commit 4f4052a

Please sign in to comment.