List
A list component to show items and control loading status.
Install
Usage
Basic Usage
API
| Attribute |
Description |
Type |
Default |
| loading |
Whether to show loading info,the load event will not be triggered when loading |
Boolean |
false |
| finished |
Whether loading is finished,the load event will not be triggered when finished |
Boolean |
false |
| offset |
The load event will be triggered when the distance between the scrollbar and the bottom is less than offset |
Number |
300 |
| loading-text |
Loading text |
String |
Loading... |
| immediate-check |
Whether to check loading position immediately after mounted |
Boolean |
true |
Event
| Event |
Description |
Arguments |
| load |
Triggered when the distance between the scrollbar and the bottom is less than offset |
- |
Methods
Use ref to get list instance and call instance methods
| Name |
Attribute |
Return value |
Description |
| check |
- |
- |
Check scroll position |
Slot
| Name |
Description |
| - |
List content |
| loading |
Custom loading tips |