File tree Expand file tree Collapse file tree 6 files changed +19
-26
lines changed Expand file tree Collapse file tree 6 files changed +19
-26
lines changed Original file line number Diff line number Diff line change 7
7
<div class =" main" >
8
8
<div class =" list-container" >
9
9
<virtual-list v-show =" !!messages.length" class =" stream scroll-touch" :class =" { overflow: overflow }" ref =" vsl"
10
- :size =" 80"
11
- :keeps =" 30"
12
10
:data-key =" 'sid'"
13
11
:data-sources =" messages"
14
12
:data-component =" messageComponent"
13
+
14
+ :estimate-size =" 100"
15
15
:item-class =" 'stream-item'"
16
16
:item-class-add =" addItemClass"
17
17
@resized =" onItemRendered"
Original file line number Diff line number Diff line change 12
12
13
13
<div v-show =" isShowView" >
14
14
<virtual-list class =" list-dynamic scroll-touch"
15
- :size =" 80"
16
- :keeps =" 30"
17
- :item-class =" 'list-item-dynamic'"
18
-
19
15
:data-key =" 'id'"
20
16
:data-sources =" items"
21
17
:data-component =" itemComponent"
18
+
19
+ :estimate-size =" 80"
20
+ :item-class =" 'list-item-dynamic'"
22
21
/>
23
22
</div >
24
23
Original file line number Diff line number Diff line change 8
8
9
9
<div v-show =" isShowView" >
10
10
<virtual-list class =" list scroll-touch"
11
- :size =" 50"
12
- :keeps =" 30"
13
- :item-class =" 'list-item-fixed'"
14
-
15
11
:data-key =" 'id'"
16
12
:data-sources =" items"
17
13
:data-component =" itemComponent"
14
+
15
+ :estimate-size =" 50"
16
+ :item-class =" 'list-item-fixed'"
18
17
/>
19
18
</div >
20
19
Original file line number Diff line number Diff line change 8
8
9
9
<div v-show =" isShowView" >
10
10
<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
-
17
11
:data-key =" 'id'"
18
12
:data-sources =" items"
19
13
:data-component =" itemComponent"
14
+
15
+ :estimate-size =" 110"
16
+ :direction =" 'horizontal'"
17
+ :wrap-class =" 'wrapper'"
18
+ :item-class =" 'list-item-horizontal'"
20
19
/>
21
20
</div >
22
21
Original file line number Diff line number Diff line change 10
10
11
11
<div v-show =" isShowView" >
12
12
<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
-
19
13
:data-key =" 'id'"
20
14
:data-sources =" items"
21
15
:data-component =" itemComponent"
22
16
17
+ :estimate-size =" 70"
18
+ :item-class =" 'list-item-infinite'"
19
+ :footer-class =" 'loader-wrapper'"
23
20
v-on:totop =" onScrollToTop"
24
21
v-on:tobottom =" onScrollToBottom"
25
22
>
Original file line number Diff line number Diff line change 10
10
11
11
<div v-show =" isShowView" >
12
12
<virtual-list class =" list-keep scroll-touch"
13
- :size =" 60"
14
- :keeps =" 30"
15
- :item-class =" 'list-item-keep'"
16
-
17
13
:data-key =" 'id'"
18
14
:data-sources =" items"
19
15
:data-component =" itemComponent"
16
+
17
+ :estimate-size =" 60"
18
+ :item-class =" 'list-item-keep'"
20
19
/>
21
20
</div >
22
21
You can’t perform that action at this time.
0 commit comments