Browse Source

Pull request #2529: BI-95364 fix:trigger.text的title不传给内部的label

Merge in VISUAL/fineui from ~CLAIRE.TANG/fineui:master to master

* commit 'ab9eb454117f179b01bdcac7a03f4bf3220024f0':
  BI-95364 fix:trigger.text的title不传给内部的label
  BI-95364 fix:trigger.text传入title
es6
Claire.Tang 3 years ago
parent
commit
614af50cf7
  1. 9
      src/case/trigger/trigger.text.js

9
src/case/trigger/trigger.text.js

@ -11,11 +11,15 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
},
_defaultConfig: function () {
var self = this;
var conf = BI.TextTrigger.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-text-trigger",
height: 24,
textCls: ""
textCls: "",
title: function () {
return self.text.getText();
}
});
},
@ -28,9 +32,6 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
textAlign: "left",
height: o.height,
text: o.text,
title: function () {
return self.text.getText();
},
tipType: o.tipType,
warningTitle: o.warningTitle,
hgap: c.hgap,

Loading…
Cancel
Save