File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Layouts
2
+
3
+ Vue components in this dir are used as layouts.
4
+
5
+ By default, ` default.vue ` will be used unless an alternative is specified in the route meta.
6
+
7
+ ``` vue
8
+ <script setup lang="ts">
9
+ definePageMeta({
10
+ layout: 'home',
11
+ })
12
+ </script>
13
+ ```
14
+
15
+ Learn more on < https://nuxt.com/docs/guide/directory-structure/layouts >
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <main class =" px-10 py-20" >
3
+ <slot />
4
+
5
+ <div class =" mx-auto mt-5 text-center opacity-25" >
6
+ [Default Layout]
7
+ </div >
8
+ </main >
9
+ </template >
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <main class =" px-10 py-20" >
3
+ <slot />
4
+
5
+ <div class =" mx-auto mt-5 text-center opacity-25" >
6
+ [Home Layout]
7
+ </div >
8
+ </main >
9
+ </template >
You can’t perform that action at this time.
0 commit comments