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

[Feature Request]希望mpx编译为web代码时能支持事件代理。 #896

Open
Inchill opened this issue Nov 14, 2021 · 1 comment
Open
Labels
support in future We will support it in furture

Comments

@Inchill
Copy link

Inchill commented Nov 14, 2021

问题描述:
我有两种组件,分别是 A 和 B。现在 A 里面会嵌套 B 或者是使用 slot 自定义嵌套 B。我想通过事件代理的形式在 A 组件处理,小程序配置 bubble 和 compose 可以被捕获,但是 web 端就不行了。

<component-A bind:change="onChange">
  <slot wx:if="{{ showSlot }}"></slot>
  <component-B wx:else></component-B>
</component-A>
@hiyuki hiyuki added the support in future We will support it in furture label Nov 22, 2021
@hiyuki
Copy link
Collaborator

hiyuki commented Nov 22, 2021

目前的事件实现机制下暂不支持冒泡,后续我们会考虑重构事件机制以实现冒泡特性

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support in future We will support it in furture
Projects
None yet
Development

No branches or pull requests

2 participants