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
console.log('[demo]:'+ size +' items are created.')
82
85
}
@@ -124,7 +127,7 @@ Available `Prop` :
124
127
125
128
*Prop* | *Type* | *Required* | *Description* |
126
129
:--- | :--- | :--- | :--- |
127
-
| heights | Array |✓|A array contains all height of your item. |
130
+
| heights | Array |*|An array contains all height of your item.If you want to use `data-height`,please ignore this option. |
128
131
| remain | Number | * | The number of item that show in view port.(default `10`) |
129
132
| keep | Boolean | * | Work with `keep-alive` component,keep scroll position after activated.(default `false`) |
130
133
| enabled | Boolean | * | If you want to render all data directly,please set 'false' for this option.But `toTop`、`toBottom` and `scrolling` event is still available.(default `true`) |
@@ -137,6 +140,37 @@ Available `Event` :
137
140
| toBottom | An event emit by this library when this list is scrolled on bottom. |
138
141
| scrolling | An event emit by this library when this list is scrolling. |
139
142
143
+
## About heights prop
144
+
`heights` property is an array contains all height of your item,but you can tell us then height of each item by setting the `data-height` property.
145
+
```html
146
+
<divv-for="item in list"
147
+
:key="item.index"
148
+
v-bind="{'data-height': item.itemHeight}">
149
+
</div>
150
+
```
151
+
Sometimes you may need to change your the height of each item or filter your item.This may cause some blank problems.So you'd better call `update` function to tell us.
0 commit comments