-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[RFC] useInViewport #2060
Labels
feature
New feature or request
Comments
coderluojz
added a commit
to coderluojz/hooks
that referenced
this issue
Feb 14, 2023
hook是存在的,但是我期望暴露出对应的回调以便于我能进行更多的自定义控制,我提交了一份demo,您可以查看demo详情。
罗静周
***@***.***
…------------------ 原始邮件 ------------------
发件人: "alibaba/hooks" ***@***.***>;
发送时间: 2023年2月15日(星期三) 上午10:03
***@***.***>;
***@***.******@***.***>;
主题: Re: [alibaba/hooks] [RFC] useInViewport (Issue #2060)
https://ahooks.js.org/zh-CN/hooks/use-in-viewport 已经有这个hook 了
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
18 tasks
crazylxr
pushed a commit
that referenced
this issue
Jul 12, 2023
#2061) * feat: useInViewport (#2060) * fix: 修复滚动聚焦问题 * fix: 修改示例 demo 滚动选中菜单功能 * style: format and remove useless code * refactor: use optional chaining and change options position * refactor: revert unnecessary change * docs: update docs and desc of demo * docs(useInViewport): update docs target type support array docs(useInViewport): update docs target type support array * refactor: code optimization * feat: add callback array dependencies * feat: add callback and target array test case * fix: test case code optimization * test: remove repeat variable --------- Co-authored-by: liuyib <1656081615@qq.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
用于滚动内容时,根据视口所在位置,需要选中高亮菜单按钮。抛出回调以便于自定义控制。
API
Demo
The text was updated successfully, but these errors were encountered: