Browse Source

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

* commit '040a6bb0f7c8d75576e36d33471836950061b897':
  revert
  revert
  无JIRA任务 fix: 多行title只显示一部分
  feat: 测试删除
  feat: 提交
  trigger尝试
  初步试探下
es6
windy 6 years ago
parent
commit
d8fbf5e246
  1. 2
      src/base/single/tip/tip.js
  2. 8
      src/base/single/tip/tip.tooltip.js

2
src/base/single/tip/tip.js

@ -8,7 +8,7 @@
*/
BI.Tip = BI.inherit(BI.Single, {
_defaultConfig: function () {
var conf = BI.Link.superclass._defaultConfig.apply(this, arguments);
var conf = BI.Tip.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
_baseCls: (conf._baseCls || "") + " bi-tip",
zIndex: BI.zIndex_tip

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

@ -47,22 +47,22 @@ BI.Tooltip = BI.inherit(BI.Tip, {
hgap: this._const.hgap,
items: BI.map(texts, function (i, text) {
return {
type: "bi.label",
type: "bi.text",
textAlign: "left",
whiteSpace: "normal",
text: text,
textHeight: 18
height: 18
};
})
});
} else {
this.text = BI.createWidget({
type: "bi.label",
type: "bi.text",
element: this,
textAlign: "left",
whiteSpace: "normal",
text: o.text,
textHeight: 16,
height: 16,
hgap: this._const.hgap
});
}

Loading…
Cancel
Save