An open API service indexing awesome lists of open source software.

https://github.com/rendom/vue-virtual-list

Vue 2 virtual list.
https://github.com/rendom/vue-virtual-list

infinite-scroll scroll virtual-list vue vue-virtual-list vue2

Last synced: about 1 year ago
JSON representation

Vue 2 virtual list.

Awesome Lists containing this project

README

          

# vue-virtual-list

DynamicHeight is broken atm.

### 1. Install component
`npm install vue-virtual-list`

If you have mixed heights on your rows then you need to specify `h (Number)` property on your object with the height.

### 2. Setup your app
```



{{item.name}}


import vl from 'vue-virtual-list'

export default {
components: {
vl
},
data () {
var items = []
for (var i = 0; i < 50; i++) {
items.push({name: 'item' + i, h: 20})
}

return {
items: items,
}
}
}

```

### Component properties
| Name | Type | Default |
| ------------- |:-------------:| -----:|
| scroll | String | None, this prop is required can either be `window` or `container`. |
| scrollContainerHegiht | Number | Defaults to 500 and is only required if you use scroll container |
| dynamicHeight | Boolean | Defaults to `true` this requires that you specify height on your objects. |
| rowHeight | Number | Defaults to 0 and is only required if you set objectHeight to false|