-
Notifications
You must be signed in to change notification settings - Fork 3k
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
类似 v-on: 事件绑定风格 #71
Labels
Comments
你的需求很好,后面看一下要不要实现,但现在因为rpops是可以传function的,所以现在也可以简单实现而不需要用$invoke:
|
这里有一个想法,你看看如何,满足你要的需求吗?
|
如果使用 |
wow!效率太高!酷!❤️ |
|
对,
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用场景:
比如列表组件的共有事件:
itemTap
,itemLongTap
。这样写 props:
当 Item 触发事件时,如下通知父组件:
即类似 vue 的
v-on:
,在 html 标签中绑定事件处理函数。The text was updated successfully, but these errors were encountered: