Browse Source

Merge pull request #1070 in VISUAL/fineui from ~WINDY/fineui:master to master

* commit '735ca3119cef06dcabb99d9964de29cf9c4fef18':
  BI-49702 refactor: tooltip兼容
master
guy 5 years ago
parent
commit
7d1bf092c0
  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: "", text: "",
level: "success", // success或warning level: "success", // success或warning
stopEvent: false, stopEvent: false,
stopPropagation: false, stopPropagation: false
height: 18
}); });
}, },
_init: function () { _init: function () {
@ -62,8 +61,7 @@ BI.Tooltip = BI.inherit(BI.Tip, {
textAlign: "left", textAlign: "left",
whiteSpace: "normal", whiteSpace: "normal",
text: o.text, text: o.text,
height: o.height, textHeight: 18,
textHeight: o.height - 2,
hgap: this._const.hgap hgap: this._const.hgap
}); });
} }

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

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

Loading…
Cancel
Save