微信自定义组件---插槽
官方https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html#%E7%BB%84%E4%BB%B6%20wxml%20%E7%9A%84%20slot一.单个插槽实际:1.连接text和test2,test2是组件文件夹2.在test2.wxml中设置//单个插槽<view> <view>这里是组件的内部结构</view>
复制链接