vue 組件與插槽的使用

引入組件vue import heads from ‘…/…/components/head.vue’web 註冊組件svg Vue.component('heads',heads); //註冊所有組件 export default { components:{heads} //註冊局部組件 } <heads></heads> //使用組件code 父組件使用component <he
相關文章
相關標籤/搜索