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

希望自定义事件可以支持携带: #941

Open
WaterAndBin opened this issue Jan 15, 2025 · 1 comment
Open

希望自定义事件可以支持携带: #941

WaterAndBin opened this issue Jan 15, 2025 · 1 comment

Comments

@WaterAndBin
Copy link

我尝试这样子的自定义事件,这里是在vue里面的写法
<y-switch :value="test" @update:value="(data) => (test = data.detail)"></y-switch>
在omi里面的写法是这种
this.fire('update:value', 123);或者this.fire('[update:value]', 123);
但是不会去触发这个自定义事件,希望可以支持或者请问有什么方法可以解决吗?感谢

@dntzhang
Copy link
Collaborator

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