Skip to content

Commit 0046e8a

Browse files
committed
2 parents e733627 + e37d650 commit 0046e8a

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

resources/js/components/Child.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<template>
2+
<transition name="page" mode="out-in">
3+
<slot>
4+
<router-view />
5+
</slot>
6+
</transition>
7+
</template>
8+
9+
<script>
10+
export default {
11+
name: 'Child'
12+
}
13+
</script>

resources/js/layouts/default.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010

1111
<script>
1212
import Navbar from '~/components/Navbar'
13+
import Child from '~/components/Child'
1314
1415
export default {
15-
name: 'MainLayout',
16+
name: 'MainLayout',
1617
17-
components: {
18-
Navbar
19-
}
18+
components: {
19+
Navbar,
20+
Child
21+
}
2022
}
2123
</script>

0 commit comments

Comments
 (0)