File tree 3 files changed +40
-0
lines changed
3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div >
3
+ <div >first component!</div >
4
+ <second-component v-if =" show" />
5
+ </div >
6
+
7
+ </template >
8
+
9
+ <script lang="ts">
10
+ import Vue from ' vue'
11
+ import SecondComponent from ' ./SecondComponent.vue'
12
+
13
+ const mixin = {
14
+ props: {
15
+ show: {
16
+ type: Boolean
17
+ }
18
+ }
19
+ };
20
+
21
+ export default Vue .extend ({
22
+ components: {
23
+ SecondComponent
24
+ },
25
+ mixins: [mixin ]
26
+ })
27
+ </script >
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ import FirstComponent from ' ./FirstComponent.vue'
2
3
defineProps <{
3
4
msg: string
4
5
}>()
@@ -12,6 +13,7 @@ defineProps<{
12
13
<a target =" _blank" href =" https://vitejs.dev/" >Vite</a > +
13
14
<a target =" _blank" href =" https://v2.vuejs.org/" >Vue 2</a >. What's next?
14
15
</h3 >
16
+ <first-component :show =" true" />
15
17
</div >
16
18
</template >
17
19
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div >second component!</div >
3
+ </template >
4
+
5
+ <script lang="ts">
6
+ import Vue from ' vue'
7
+
8
+ export default Vue .extend ({
9
+
10
+ })
11
+ </script >
You can’t perform that action at this time.
0 commit comments