Wilson Zhang 2 years ago
parent
commit
36450972c7
  1. 2
      package.json
  2. 1
      src/base/list/virtualgrouplist.js
  3. 1
      src/base/list/virtuallist.js
  4. 4
      src/base/single/input/file.js

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "fineui", "name": "fineui",
"version": "2.0.20220822193554", "version": "2.0.20220823102020",
"description": "fineui", "description": "fineui",
"main": "dist/fineui_without_conflict.min.js", "main": "dist/fineui_without_conflict.min.js",
"types": "dist/lib/index.d.ts", "types": "dist/lib/index.d.ts",

1
src/base/list/virtualgrouplist.js

@ -102,6 +102,7 @@ BI.VirtualGroupList = BI.inherit(BI.Widget, {
this.renderedIndex = cnt; this.renderedIndex = cnt;
cnt++; cnt++;
index += o.blockSize; index += o.blockSize;
lastHeight = this.renderedIndex === -1 ? 0 : getElementHeight();
} }
}, },

1
src/base/list/virtuallist.js

@ -85,6 +85,7 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.renderedIndex = cnt; this.renderedIndex = cnt;
cnt++; cnt++;
index += o.blockSize; index += o.blockSize;
lastHeight = getElementHeight();
} }
}, },

4
src/base/single/input/file.js

@ -116,8 +116,7 @@
return; return;
} }
for (var for (var xhr = new XMLHttpRequest,
xhr = new XMLHttpRequest,
upload = xhr.upload || { upload = xhr.upload || {
addEventListener: function (event, callback) { addEventListener: function (event, callback) {
this["on" + event] = callback; this["on" + event] = callback;
@ -129,6 +128,7 @@
) { ) {
upload.addEventListener( upload.addEventListener(
split[i].substring(2), split[i].substring(2),
// eslint-disable-next-line no-loop-func
(function (event) { (function (event) {
return function (rpe) { return function (rpe) {
if (isFunction(handler[event])) { if (isFunction(handler[event])) {

Loading…
Cancel
Save