Package Exports
- rc-virtual-list
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 (rc-virtual-list) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rc-virtual-list
React Virtual List Component which worked with animation.
Development
npm install
npm start
open http://localhost:9001/
Feature
- Support react.js
- Support animation
- Support IE11+
Install
Usage
import List from 'rc-virtual-list';
<List data={[0, 1, 2]} height={200} itemHeight={30} itemKey="id">
{index => <div>{index}</div>}
</List>;
API
List
Prop | Description | Type | Default |
---|---|---|---|
children | Render props of item | item => ReactElement | - |
component | Customize List dom element | string | Component | div |
data | Data list | Array | - |
disabled | Disable scroll check. Usually used on animation control | boolean | false |
height | List height | number | - |
itemHeight | Item minium height | number | - |
itemKey | Match key with item | string | - |