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

Loading…
Cancel
Save