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

vue组件事件报错 #4

Open
hminghe opened this issue May 28, 2018 · 2 comments
Open

vue组件事件报错 #4

hminghe opened this issue May 28, 2018 · 2 comments

Comments

@hminghe
Copy link

hminghe commented May 28, 2018

如果自己创建的vue组件使用了和下面通用事件一样的名称会导致报错
Error in event handler for "input": "TypeError: $event.stopPropagation is not a function"

自定义click 事件接收到不

重现:
http://dotwe.org/vue/1d33d274164256d3b2c3e1b52324688c

 weexEvents: [
    'click',
    'tap',
    'scroll',
    // gesture
    'touchstart',
    'touchend',
    'touchmove',
    'swipe',
    'panstart',
    'panmove',
    'panend',
    'longpress',
    'long',
    // input & switch & slider
    'input',
    'key',
    'keyup',
    'keydown',
    'return',
    'change',
    'focus',
    'blur',
    'active',
    // appear series.
    'appear',
    'disappear',
    'offsetAppear',
    'offsetDisappear',
    // refresh & loading
    'refresh',
    'pullingdown',
    'loading',
    // video
    'start',
    'pause',
    'finish',
    'fail'
  ]
@hminghe
Copy link
Author

hminghe commented May 31, 2018

😂理我一下?

@superDCF
Copy link

不能使用原生同名事件,改个自定义事件名即可。

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