Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

picker 组件在h5平台在设置rangeKey会变成undefined #7154

Closed
remember-5 opened this issue Jul 24, 2020 · 1 comment
Closed

picker 组件在h5平台在设置rangeKey会变成undefined #7154

remember-5 opened this issue Jul 24, 2020 · 1 comment
Labels
F-vue2 Framework - Vue 2 T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@remember-5
Copy link

remember-5 commented Jul 24, 2020

相关平台

H5

浏览器版本: chrome 84.0.4147.89
使用框架: Vue

复现步骤

<picker
            mode="selector"
            :range="column"
            rangeKey="text"
            @onChange="onChange">
            <view className="picker">
              订单类型:
            </view>
          </picker>


columns: [
          {id: 1, text: "方案1"},
          {id: 2, text: "方案2" }
        ]

picker编译到h5平台(小程序无问题)

期望结果

展示text对应到值

实际结果

undefined

环境信息

 Taro CLI 3.0.5 environment info:
    System:
      OS: macOS 10.14.6
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.16.1 - /usr/local/bin/node
      Yarn: 1.22.4 - /usr/local/bin/yarn
      npm: 6.14.4 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.0.5 => 3.0.5 
      @tarojs/mini-runner: 3.0.5 => 3.0.5 
      @tarojs/runtime: 3.0.5 => 3.0.5 
      @tarojs/taro: 3.0.5 => 3.0.5 
      @tarojs/webpack-runner: 3.0.5 => 3.0.5 
      babel-preset-taro: 3.0.5 => 3.0.5 
      eslint-config-taro: 3.0.5 => 3.0.5 
@taro-bot2 taro-bot2 bot added F-vue2 Framework - Vue 2 T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Jul 24, 2020
@remember-5
Copy link
Author

已解决,rangeKey更换为range-key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue2 Framework - Vue 2 T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

1 participant