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

支付宝小程序中 for 循环中的多个 ref 生成的组件数组长度始终为1 #930

Closed
xlfsummer opened this issue Oct 30, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@xlfsummer
Copy link

问题描述
在 v-for 循环中使用 ref="comp", 微信和百度正常,this.$refs.comp 为多个组件的数组
image

在支付宝中,this.$refs.comp 虽然为数组,但只包含了一个组件
image

预期结果
支付宝端结果与微信一致

系统信息:
uni-app v2.3.7
uni-app cli v2.0.0-23720191024001

补充信息
查看支付宝 dist/dev 中的 vendor.js, 有如下代码
image

改成这样即可正常得到包含多个组件的 ref
image
image

@xlfsummer xlfsummer changed the title 支付宝小程序中 for 循环中的多个 ref 没有生成数组 支付宝小程序中 for 循环中的多个 ref 生成的组件数组长度始终为1 Oct 30, 2019
@Wangyaqi Wangyaqi added the bug Something isn't working label Oct 31, 2019
@Wangyaqi
Copy link
Contributor

已确认bug,感谢反馈

@xlfsummer
Copy link
Author

已确认bug,感谢反馈

请问有修复计划吗

@jiahuibin
Copy link

头条小程序在真机上也有这样的错误,在模拟器上没有这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants