Page traduite Le contenu de cette page peut être déprécié.
La propriété layout
Chaque fichier (du premier niveau) dans le répertoire des layouts
créera un layout customisé accessible depuis la propriété layout
dans le composant page.
-
Type:
String
ouFunction
(par défaut:'default'
)
Utilisez la clé layout
dans vos composants pages pour définir un layout à utiliser:
export default {
layout: 'blog',
// OU
layout(context) {
return 'blog'
}
}
Editer cette page sur GitHub
Mise à jour le jeu. 9 février 2023

























































