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