JSPM

react-list-auto-scroll

0.0.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 33
  • Score
    100M100P100Q51587F
  • License MIT

react list 自动轮播(无缝滚动)

Package Exports

  • react-list-auto-scroll
  • react-list-auto-scroll/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-list-auto-scroll) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-list-auto-scroll

列表无缝轮播组件
# npm & yarn
$ yarn add react-list-auto-scroll
参数 说明 类型
marH 每一项之间的margin number
data 数据 any[]
itemRender 自定义渲染列表
len 可视区包含行数 number
height 容器高度 number
import { Scroll } from 'react-list-auto-scroll';

<Scroll 
  marH={20} 
  data={[1,2,3,4,5,6]} 
  itemRender={(item,index)=><div className="item">{item}</div>} 
  len={3} 
  height={200} 
/>