Vue.js-如何劃分組件

一、組件劃分 1.功能模塊---select,pagenation... 2.頁面區域---header, footer, sidebar... 二、引用組件 舉例在App.vue中引用header.vue和footer.vue組件 1.用import引入 2.用components:[ Header, Footer ]引入 註冊組件 3.引用模板 三、組件之間的通信 1.父組件向子組件傳值 在a
相關文章
相關標籤/搜索