diff --git a/packages/fineui/src/base/list/virtualgrouplist.js b/packages/fineui/src/base/list/virtualgrouplist.js index 40bbaf9a5..e2e0d5ddf 100644 --- a/packages/fineui/src/base/list/virtualgrouplist.js +++ b/packages/fineui/src/base/list/virtualgrouplist.js @@ -1,4 +1,4 @@ -import { VerticalLayout, Layout, Widget, shortcut, extend, isFunction, isNumber, PrefixIntervalTree, ResizeDetector } from "@/core"; +import { VerticalLayout, Layout, Widget, shortcut, extend, isFunction, isNumber, sum, PrefixIntervalTree, ResizeDetector } from "@/core"; import { VirtualGroup } from "../combination"; /** @@ -201,7 +201,7 @@ export class VirtualGroupList extends Widget { const o = this.options; this.renderedIndex = -1; if (isFunction(o.rowHeight)) { - this.summaryHeight = BI.sum(o.items, o.rowHeight); + this.summaryHeight = sum(o.items, o.rowHeight); } else { this.summaryHeight = this._isAutoHeight() ? 0 : o.rowHeight * o.items.length; }