Browse Source

Merge pull request #265123 in DEC/fineui from release/11.0 to bugfix/11.0

* commit '3b6cad43a60a1fe236fa12ff94959c4d1362ed11':
  无JIRA bubble中提供拓展popper的额外modifier
research/test
superman 9 months ago
parent
commit
ccce108fa6
  1. 13
      packages/fineui/src/base/combination/bubble.js

13
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({

Loading…
Cancel
Save