mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-24 01:19:58 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
94736adbea
commit
15454ae90f
@ -4,7 +4,7 @@ export default defineNuxtModule({
|
|||||||
meta: {
|
meta: {
|
||||||
name: 'page-extend'
|
name: 'page-extend'
|
||||||
},
|
},
|
||||||
setup() {
|
setup () {
|
||||||
const nuxt = useNuxt()
|
const nuxt = useNuxt()
|
||||||
const resolver = createResolver(import.meta.url)
|
const resolver = createResolver(import.meta.url)
|
||||||
|
|
||||||
|
4
test/fixtures/basic/pages/index.vue
vendored
4
test/fixtures/basic/pages/index.vue
vendored
@ -49,7 +49,9 @@
|
|||||||
<component :is="`with${'-'.toString()}suffix`" />
|
<component :is="`with${'-'.toString()}suffix`" />
|
||||||
<ClientWrapped ref="clientRef" style="color: red;" class="client-only" />
|
<ClientWrapped ref="clientRef" style="color: red;" class="client-only" />
|
||||||
<ServerOnlyComponent class="server-only" style="background-color: gray;" />
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
2
test/fixtures/basic/pages/nested/[foo].vue
vendored
2
test/fixtures/basic/pages/nested/[foo].vue
vendored
@ -18,4 +18,4 @@ const route = useRoute('nested-foo')
|
|||||||
height: 90vh;
|
height: 90vh;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -7,7 +7,11 @@ const route = useRoute('nested-foo-bar')
|
|||||||
<div>nested/[foo]/[bar].vue</div>
|
<div>nested/[foo]/[bar].vue</div>
|
||||||
<div>foo: {{ route.params.foo }}</div>
|
<div>foo: {{ route.params.foo }}</div>
|
||||||
<div>bar: {{ route.params.bar }}</div>
|
<div>bar: {{ route.params.bar }}</div>
|
||||||
<NuxtLink to="/nested/foo/user-test" id="user-test">to /nested/foo/user-test</NuxtLink>
|
<NuxtLink id="user-test" to="/nested/foo/user-test">
|
||||||
<NuxtLink to="/nested/foo/test" id="test">to /nested/foo/test</NuxtLink>
|
to /nested/foo/user-test
|
||||||
|
</NuxtLink>
|
||||||
|
<NuxtLink id="test" to="/nested/foo/test">
|
||||||
|
to /nested/foo/test
|
||||||
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -7,8 +7,12 @@ const route = useRoute('nested-foo-user-group')
|
|||||||
<div>nested/[foo]/user-[group].vue</div>
|
<div>nested/[foo]/user-[group].vue</div>
|
||||||
<div>foo: {{ route.params.foo }}</div>
|
<div>foo: {{ route.params.foo }}</div>
|
||||||
<div>group: {{ route.params.group }}</div>
|
<div>group: {{ route.params.group }}</div>
|
||||||
|
|
||||||
<NuxtLink to="/nested/foo/user-test" id="user-test">to /nested/foo/user-test</NuxtLink>
|
<NuxtLink id="user-test" to="/nested/foo/user-test">
|
||||||
<NuxtLink to="/nested/foo/test" id="test">to /nested/foo/test</NuxtLink>
|
to /nested/foo/user-test
|
||||||
|
</NuxtLink>
|
||||||
|
<NuxtLink id="test" to="/nested/foo/test">
|
||||||
|
to /nested/foo/test
|
||||||
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user