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

[BUG] 在Vue中, 是不是click事件没有向父组件emit, 导致我使用@click无法调用methods内的函数 #55

Closed
1273082756 opened this issue Nov 24, 2020 · 5 comments · Fixed by #60
Assignees
Labels
bug Something isn't working

Comments

@1273082756
Copy link

[BUG] 在Vue中, 是不是click事件没有向父组件发送emit('click'), 导致我使用@click无法调用methods内的函数, 代码如下

<full-screen-one
      theme="outline"
      size="24"
      fill="#fff"
      @click="fullScreen"
/>

通过console发现, 并没有打印出我预期的结果, 换个方式说, 根本就没有调用到fullScreen函数

@AppleMonkey2019
Copy link
Member

感谢反馈,我测试一下

@1273082756
Copy link
Author

我在外层套一个a标签或者div标签即可调用相关时间, 但显得有些冗余和不雅观

@1273082756
Copy link
Author

请问有优雅的解决方案吗

@AppleMonkey2019
Copy link
Member

确实是bug,非常感谢反馈。试试1.1.3版本

@AppleMonkey2019 AppleMonkey2019 self-assigned this Dec 20, 2020
@AppleMonkey2019 AppleMonkey2019 added the bug Something isn't working label Dec 20, 2020
@1273082756
Copy link
Author

感谢解答

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

Successfully merging a pull request may close this issue.

2 participants