Browse Source

无JIRA任务 custom_tree支持hasNext

research/test
guy 1 year ago
parent
commit
697bc5bb23
  1. 4
      packages/fineui/src/base/list/virtualgrouplist.js

4
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;
}

Loading…
Cancel
Save