vitesse/src/layouts
2021-02-16 12:38:22 +08:00
..
404.vue feat: support layouts (#56) 2021-02-12 12:55:19 +08:00
default.vue feat: switch to windicss (#65) 2021-02-16 12:38:22 +08:00
home.vue feat: switch to windicss (#65) 2021-02-16 12:38:22 +08:00
README.md feat: support layouts (#56) 2021-02-12 12:55:19 +08:00

Layouts

Vue components in this dir are used as layouts.

By default, default.vue will be used unless an alternative is specified in the route meta.

With vite-plugin-pages and vite-plugin-vue-layouts, you can specify the layout in the page's SFCs like this:

<route lang="yaml">
meta:
  layout: home
</route>