inleft
2022-01-13 d3f92144c6e4781fa4882f5fbf3525698663d92f
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>