inleft
2022-08-02 3a5d6662fbeb80426d9708a5d4684bdd5c1f072f
commit | author | age
bf6fbe 1 <template>
L 2     <div>
3         <ChildA/>
4         <ChildB/>
5     </div>
6 </template>
7
8 <script>
9     import ChildA from './childA' // 导入A组件
10     import ChildB from './childB' // 导入B组件
11
12     export default {
13         components: {
14             ChildA,
15             ChildB
16         } // 注册A、B组件
17     }
18 </script>