<div v-for="(item,index) in orderFrom" :key="index">
<picker :value="item.DeliveryDate" mode="date" start="2018-01-01" end="2099-12-31" @change="bindDateChange">
<view class="uni-input">{{ item.DeliveryDate }}</view>
</picker>
</div>
9***@qq.com
- 发布:2019-07-19 13:11
- 更新:2020-03-04 10:59
- 阅读:1134
3 个回复
9***@qq.com (作者)
<div v-for="(item,index) in orderFrom" :key="index">
<picker :value="item.DeliveryDate" mode="date" start="2018-01-01" end="2099-12-31" @change="bindDateChange">
<view class="uni-input">{{ item.DeliveryDate }}</view>
</picker>
</div>
9***@qq.com (作者)
<div v-for="(item,index) in b" :key=index>
<picker :value="item.DeliveryDate" mode="date" start="2018-01-01" end="2099-12-31" @change="bindDateChange">
<view class="uni-input">{{ item.DeliveryDate }}</view>
</picker>
</div>
8***@qq.com
怎么传值呢
9***@qq.com (作者)
这个小程序有解决方案,uniapp没写出来,给piker绑定一个:data-index,change的时候
let index =e.target.dataset.index;
2020-03-16 09:18