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

DraggableSheet 组件缺少 worklet:onsizeupdate 方法 #16861

Open
songwenhui opened this issue Nov 15, 2024 · 1 comment
Open

DraggableSheet 组件缺少 worklet:onsizeupdate 方法 #16861

songwenhui opened this issue Nov 15, 2024 · 1 comment
Assignees
Milestone

Comments

@songwenhui
Copy link

这个特性解决了什么问题?

DraggableSheet 组件滚动回调,可以联动其他组件实现一些逻辑或动画

这个 API 长什么样?

新增属性 onsizeupdate ,回调返回 pixels、size,API 向微信小程序靠拢

This was referenced Nov 16, 2024
@songwenhui
Copy link
Author

涉及到 worklet: 的事件都不支持绑定

通过 @tarojs/plugin-inject 插件添加了配置,编译后的 Dom 已经有了该属性,但是回调依然不执行
DraggableSheet: { 'worklet:onsizeupdate': '', },

@tutuxxx tutuxxx self-assigned this Nov 19, 2024
@tutuxxx tutuxxx added this to the 4.0.8 milestone Nov 19, 2024
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