From b2e6a084c81c2bb549a18029acab024ebf064e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=E5=B1=8F=E5=B1=B1=E6=9C=80=E9=80=9F=E4=B8=8B?= =?UTF-8?q?=E5=B1=B1=E4=BC=A0=E8=AF=B4?= Date: Thu, 22 Feb 2024 13:57:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=20bubble=E4=B8=AD=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E6=8B=93=E5=B1=95popper=E7=9A=84=E9=A2=9D=E5=A4=96mod?= =?UTF-8?q?ifier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/base/combination/bubble.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/fineui/src/base/combination/bubble.js b/packages/fineui/src/base/combination/bubble.js index af3da3cef..79d06ebc5 100644 --- a/packages/fineui/src/base/combination/bubble.js +++ b/packages/fineui/src/base/combination/bubble.js @@ -72,6 +72,7 @@ export class Bubble extends Widget { popup: {}, comboClass: "bi-combo-popup", hoverClass: "bi-combo-hover", + extraModifiers: [] }); } @@ -410,7 +411,16 @@ export class Bubble extends Widget { } _popupView(e) { - const { adjustXOffset, showArrow, adjustYOffset, adjustLength, placement, hideWhenClickOutside, hideWhenBlur } = + const { + adjustXOffset, + showArrow, + adjustYOffset, + adjustLength, + placement, + hideWhenClickOutside, + hideWhenBlur, + extraModifiers + } = this.options; this._assertPopupViewRender(); this.fireEvent(Bubble.EVENT_BEFORE_POPUPVIEW); @@ -429,6 +439,7 @@ export class Bubble extends Widget { offset: () => [adjustXOffset, (showArrow ? 12 : 0) + (adjustYOffset + adjustLength)], }, }, + ...extraModifiers ]; if (this.options.showArrow) { modifiers.push({