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-view-column在taro4不生效(同样的代码微信正常) #17460

Open
cyx19991019 opened this issue Mar 17, 2025 · 5 comments
Open

Comments

@cyx19991019
Copy link

相关平台

支付宝小程序

小程序基础库: 2.9.21
使用框架: Vue 3

复现步骤

<picker-view
      indicatorStyle={`height:${$props.optionHeight}px`}
      value={this.defaultIndexes}
      style={{ ...this.pickerViewStyles, ...{ height: '130px' } }}
    >
      <picker-view-column>
        <View key={1}>年</View>
      </picker-view-column>
      <picker-view-column>
        <View key={2}>月</View>
      </picker-view-column>
    </picker-view>

简单的pick-view使用代码,微信端正常渲染,支付宝只能渲染pick-view,picker-view-column无法正常渲染

期望结果

picker-view-column正常渲染

实际结果

picker-view-column无法正常渲染

环境信息

Taro CLI 4.0.9 environment info:
    System:
      OS: macOS 15.3.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
      Yarn: 1.22.17 - /usr/local/bin/yarn
      npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm
    npmPackages:
      @tarojs/cli: 4.0.9 => 4.0.9 
      @tarojs/components: 4.0.9 => 4.0.9 
      @tarojs/helper: 4.0.9 => 4.0.9 
      @tarojs/plugin-framework-vue3: 4.0.9 => 4.0.9 
      @tarojs/plugin-platform-alipay: 4.0.9 => 4.0.9 
      @tarojs/plugin-platform-h5: 4.0.9 => 4.0.9 
      @tarojs/plugin-platform-jd: 4.0.9 => 4.0.9 
      @tarojs/plugin-platform-qq: 4.0.9 => 4.0.9 
      @tarojs/plugin-platform-swan: 4.0.9 => 4.0.9 
      @tarojs/plugin-platform-tt: 4.0.9 => 4.0.9 
      @tarojs/plugin-platform-weapp: 4.0.9 => 4.0.9 
      @tarojs/runtime: 4.0.9 => 4.0.9 
      @tarojs/shared: 4.0.9 => 4.0.9 
      @tarojs/taro: 4.0.9 => 4.0.9 
      @tarojs/vite-runner: 4.0.9 => 4.0.9 
      babel-preset-taro: 4.0.9 => 4.0.9 
      eslint-config-taro: 4.0.9 => 4.0.

补充信息

从taro3升级到taro4

@cyx19991019
Copy link
Author

Image 在支付宝IDE上,看到的结构如图,只要渲染PickerView,就会默认携带PickerViewColumn

@yt2399
Copy link

yt2399 commented Mar 17, 2025

哈哈哈哈,我taro4前几天也遇到了,目前没有找到解决办法,直接使用自带的时间选择器针对支付宝跳过了,你如果很急可以考虑这个方案

@cyx19991019
Copy link
Author

哈哈哈哈,我taro4前几天也遇到了,目前没有找到解决办法,直接使用自带的时间选择器针对支付宝跳过了,你如果很急可以考虑这个方案

picker不满足我们原有交互诉求😣

@cyx19991019
Copy link
Author

哈哈哈哈,我taro4前几天也遇到了,目前没有找到解决办法,直接使用自带的时间选择器针对支付宝跳过了,你如果很急可以考虑这个方案

找到一个解决方案了,混合开发原生组件,用selectComponent进行数据传递

@xch1029
Copy link

xch1029 commented Apr 8, 2025

有解决方案吗?picker在支付宝上各种问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants