Browse Source

Pull request #3669: 无jira fix:VirtualGroup

Merge in VISUAL/fineui from ~TREECAT/fineui:master to master

* commit '608954dda7a9e1f25026ee4841c2bf7c4f4b6c2d':
  无jira fix:VirtualGroup
research/test
treecat-罗群 1 year ago
parent
commit
5dcf550332
  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