
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
anima-basescroller
Advanced tools
滚动选择组件。
$ npm install anima-basescroller --save
var BaseScroller = require('basescroller');
var nameScroller = new BaseScroller(options);
// use BaseScroller
DOM Object
组件插入的容器 [optional]array<string|number|object>
组件数据集 [optional]function
选中后的回调函数,回调参数有两个: [optional]number
每个可选项的高度值,单位 px,默认值为 34。添加此选项需要修改样式表中 .scroller-item 下的 height 和 line-height 为 itemHeight;.current-indicator 下的 height 为 itemHeight - 2(1px 的 border-top 和 border-bottom)。同时建议设置 .scroller-item 合适的 font-size。 [optional]number
组件可见条目的数量,必须为奇数,默认值为 7。添加此选项需要修改样式表中 .scroller-component 的 height 为 itemsNumber * itemHeight;以及 .current-indicator 下的 top 为 itemHeight * (itemsNumber - 1) / 2。 [optional]string
组件元素 class,用于自定义组件样式,支持以空格分隔的多个 class [optional]FAQs
Best Practice Of Developing Component With Ant-Tool
The npm package anima-basescroller receives a total of 0 weekly downloads. As such, anima-basescroller popularity was classified as not popular.
We found that anima-basescroller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.