Vue的props和$emit總結

  總結: 被封裝好的組件,才能被調用                               組件如何封裝,請查看文檔  組件封裝好後,要進行全局調用,在components文件夾下創建index.js文件,用 Vue.component() 進行全局調用(如下圖)   注意:全局調用,是component。局部調用,是components   如果組件引用了一個組件,那麼該組件就叫父組件。
相關文章
相關標籤/搜索