Browse Source

KERNEL-11911 feat: label默认tooltip适配, 气泡不需要tooltip

es6
zsmj 2 years ago
parent
commit
0feb419e42
  1. 2
      src/core/controller/controller.bubbles.js
  2. 2
      src/core/controller/controller.tooltips.js

2
src/core/controller/controller.bubbles.js

@ -30,7 +30,7 @@ BI.BubblesController = BI.inherit(BI.Controller, {
if (!this.storeBubbles[name]) {
this.storeBubbles[name] = BI.createWidget({
type: "bi.label",
type: "bi.text",
cls: "bi-bubble" + " bubble-" + level,
text: text,
hgap: 5,

2
src/core/controller/controller.tooltips.js

@ -38,7 +38,7 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
});
this.showingTips = {};
if (!this.has(name)) {
this.create(name, tooltipOpt, opt.container || "body");
this.create(name, tooltipOpt, document.fullscreenElement ? context : (opt.container || "body"));
}
if (!opt.belowMouse) {
var offset = context.element.offset();

Loading…
Cancel
Save