vue中的插槽怎么用?看这篇就够了

一、插槽内容 1. 两个组件html 组件B: <template> <div> <h1>我是B组件的内容</h1> </div> </template> <script> export default { name: "testB" } </script> <style scoped> </style> 组件A: <templ
相关文章
相关标签/搜索