Browse Source

无jira fix:VirtualGroup

research/test
Treecat 1 year ago
parent
commit
608954dda7
  1. 6
      packages/fineui/src/base/combination/group.virtual.js

6
packages/fineui/src/base/combination/group.virtual.js

@ -56,7 +56,7 @@ export class VirtualGroup extends Widget {
_packageBtns(items) { _packageBtns(items) {
const o = this.options; const o = this.options;
const map = (this.buttonMap = {}); const btMap = (this.buttonMap = {});
const layouts = isArray(o.layouts) ? o.layouts : [o.layouts]; const layouts = isArray(o.layouts) ? o.layouts : [o.layouts];
for (let i = layouts.length - 1; i > 0; i--) { for (let i = layouts.length - 1; i > 0; i--) {
items = map(items, (k, it) => { items = map(items, (k, it) => {
@ -68,8 +68,8 @@ export class VirtualGroup extends Widget {
el: extend( el: extend(
{ {
ref: _ref => { ref: _ref => {
if (isKey(map[el.value])) { if (isKey(btMap[el.value])) {
map[el.value] = _ref; btMap[el.value] = _ref;
} }
}, },
}, },

Loading…
Cancel
Save