You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
source: { // here is: {uid: 'unique_1', text: 'abc'}
106
+
type: Object,
107
+
default () {
108
+
return {}
109
+
}
110
+
},
111
+
otherPropValue: String // here is: 'The Progressive JavaScript Framework'
112
+
}
113
+
}
114
+
</script>
115
+
```
116
+
93
117
More usages or getting start you can refer to these clearly [examples](https://tangbc.github.com/vue-virtual-scroll-list).
94
118
95
119
@@ -103,12 +127,13 @@ More usages or getting start you can refer to these clearly [examples](https://t
103
127
|`keeps`| Number | How many items you are expecting the list to keep rendering in the real dom. |
104
128
|`data-key`| String | The unique key get from `data-sources` in each data object, its value **must be unique** in `data-sources`, it is used for identifying item size. |
105
129
|`data-sources`| Array[Object]| The source array built for list, each array data must be an object and has an unique key for `data-key` property. |
106
-
|`data-component`| Component | The render item component created / declared by vue, and it will use the data object in `datas-sources` as render props. |
130
+
|`data-component`| Component | The render item component created / declared by vue, and it will use the data object in `datas-sources` as render prop and named: `source`.|
0 commit comments