Browse Source

Merge pull request #250681 in DEC/fineui from master to feature/x

* commit '5dcf550332ed7f70d42b332c88b967aaef0cbc32':
  无jira fix:VirtualGroup
research/test
superman 1 year ago
parent
commit
ced49ba556
  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