欢迎光临散文网 会员登陆 & 注册

Vue3使用JSX/TSX如何添加.stop、.prevent等事件修饰符

2023-08-04 16:52 作者:UncleZan  | 我要投稿

需要用到 withModifiers 函数。

例子:


参考:

babel-plugin-jsx:https://github.com/vuejs/babel-plugin-jsx

Issues:https://github.com/vuejs/babel-plugin-jsx/issues/439

Vue3使用JSX/TSX如何添加.stop、.prevent等事件修饰符的评论 (共 条)

分享到微博请遵守国家法律