🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
>使用作用域插槽 >[success]好处:子组件可以向父组件传递数据 1.将子组件的数据传递给父组件 ~~~ <slot wx:for='item of list' :item='item'><slot> ~~~ 2.在父组件要传递给插件中的html中使用数据 ~~~ <template slot-scope="props"> <p>{{props.item}}</p> </template> ~~~