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

必须写在赋值或调用函数后面吗?调试时使用不太方便 #2

Closed
262060984 opened this issue May 8, 2018 · 2 comments
Labels
feature Want to add features

Comments

@262060984
Copy link

类似这样的代码,不好使用了

this.$navigation.on('forward', (to, from) => {
      console.log('forward to', to, 'from ', from);
      this.direction = 'forward';
    });
@TaroXin
Copy link
Owner

TaroXin commented May 8, 2018

暂时不支持在箭头函数后面声明,后续会加上这个功能

可以暂时通过声明函数的方式使用,不过这样的话就不太方便了

@TaroXin TaroXin added the feature Want to add features label May 8, 2018
TaroXin added a commit that referenced this issue May 8, 2018
BREAKING CHANGE: add function callback and lambda callback comment compiler

#2
@TaroXin
Copy link
Owner

TaroXin commented May 8, 2018

功能已经添加,升级 0.8.6 版本即可使用,感谢反馈

@TaroXin TaroXin closed this as completed May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Want to add features
Projects
None yet
Development

No branches or pull requests

2 participants