Skip to content

Commit 3dbe6b5

Browse files
committed
Update example
1 parent 4fd2152 commit 3dbe6b5

File tree

6 files changed

+19
-26
lines changed

6 files changed

+19
-26
lines changed

example/src/views/chat-room/Main.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<div class="main">
88
<div class="list-container">
99
<virtual-list v-show="!!messages.length" class="stream scroll-touch" :class="{ overflow: overflow }" ref="vsl"
10-
:size="80"
11-
:keeps="30"
1210
:data-key="'sid'"
1311
:data-sources="messages"
1412
:data-component="messageComponent"
13+
14+
:estimate-size="100"
1515
:item-class="'stream-item'"
1616
:item-class-add="addItemClass"
1717
@resized="onItemRendered"

example/src/views/dynamic-size/Main.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212

1313
<div v-show="isShowView">
1414
<virtual-list class="list-dynamic scroll-touch"
15-
:size="80"
16-
:keeps="30"
17-
:item-class="'list-item-dynamic'"
18-
1915
:data-key="'id'"
2016
:data-sources="items"
2117
:data-component="itemComponent"
18+
19+
:estimate-size="80"
20+
:item-class="'list-item-dynamic'"
2221
/>
2322
</div>
2423

example/src/views/fixed-size/Main.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88

99
<div v-show="isShowView">
1010
<virtual-list class="list scroll-touch"
11-
:size="50"
12-
:keeps="30"
13-
:item-class="'list-item-fixed'"
14-
1511
:data-key="'id'"
1612
:data-sources="items"
1713
:data-component="itemComponent"
14+
15+
:estimate-size="50"
16+
:item-class="'list-item-fixed'"
1817
/>
1918
</div>
2019

example/src/views/horizontal/Main.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88

99
<div v-show="isShowView">
1010
<virtual-list class="list-horizontal scroll-touch"
11-
:size="110"
12-
:keeps="30"
13-
:direction="'horizontal'"
14-
:wrap-class="'wrapper'"
15-
:item-class="'list-item-horizontal'"
16-
1711
:data-key="'id'"
1812
:data-sources="items"
1913
:data-component="itemComponent"
14+
15+
:estimate-size="110"
16+
:direction="'horizontal'"
17+
:wrap-class="'wrapper'"
18+
:item-class="'list-item-horizontal'"
2019
/>
2120
</div>
2221

example/src/views/infinite-loading/Main.vue

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@
1010

1111
<div v-show="isShowView">
1212
<virtual-list class="list-infinite scroll-touch"
13-
:size="70"
14-
:keeps="30"
15-
:item-class="'list-item-infinite'"
16-
:footer-class="'loader-wrapper'"
17-
:disabled="false"
18-
1913
:data-key="'id'"
2014
:data-sources="items"
2115
:data-component="itemComponent"
2216

17+
:estimate-size="70"
18+
:item-class="'list-item-infinite'"
19+
:footer-class="'loader-wrapper'"
2320
v-on:totop="onScrollToTop"
2421
v-on:tobottom="onScrollToBottom"
2522
>

example/src/views/keep-state/Main.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010

1111
<div v-show="isShowView">
1212
<virtual-list class="list-keep scroll-touch"
13-
:size="60"
14-
:keeps="30"
15-
:item-class="'list-item-keep'"
16-
1713
:data-key="'id'"
1814
:data-sources="items"
1915
:data-component="itemComponent"
16+
17+
:estimate-size="60"
18+
:item-class="'list-item-keep'"
2019
/>
2120
</div>
2221

0 commit comments

Comments
 (0)