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

【vue2】v-for中使用方法处理数据后,编译到微信小程序时绑定的wx:key不对 #5277

Open
jackiotyu opened this issue Dec 31, 2024 · 1 comment
Assignees

Comments

@jackiotyu
Copy link

image
https://github.com/jackiotyu/uni-v-for-demo

v-for中使用方法处理数据后,编译到微信小程序时wx:key绑定的字段不对,数据绑定到$orig后,原key字段已经拿不到数据了

@Otto-J Otto-J self-assigned this Feb 25, 2025
@Otto-J
Copy link
Member

Otto-J commented Feb 25, 2025

感谢反馈,这个是 vue2 的一个逻辑,当 v-for 内容有复杂逻辑时候会进行 $orgi 的处理,你 demo 中的 data-name 用到了一个函数表达式,触发了这一点。在 vue3 中不会产生这个问题。

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

2 participants