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

组件文件如果有-连字符,使用Repeat时comid和prefix命名不一致会导致编译后的代码出错 #397

Closed
Chandler-Sun opened this issue Sep 17, 2017 · 1 comment
Labels
inactive Inactive issue, will be auto closed in 7 days

Comments

@Chandler-Sun
Copy link

Chandler-Sun commented Sep 17, 2017

https://github.com/wepyjs/wepy/blob/1f770c041671375d6da3e8f5ce695b4097d29abe/packages/wepy-cli/src/compile-template.js#L372
https://github.com/wepyjs/wepy/blob/1f770c041671375d6da3e8f5ce695b4097d29abe/packages/wepy-cli/src/compile-template.js#L276
两个地方一个是生成wx:for-item属性值,没做camel格式转换, 一个是生成被Repeat的组件内对item的引用,做了camel格式转换,最终会导致变量名称不匹配,从而使生成的wxml文件无法正常工作。

Gcaufy added a commit that referenced this issue Oct 18, 2017
@stale
Copy link

stale bot commented Jun 13, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
因为这个 Issue 最近没有任何有效回复,所以被自动标记为了stale。 如果在未来7天依旧没有任何激活操作,那么该 Issue 将会被自动关闭。 感谢您的提问。

@stale stale bot added the inactive Inactive issue, will be auto closed in 7 days label Jun 13, 2018
@stale stale bot closed this as completed Jun 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive issue, will be auto closed in 7 days
Projects
None yet
Development

No branches or pull requests

1 participant