mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: add warning about definePageMeta
issues with transitions and NuxtLoadingIndicator
(#9055)
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
780b17b196
commit
3aadc57be5
@ -19,6 +19,10 @@ export default defineNuxtConfig({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
::alert{type=warning}
|
||||||
|
If you are changing layouts as well as page, the page transition you set here will not run. Instead, you should set a layout transition.
|
||||||
|
::
|
||||||
|
|
||||||
To start adding transition between your pages, add the following CSS to your [`app.vue`](/docs/guide/directory-structure/app):
|
To start adding transition between your pages, add the following CSS to your [`app.vue`](/docs/guide/directory-structure/app):
|
||||||
|
|
||||||
::code-group
|
::code-group
|
||||||
|
@ -19,6 +19,10 @@ Add `<NuxtLoadingIndicator/>` in your `app.vue` or layouts.
|
|||||||
|
|
||||||
:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/framework/tree/main/examples/routing/pages?terminal=dev&file=/app.vue" blank}
|
:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/framework/tree/main/examples/routing/pages?terminal=dev&file=/app.vue" blank}
|
||||||
|
|
||||||
|
::alert{type=warning}
|
||||||
|
If you are changing layouts as well as page, the page transition you set here will not run. Instead, you should set a layout transition.
|
||||||
|
::
|
||||||
|
|
||||||
## Slots
|
## Slots
|
||||||
|
|
||||||
You can pass custom HTML or components through the loading indicator's default slot.
|
You can pass custom HTML or components through the loading indicator's default slot.
|
||||||
|
Loading…
Reference in New Issue
Block a user