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

3.1.0 版本原生组件 props 无法传递 #8765

Closed
Psli opened this issue Feb 26, 2021 · 6 comments · Fixed by #8763
Closed

3.1.0 版本原生组件 props 无法传递 #8765

Psli opened this issue Feb 26, 2021 · 6 comments · Fixed by #8763
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@Psli
Copy link
Contributor

Psli commented Feb 26, 2021

相关平台

微信小程序

小程序基础库: 2.14.1
使用框架: React

复现步骤

在 3.0.26 下能正常使用,使用 3.1.0 后无法传递 list 过去原生组件

 <mp-index-list list={list}></mp-index-list>

期望结果

原生组件 props 正确传递

实际结果

原生组件 props 无法传递

环境信息

👽 Taro v3.1.0


  Taro CLI 3.1.0 environment info:
    System:
      OS: macOS 11.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 15.7.0 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 7.4.3 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.1.0 => 3.1.0
      @tarojs/mini-runner: 3.1.0 => 3.1.0
      @tarojs/react: 3.1.0 => 3.1.0
      @tarojs/runtime: 3.1.0 => 3.1.0
      @tarojs/taro: 3.1.0 => 3.1.0
      @tarojs/webpack-runner: 3.1.0 => 3.1.0
      babel-preset-taro: 3.1.0 => 3.1.0
      eslint-config-taro: 3.1.0 => 3.1.0
      react: ^17.0.0 => 17.0.1
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Feb 26, 2021
@Chen-jj Chen-jj added this to the 3.1.1 milestone Feb 26, 2021
@Chen-jj Chen-jj linked a pull request Feb 26, 2021 that will close this issue
9 tasks
@Chen-jj
Copy link
Contributor

Chen-jj commented Feb 26, 2021

Duplicate of #8756

3.1.1 修复

@nanxiaobei
Copy link

3.1.1 props 还是没有传给原生组件

@Psli
Copy link
Contributor Author

Psli commented Mar 5, 2021

3.1.1 props 还是没有传给原生组件

我这边更新3.1.1后已修复问题

@Chen-jj
Copy link
Contributor

Chen-jj commented Mar 5, 2021

#8797

@Chen-jj
Copy link
Contributor

Chen-jj commented Mar 5, 2021

新的 JSX Transform 有 _jsx_jsxs 两个函数:

image

3.1.1 只兼容了 _jsx,但 _jsxs 还没兼容,所以部分原生组件的属性还是缺失,3.1.2 修复。

@nanxiaobei
Copy link

好的,等待更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants