//父
<template v-slot:tab-1="{item}">
<view class="">
22222222
</view>
</template>
//
<slot name="tab-{{item.ref}}" :item='item' :index='i' >//用item不行
</slot>
<slot name="tab-{{i}}" :item='item' :index='i' >//换下标没问题(里面的item不行)
</slot>
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: w10
HBuilderX类型: 正式
HBuilderX版本号: 3.8.12
第三方开发者工具版本号: 的
基础库版本号: 的
项目创建方式: HBuilderX
//父
<template v-slot:tab-1="{item}">
<view class="">
22222222
</view>
</template>
//
<slot name="tab-{{item.ref}}" :item='item' :index='i' >//用item不行
</slot>
<slot name="tab-{{i}}" :item='item' :index='i' >//换下标没问题(里面的item不行)
</slot>
1
1
1
微信小程序 v-for 里的slot获取不到item每个循环值,app可以。