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: "",
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