inleft
2022-08-29 c3aa826406d52957d6f98d0ecd4b77413d5ce908
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>