15 lines
440 B
Markdown
15 lines
440 B
Markdown
## 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`](https://github.com/hannoeru/vite-plugin-pages) and [`vite-plugin-vue-layouts`](https://github.com/JohnCampionJr/vite-plugin-vue-layouts), you can specify the layout in the page's SFCs like this:
|
|
|
|
```html
|
|
<route lang="yaml">
|
|
meta:
|
|
layout: home
|
|
</route>
|
|
```
|