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

子组件事件失效 #1390

Closed
cg4212440 opened this issue Feb 16, 2019 · 6 comments

Comments

@cg4212440
Copy link

commented Feb 16, 2019

1.父组件:
image
2:子组件
image 事件失效打印不出!!!!!
image
3:image
去掉循环 点击事件生效!!!
"mpvue": "^2.0.0",
"mpvue-loader": "^2.0.0",
"mpvue-template-compiler": "^2.0.0",

@spencer1994

This comment has been minimized.

Copy link

commented Feb 18, 2019

附议一下

@imyellow

This comment has been minimized.

Copy link

commented Feb 18, 2019

我也遇到了,调试了一下午,发现在 for 里组件内部的自定义事件失效,组件单独拿出来不放在 for 里没问题。
"mpvue": "^1.0.20"

先用回 1.0.18 吧,此问题之后的版本包括新的 2.0.0 也存在

@hucq

This comment has been minimized.

Copy link
Member

commented Feb 19, 2019

此问题同于 #1393
新项目升级到 2.0.2 即可。

yarn add mpvue@2.0.2 mpvue-template-compiler@2.0.2

老项目升级到 1.4.1 即可。

yarn add mpvue@1.4.1 mpvue-template-compiler@1.4.1

hucq added a commit that referenced this issue Feb 19, 2019

@hucq hucq closed this Feb 19, 2019

@bacy

This comment has been minimized.

Copy link

commented Feb 24, 2019

我用的1.4.2,我发现事件恢复了,但是数据不对,表现出来的问题是,我点的是第10条,却判定我点了第3条

@caiyongqiang

This comment has been minimized.

Copy link

commented Mar 11, 2019

此问题同于 #1393
新项目升级到 2.0.2 即可。

yarn add mpvue@2.0.2 mpvue-template-compiler@2.0.2

老项目升级到 1.4.1 即可。

yarn add mpvue@1.4.1 mpvue-template-compiler@1.4.1

测试过,发现如果组件两层调用1.4.1可以,但是组件三层调用又失效了,然后更新到1.4.2三层可以点击触发,但是二层调用点击事件又不行了

@julywind

This comment has been minimized.

Copy link

commented Aug 18, 2019

此问题同于 #1393
新项目升级到 2.0.2 即可。

yarn add mpvue@2.0.2 mpvue-template-compiler@2.0.2

老项目升级到 1.4.1 即可。

yarn add mpvue@1.4.1 mpvue-template-compiler@1.4.1

测试过,发现如果组件两层调用1.4.1可以,但是组件三层调用又失效了,然后更新到1.4.2三层可以点击触发,但是二层调用点击事件又不行了

升级到2.0.2 还是不行 最新的2.0.6也不行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.