Skip to content

Commit c0f0943

Browse files
committed
Fixed functional component warning #185
1 parent 4ce27ca commit c0f0943

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-virtual-scroll-list v2.0.7
2+
* vue-virtual-scroll-list v2.0.8
33
* open source under the MIT license
44
* https://github.com/tangbc/vue-virtual-scroll-list#readme
55
*/
@@ -379,7 +379,7 @@
379379
required: true
380380
},
381381
dataComponent: {
382-
type: Object,
382+
type: [Object, Function],
383383
required: true
384384
},
385385
extraProps: {
@@ -461,7 +461,7 @@
461461
type: Object
462462
},
463463
component: {
464-
type: Object
464+
type: [Object, Function]
465465
},
466466
uniqueKey: {
467467
type: String

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-virtual-scroll-list",
3-
"version": "2.0.7",
3+
"version": "2.0.8",
44
"description": "A vue component support big amount data list with high scroll performance.",
55
"main": "dist/index.js",
66
"files": [

src/props.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const VirtualProps = {
2121
required: true
2222
},
2323
dataComponent: {
24-
type: Object,
24+
type: [Object, Function],
2525
required: true
2626
},
2727
extraProps: {
@@ -108,7 +108,7 @@ export const ItemProps = {
108108
type: Object
109109
},
110110
component: {
111-
type: Object
111+
type: [Object, Function]
112112
},
113113
uniqueKey: {
114114
type: String

0 commit comments

Comments
 (0)