Installations
npm install dw-neit-rc-virtual-list
Developer Guide
Typescript
Yes
Module System
CommonJS
Min. Node Version
>=8.x
Node Version
18.20.4
NPM Version
10.7.0
Score
67.5
Supply Chain
83.7
Quality
75.7
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Download Statistics
Total Downloads
4,179
Last Day
1
Last Week
5
Last Month
34
Last Year
1,570
Bundle Size
34.42 kB
Minified
11.53 kB
Minified + Gzipped
Package Meta Information
Latest Version
3.14.5
Package Id
dw-neit-rc-virtual-list@3.14.5
Unpacked Size
131.49 kB
Size
21.26 kB
File Count
79
NPM Version
10.7.0
Node Version
18.20.4
Publised On
15 Aug 2024
Total Downloads
Cumulative downloads
Total Downloads
4,179
Last day
-75%
1
Compared to previous day
Last week
-44.4%
5
Compared to previous week
Last month
17.2%
34
Compared to previous month
Last year
-28.3%
1,570
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
dw-neit-rc-virtual-list
React Virtual List Component which worked with animation.
Online Preview
https://virtual-list-react-component.vercel.app/
Development
1npm install 2npm start 3open http://localhost:9001/
Feature
- Support react.js
- Support animation
- Support IE11+
Install
Usage
1import List from 'dw-neit-rc-virtual-list'; 2 3<List data={[0, 1, 2]} height={200} itemHeight={30} itemKey="id"> 4 {index => <div>{index}</div>} 5</List>;
API
List
Prop | Description | Type | Default |
---|---|---|---|
children | Render props of item | (item, index, props) => 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 | - |
styles | style | { horizontalScrollBar?: React.CSSProperties; horizontalScrollBarThumb?: React.CSSProperties; verticalScrollBar?: React.CSSProperties; verticalScrollBarThumb?: React.CSSProperties; } | - |
children
provides additional props
argument to support IE 11 scroll shaking.
It will set style
to visibility: hidden
when measuring. You can ignore this if no requirement on IE.
No vulnerabilities found.
No security vulnerabilities found.