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