day02:好好聊聊組件化

PART01:插槽 單個插槽 至關於在組件裏留一個空位,調用該組件時,能夠往裏面傳節點。前端 //App.vue <template> <div> <Dialog> <p>寫個標題吧</p> </Dialog> </div> </template> <script> import Dialog from "./components/Dialog" export de
相關文章
相關標籤/搜索