插槽slot


1、具名插槽 子组件      父组件掉用

2、子组件  dataarray = []   父组件掉用    slot-scope="indata"    indata.data即是子组件转过来的dataarray

相关