Skip to content

Commit 2ef187e

Browse files
committed
Build docs
1 parent 9937db0 commit 2ef187e

14 files changed

+51
-12
lines changed

docs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><title>vue-virtual-scroll-list</title><link rel=icon href=favicon.png><link rel=stylesheet href=milligram.css><link rel=stylesheet href=highlight/theme.css><script src=highlight/pack.js></script><script async defer src=https://buttons.github.io/buttons.js></script><script>hljs.initHighlightingOnLoad()</script><link href=css/chat-room.9f37805a.css rel=prefetch><link href=css/dynamic-size.9013d8ce.css rel=prefetch><link href=css/fixed-size.840ec49f.css rel=prefetch><link href=css/horizontal.50e26ffa.css rel=prefetch><link href=css/infinite-loading.4b238c18.css rel=prefetch><link href=css/keep-state.2736386a.css rel=prefetch><link href=css/page-mode.bb1117ff.css rel=prefetch><link href=js/chat-room.293cb696.js rel=prefetch><link href=js/chat-room~dynamic-size~fixed-size~horizontal~infinite-loading~keep-state~page-mode.fea2e070.js rel=prefetch><link href=js/dynamic-size.38f9b467.js rel=prefetch><link href=js/fixed-size.af3dc16f.js rel=prefetch><link href=js/horizontal.a6f67d15.js rel=prefetch><link href=js/infinite-loading.82786358.js rel=prefetch><link href=js/keep-state.164d2236.js rel=prefetch><link href=js/page-mode.b72db67b.js rel=prefetch><link href=css/app.12df65ee.css rel=preload as=style><link href=js/app.cabfcb47.js rel=preload as=script><link href=js/chunk-vendors.cb54c5d1.js rel=preload as=script><link href=css/app.12df65ee.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.cb54c5d1.js></script><script src=js/app.cabfcb47.js></script></body></html>
1+
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><title>vue-virtual-scroll-list</title><link rel=icon href=favicon.png><link rel=stylesheet href=milligram.css><link rel=stylesheet href=highlight/theme.css><script src=highlight/pack.js></script><script async defer src=https://buttons.github.io/buttons.js></script><script>hljs.initHighlightingOnLoad()</script><link href=css/chat-room.9f37805a.css rel=prefetch><link href=css/dynamic-size.9013d8ce.css rel=prefetch><link href=css/fixed-size.840ec49f.css rel=prefetch><link href=css/horizontal.50e26ffa.css rel=prefetch><link href=css/infinite-loading.4b238c18.css rel=prefetch><link href=css/keep-state.2736386a.css rel=prefetch><link href=css/page-mode.bb1117ff.css rel=prefetch><link href=js/chat-room.c08970e6.js rel=prefetch><link href=js/chat-room~dynamic-size~fixed-size~horizontal~infinite-loading~keep-state~page-mode.1968e4ed.js rel=prefetch><link href=js/dynamic-size.3003e8a2.js rel=prefetch><link href=js/fixed-size.1b9763e9.js rel=prefetch><link href=js/horizontal.ad2c5dae.js rel=prefetch><link href=js/infinite-loading.ce8d4372.js rel=prefetch><link href=js/keep-state.08df8235.js rel=prefetch><link href=js/page-mode.7fc3339d.js rel=prefetch><link href=css/app.12df65ee.css rel=preload as=style><link href=js/app.84b61d88.js rel=preload as=script><link href=js/chunk-vendors.20b38b0e.js rel=preload as=script><link href=css/app.12df65ee.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.20b38b0e.js></script><script src=js/app.84b61d88.js></script></body></html>

docs/index.js

+42-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-virtual-scroll-list v2.3.1
2+
* vue-virtual-scroll-list v2.3.2
33
* open source under the MIT license
44
* https://github.com/tangbc/vue-virtual-scroll-list#readme
55
*/
@@ -34,6 +34,39 @@
3434
return Constructor;
3535
}
3636

37+
function _toConsumableArray(arr) {
38+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
39+
}
40+
41+
function _arrayWithoutHoles(arr) {
42+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
43+
}
44+
45+
function _iterableToArray(iter) {
46+
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
47+
}
48+
49+
function _unsupportedIterableToArray(o, minLen) {
50+
if (!o) return;
51+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
52+
var n = Object.prototype.toString.call(o).slice(8, -1);
53+
if (n === "Object" && o.constructor) n = o.constructor.name;
54+
if (n === "Map" || n === "Set") return Array.from(n);
55+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
56+
}
57+
58+
function _arrayLikeToArray(arr, len) {
59+
if (len == null || len > arr.length) len = arr.length;
60+
61+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
62+
63+
return arr2;
64+
}
65+
66+
function _nonIterableSpread() {
67+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
68+
}
69+
3770
/**
3871
* virtual list core calculating center
3972
*/
@@ -153,7 +186,9 @@
153186

154187
if (this.calcType !== CALC_TYPE.FIXED && typeof this.firstRangeTotalSize !== 'undefined') {
155188
if (this.sizes.size < Math.min(this.param.keeps, this.param.uniqueIds.length)) {
156-
this.firstRangeTotalSize = this.firstRangeTotalSize + size;
189+
this.firstRangeTotalSize = _toConsumableArray(this.sizes.values()).reduce(function (acc, val) {
190+
return acc + val;
191+
}, 0);
157192
this.firstRangeAverageSize = Math.round(this.firstRangeTotalSize / this.sizes.size);
158193
} else {
159194
// it's done using
@@ -190,6 +225,10 @@
190225
this.direction = offset < this.offset ? DIRECTION_TYPE.FRONT : DIRECTION_TYPE.BEHIND;
191226
this.offset = offset;
192227

228+
if (!this.param) {
229+
return;
230+
}
231+
193232
if (this.direction === DIRECTION_TYPE.FRONT) {
194233
this.handleFront();
195234
} else if (this.direction === DIRECTION_TYPE.BEHIND) {
@@ -202,7 +241,7 @@
202241
value: function handleFront() {
203242
var overs = this.getScrollOvers(); // should not change range if start doesn't exceed overs
204243

205-
if (overs > this.range.start || !this.param) {
244+
if (overs > this.range.start) {
206245
return;
207246
} // move up start by a buffer length, and make sure its safety
208247

docs/js/app.84b61d88.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js/app.cabfcb47.js

-1
This file was deleted.

docs/js/chat-room.293cb696.js

-1
This file was deleted.

0 commit comments

Comments
 (0)