没有合适的资源?快使用搜索试试~ 我知道了~
react-use-scroll-sync:自定义react挂钩,可跨多个可滚动元素同步滚动位置
共17个文件
json:5个
npmignore:2个
ts:2个
需积分: 30 1 下载量 191 浏览量
2021-05-17
05:21:06
上传
评论
收藏 179KB ZIP 举报
温馨提示
React使用滚动同步 自定义react挂钩,用于跨多个可滚动元素的同步滚动位置。 演示版 安装 用纱安装: yarn add react-use-scroll-sync 或使用npm: npm i react-use-scroll-sync --save 如何使用 import * as React from "react" import { useScrollSync } from "react-use-scroll-sync" const App = ( ) => { const ref1 = React . useRef < HTMLDivElement> ( null ) const ref2 = React . useRef < HTMLDivElement> ( null ) useScrollSync ( [ ref1 , ref2 ] , {
资源推荐
资源详情
资源评论
收起资源包目录
react-use-scroll-sync-master.zip (17个子文件)
react-use-scroll-sync-master
.github
workflows
deploy-to-gh-pages.yml 590B
yarn.lock 261KB
src
index.ts 30B
scroll-sync.ts 3KB
.npmignore 47B
example
index.html 361B
index.tsx 5KB
.npmignore 24B
tsconfig.json 458B
package-lock.json 321KB
package.json 869B
tsconfig.json 740B
LICENSE 1KB
README.md 1KB
prettier.config.js 258B
.gitignore 41B
package.json 1KB
共 17 条
- 1
资源评论
莊謙
- 粉丝: 22
- 资源: 4629
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功