Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 4657e3b

Browse files
committed
fix item component property type
1 parent 25bdf28 commit 4657e3b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ It can help with creating Twitter-like feed with thousands of items. It renders
88

99
* Only page mode
1010
* Uses ResizeObserver
11-
* Items can have any size and change dynamicaly
11+
* Items can have any size and change dynamically
1212
* Items can have margins
1313
* Supports infinite scroll
1414

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-list-scroller",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Simple Vue.js component for efficiant rendering large lists",
55
"homepage": "https://github.com/IvanSafonov/vue-list-scroller",
66
"license": "MIT",

src/listscroller.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default {
2525
// Approximate item height (used at first render)
2626
itemHeight: { type: Number, required: true },
2727
// Vue js item component
28-
itemComponent: { type: Object, required: true },
28+
itemComponent: { type: [Object, Function], required: true },
2929
// Height of rendered part relative to viewport height
3030
renderViewports: { type: Number, default: 3 },
3131
},

0 commit comments

Comments
 (0)