inleft
2022-08-30 afab3a98a65f7fb4f342251238ab3c329e4242dd
commit | author | age
bf6fbe 1 // B.vue
L 2
3 <template>
4     <div>
5         B:{{demo}}
6         <comC></comC>
7     </div>
8 </template>
9
10 <script>
11     import comC from './C.vue'
12     export default {
13         name: "B",
14         inject: ['for'],
15         data() {
16             return {
17                 demo: this.for
18             }
19         },
20         components: {
21             comC
22         }
23     }
24 </script>