
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
tingle-scroller
Advanced tools
The Scroller Component for tinglejs.
Scroller 是对 iScroll 的 React 封装,用作滑动容器。内部 iScroll 的版本是 5.1.3。
npm install tingle-scroller --save
render() {
return (
<Scroller>
<GroupList title={"列表标题1"}>
<div className="tLH44 tPL10">aa</div>
<div className="tLH44 tPL10">aa</div>
<div className="tLH44 tPL10">aa</div>
<div className="tLH44 tPL10">aa</div>
<div className="tLH44 tPL10">aa</div>
<div className="tLH44 tPL10">aa</div>
<div className="tLH44 tPL10">aa</div>
<div className="tLH44 tPL10">aa</div>
</GroupList>
</Scroller>
);
}
| 配置项 | 必填 | 默认值 | 功能/备注 |
|---|---|---|---|
| className | optional | - | 自定义样式类 |
| autoRefresh | optional | true | 是否在内容变化时自动重新计算和渲染 |
| minWidth | optional | 100% | 容器的最小宽度(为了避免容器宽度过小而显示不正常) |
<Scroller ref="sc" click={true} mouseWheel={false}></Scroller>
更多配置详见官网。
<Scroller ref="sc" onScrollEnd={t.handleScrollEnd.bind(t)}></Scroller>
相当于
t.refs.sc.scroller.on('scrollEnd', t.handleScrollEnd.bind(t));
更多事件详见官网。
可通过 ref 到的 component 实例的 .scroller 来获取 iScroll 实例,进而调用实例中的所有方法以及获取实例中的各种属性。
t.refs.sc.scroller.scrollTo(0, 100);
FAQs
The `Scroller Component` for tinglejs
The npm package tingle-scroller receives a total of 3 weekly downloads. As such, tingle-scroller popularity was classified as not popular.
We found that tingle-scroller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.