3***@qq.com
3***@qq.com
  • 发布:2020-02-17 23:19
  • 更新:2020-02-17 23:19
  • 阅读:609

picker选择器在微信小程序中报错

分类:uni-app

<uni-list-item v-for="(item,index) in list" :key='index'>
<picker mode="selector" @change="bindPickerChange()" :value="index" :range="array" >
<view class="list">
<view class="star">{{item.title}}<text>{{item.star}}</text></view>
<input placeholder="请选择" disabled type="text" :value="listData" />
</view>
</picker>
</uni-list-item>

 bindPickerChange: function(e) {  

                        console.log('picker发送选择改变,携带值为')  
                        console.log(e)  
                        this.index = e.target.value  
                        this.listData=this.array[e.target.value]  

                     }
2020-02-17 23:19 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复