Browse Source

feat: 增加getTextot

master
iapyang 3 years ago
parent
commit
8df30babdc
  1. 4
      src/case/trigger/trigger.text.js
  2. 4
      src/case/trigger/trigger.text.select.js
  3. 2
      src/widget/multilayerselecttree/multilayerselecttree.combo.js
  4. 2
      src/widget/multilayersingletree/multilayersingletree.combo.js
  5. 4
      src/widget/singletree/singletree.trigger.js

4
src/case/trigger/trigger.text.js

@ -55,6 +55,10 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
});
},
getTextor: function() {
return this.text;
},
setTextCls: function(cls) {
var o = this.options;
var oldCls = o.textCls;

4
src/case/trigger/trigger.text.select.js

@ -64,6 +64,10 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
this.trigger.setTipType(v);
},
getTextor: function() {
return this.trigger.getTextor();
},
populate: function (items) {
this.options.items = items;
}

2
src/widget/multilayerselecttree/multilayerselecttree.combo.js

@ -230,7 +230,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
},
getSearcher: function () {
return this.trigger ? this.trigger.getSearcher() : this.textTrigger;
return this.trigger ? this.trigger.getSearcher() : this.textTrigger.getTextor();
},
populate: function (items) {

2
src/widget/multilayersingletree/multilayersingletree.combo.js

@ -224,7 +224,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
},
getSearcher: function () {
return this.trigger ? this.trigger.getSearcher() : this.textTrigger;
return this.trigger ? this.trigger.getSearcher() : this.textTrigger.getTextor();
},
setValue: function (v) {

4
src/widget/singletree/singletree.trigger.js

@ -51,8 +51,8 @@ BI.SingleTreeTrigger = BI.inherit(BI.Trigger, {
return this.options.value || [];
},
getLabel: function () {
return this.trigger.getLabel();
getTextor: function() {
return this.trigger.getTextor();
},
populate: function (items) {

Loading…
Cancel
Save