From b64fed301d8b60483109f9e04ae0e3efe99e889a Mon Sep 17 00:00:00 2001 From: chaos0156 <429018715@qq.com> Date: Mon, 22 Aug 2022 16:10:29 +0800 Subject: [PATCH 1/2] KERNEL-12408 fix:bug fix --- src/base/list/virtualgrouplist.js | 1 + src/base/list/virtuallist.js | 1 + src/base/single/input/file.js | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/base/list/virtualgrouplist.js b/src/base/list/virtualgrouplist.js index def972327..a1836ba94 100644 --- a/src/base/list/virtualgrouplist.js +++ b/src/base/list/virtualgrouplist.js @@ -102,6 +102,7 @@ BI.VirtualGroupList = BI.inherit(BI.Widget, { this.renderedIndex = cnt; cnt++; index += o.blockSize; + lastHeight = this.renderedIndex === -1 ? 0 : getElementHeight(); } }, diff --git a/src/base/list/virtuallist.js b/src/base/list/virtuallist.js index 89a79ed4f..2715008cb 100644 --- a/src/base/list/virtuallist.js +++ b/src/base/list/virtuallist.js @@ -85,6 +85,7 @@ BI.VirtualList = BI.inherit(BI.Widget, { this.renderedIndex = cnt; cnt++; index += o.blockSize; + lastHeight = getElementHeight(); } }, diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index 867756a7c..290970141 100644 --- a/src/base/single/input/file.js +++ b/src/base/single/input/file.js @@ -116,8 +116,7 @@ return; } - for (var - xhr = new XMLHttpRequest, + for (var xhr = new XMLHttpRequest, upload = xhr.upload || { addEventListener: function (event, callback) { this["on" + event] = callback; @@ -129,6 +128,7 @@ ) { upload.addEventListener( split[i].substring(2), + // eslint-disable-next-line no-loop-func (function (event) { return function (rpe) { if (isFunction(handler[event])) { From 2d14af6ac46f1852ae10b6f3ca4d5e374244029a Mon Sep 17 00:00:00 2001 From: data Date: Tue, 23 Aug 2022 10:21:04 +0800 Subject: [PATCH 2/2] auto upgrade version to 2.0.20220823102020 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 451d2e059..c768cdb74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fineui", - "version": "2.0.20220822193554", + "version": "2.0.20220823102020", "description": "fineui", "main": "dist/fineui_without_conflict.min.js", "types": "dist/lib/index.d.ts",