uniapp 使用 picker 的 range-key 不生效问题

<picker @change="bindPickerChange" :range-key="'ProductType'" mode="selector" :value="index" :range="productTypeArray">
	<view class="uni-input">{{productTypeArray[index].ProductType}}</view>
</picker>

range-key 里面的值需要是变量,或者加上单引号。

posted @ 2024-03-18 10:12  暖暖De幸福  阅读(586)  评论(0编辑  收藏  举报