From 608954dda7a9e1f25026ee4841c2bf7c4f4b6c2d Mon Sep 17 00:00:00 2001 From: Treecat Date: Thu, 19 Oct 2023 14:09:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=20fix:VirtualGroup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/base/combination/group.virtual.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/fineui/src/base/combination/group.virtual.js b/packages/fineui/src/base/combination/group.virtual.js index 5b7cd7e32..b7e8ce938 100644 --- a/packages/fineui/src/base/combination/group.virtual.js +++ b/packages/fineui/src/base/combination/group.virtual.js @@ -56,7 +56,7 @@ export class VirtualGroup extends Widget { _packageBtns(items) { const o = this.options; - const map = (this.buttonMap = {}); + const btMap = (this.buttonMap = {}); const layouts = isArray(o.layouts) ? o.layouts : [o.layouts]; for (let i = layouts.length - 1; i > 0; i--) { items = map(items, (k, it) => { @@ -68,8 +68,8 @@ export class VirtualGroup extends Widget { el: extend( { ref: _ref => { - if (isKey(map[el.value])) { - map[el.value] = _ref; + if (isKey(btMap[el.value])) { + btMap[el.value] = _ref; } }, },