在value设置,切记在value设置
<picker-view bindchange="bindintWeightChange"
indicator-style="height: 50px;"
style="width: 100%; height: 120px;"
value="{{idxIntWeight}}"
class="margin">
<picker-view-column>
<view wx:for="{{weightArray}}"
wx:key="{{index}}"
style="line-height: 50px">{{weightArray[index]+30}}</view>
</picker-view-column>
</picker-view>
微信小程序重量选择组件
本文介绍了一种在微信小程序中实现重量选择的功能方法。通过使用picker-view组件,开发者可以为用户提供一个直观且易于操作的选择器,用于从预设的重量数组中选择特定的重量值。该实现方式适用于各种需要用户输入重量的应用场景。
2519

被折叠的 条评论
为什么被折叠?



