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

taro3.3.16 编译微信小程序 节点上dataset 获取不了值 #10874

Open
lxiaohui opened this issue Dec 10, 2021 · 6 comments
Open

taro3.3.16 编译微信小程序 节点上dataset 获取不了值 #10874

lxiaohui opened this issue Dec 10, 2021 · 6 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@lxiaohui
Copy link

相关平台

微信小程序

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

复现步骤

最新官方项目git拉取下来 然后query.selectAll(str).boundingClientRect 查找到的节点dataset 没有值

期望结果

能拿到这个值

实际结果

没有拿到

环境信息

👽 Taro v3.3.16


  Taro CLI 3.3.16 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.15.2 - D:\software\nodejs\node.EXE
      npm: 6.14.9 - D:\software\nodejs\npm.CMD   
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Dec 10, 2021
@lxiaohui
Copy link
Author

image

@lxiaohui
Copy link
Author

@Chen-jj

@Chen-jj
Copy link
Contributor

Chen-jj commented Dec 16, 2021

提供一下 demo

@lxiaohui
Copy link
Author

@Chen-jj 直接就是官方的demo

@dreamthen
Copy link

@lxiaohui 3.x直接用ref,不用原来的query.selectAll....

@azumia
Copy link

azumia commented Mar 13, 2023

3.5.11也有同样的情况,dataset不支持

image
image

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

No branches or pull requests

4 participants