vue中的插槽怎麼用?看這篇就夠了

一、插槽內容 1. 兩個組件html 組件B: <template> <div> <h1>我是B組件的內容</h1> </div> </template> <script> export default { name: "testB" } </script> <style scoped> </style> 組件A: <templ
相關文章
相關標籤/搜索