Browse Source

KERNEL-14885 fix: virtualgrouplist 爆栈

es6
Treecat 2 years ago
parent
commit
8fcf49e00c
  1. 12
      packages/fineui/src/base/list/virtualgrouplist.js

12
packages/fineui/src/base/list/virtualgrouplist.js

@ -38,15 +38,15 @@ export class VirtualGroupList extends Widget {
items: [ items: [
{ {
type: Layout.xtype, type: Layout.xtype,
ref: () => { ref: (ref) => {
this.topBlank = this; this.topBlank = ref;
}, },
}, },
{ {
type: VirtualGroup.xtype, type: VirtualGroup.xtype,
height: rowHeight * items.length, height: rowHeight * items.length,
ref: () => { ref: (ref) => {
this.container = this; this.container = ref;
}, },
layouts: [ layouts: [
extend( extend(
@ -60,8 +60,8 @@ export class VirtualGroupList extends Widget {
}, },
{ {
type: Layout.xtype, type: Layout.xtype,
ref: () => { ref: (ref) => {
this.bottomBlank = this; this.bottomBlank = ref;
}, },
} }
], ],

Loading…
Cancel
Save