Browse Source

BI-49702 refactor: tooltip兼容

es6
windy 5 years ago
parent
commit
735ca3119c
  1. 6
      src/base/single/tip/tip.tooltip.js
  2. 3
      src/core/controller/controller.tooltips.js

6
src/base/single/tip/tip.tooltip.js

@ -17,8 +17,7 @@ BI.Tooltip = BI.inherit(BI.Tip, {
text: "",
level: "success", // success或warning
stopEvent: false,
stopPropagation: false,
height: 18
stopPropagation: false
});
},
_init: function () {
@ -62,8 +61,7 @@ BI.Tooltip = BI.inherit(BI.Tip, {
textAlign: "left",
whiteSpace: "normal",
text: o.text,
height: o.height,
textHeight: o.height - 2,
textHeight: 18,
hgap: this._const.hgap
});
}

3
src/core/controller/controller.tooltips.js

@ -26,8 +26,7 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
type: "bi.tooltip",
text: text,
level: level,
stopEvent: true,
height: this._const.height
stopEvent: true
});
},

Loading…
Cancel
Save