From 5010b716183892332c6a6f7094144f02d3c814ec Mon Sep 17 00:00:00 2001 From: Renzo Date: Wed, 22 Nov 2023 19:25:33 +0800 Subject: [PATCH] =?UTF-8?q?JSY-35201=20fix:=20=E4=BA=A4=E5=8F=89=E8=A1=A8?= =?UTF-8?q?=E6=80=A7=E8=83=BD=E9=97=AE=E9=A2=98=20-=20=E5=90=8C=20JSY-2213?= =?UTF-8?q?6=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/base/collection/collection.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/fineui/src/base/collection/collection.js b/packages/fineui/src/base/collection/collection.js index 2019bfa7a..9f933ed20 100644 --- a/packages/fineui/src/base/collection/collection.js +++ b/packages/fineui/src/base/collection/collection.js @@ -124,6 +124,12 @@ export class CollectionView extends Widget { this.element.scrollLeft(scrollLeft); } } + + destroyed() { + each(this.renderedCells, (i, cell) => { + cell.el._destroy(); + }); + } _calculateSizeAndPositionData() { const { items, cellSizeAndPositionGetter } = this.options;