摘要:
定义2个组件: 子组件ChildrenSubRef.vue: 1 <template> 2 <div> 3 4 </div> 5 </template> 6 7 <script> 8 export default { 9 name: "ChildrenSubRef", 10 data() { 11 阅读全文
摘要:
定义2个组件: 子组件ChildrenSubRef.vue: 1 <template> 2 <div> 3 4 </div> 5 </template> 6 7 <script> 8 export default { 9 name: "ChildrenSubRef", 10 data() { 11 阅读全文
摘要:
slot种类: 匿名插槽、具名插槽、作用域插槽 子组件ChildrenHasSlot.vue: 1 <template> 2 <div> 3 我是子组件ChildrenHasSlot.vue 4 <slot>我是默认值</slot> 5 <slot name="chacaoB">我是chacaoB默 阅读全文
|