docs: migrate transition class names and style prop (#21281)

This commit is contained in:
scscgit 2023-05-31 13:23:57 +02:00 committed by GitHub
parent eee7647095
commit bc38ee058f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ See [more about migrating Nuxt component hooks](/docs/migration/component-option
### Page and Layout Transitions ### Page and Layout Transitions
If you have been defining transitions for your page or layout directly in your component options, you will now need to use `definePageMeta` to set the transition. If you have been defining transitions for your page or layout directly in your component options, you will now need to use `definePageMeta` to set the transition. Since Vue 3, [-enter and -leave CSS classes have been renamed](https://v3-migration.vuejs.org/breaking-changes/transition.html). The `style` prop from `<Nuxt>` no longer applies to transition when used on `<slot>`, so move the styles to your `-active` class.
[Read more about `pages/`](/docs/guide/directory-structure/pages). [Read more about `pages/`](/docs/guide/directory-structure/pages).