Skip to content

Commit d0e4f1a

Browse files
committed
Add info tips.
1 parent 454016c commit d0e4f1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Corresponding example you can refer to the [demo of variable height](https://tan
183183

184184
### About item mode
185185

186-
Using `item-mode` can save a considerable amount of memory and performance. In this mode, prop `item`, `itemcount` and `itemprops` are both required, and you don't have to put `<item/>` with a v-for frag inside `virtual-list`, just assign it as prop `item`:
186+
Using `item-mode` can save a considerable amount of memory and performance. In this mode, prop `item`, `itemcount` and `itemprops` are both required, and you don't have to put `<item/>` with a v-for directive inside `virtual-list`, just assign it as prop `item`:
187187

188188
```vue
189189
<template>
@@ -219,6 +219,8 @@ Using `item-mode` can save a considerable amount of memory and performance. In t
219219
220220
```
221221

222+
Whenever if you want to change any item data from list in `item-mode`, you just need call public method `forceRender()` after source data change. Increase or decrease items, you need to change `itemcount` and call `forceRender()` together.
223+
222224
Corresponding example you can refer to the [demo of item-mode](https://tangbc.github.io/vue-virtual-scroll-list/demos/item-mode).
223225

224226

0 commit comments

Comments
 (0)