inleft
2022-03-04 ec6f207325f1996d71fb4e0c6acada906ec026bd
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>