picker的rangeKey属性没效果,下拉框显示undefined



  • 版本:Taro v3.0.15
    小程序是没问题的,h5不行
    <picker
    mode='selector'
    :range="selector"
    rangeKey="val"
    :value="selectorValue"
    @change="handleChange"

    <view class='demo-list-item'>
      <view class='demo-list-item__label'>国家地区</view>
      <view class='demo-list-item__value'>
        {{ selector[selectorValue] }}
      </view>
    </view>
    

    </picker>


登录后回复