|
|
@ -53548,7 +53548,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
items: o.items, |
|
|
|
items: o.items, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value |
|
|
|
value: o.value, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.popup = BI.createWidget({ |
|
|
|
this.popup = BI.createWidget({ |
|
|
|
type: "bi.text_value_combo_popup", |
|
|
|
type: "bi.text_value_combo_popup", |
|
|
@ -53587,8 +53588,10 @@ BI.TextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
return BI.contains(v, item.value); |
|
|
|
return BI.contains(v, item.value); |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (BI.isNull(result)) { |
|
|
|
if (BI.isNull(result)) { |
|
|
|
|
|
|
|
this.trigger.setTipType("warning"); |
|
|
|
this.element.removeClass("combo-error").addClass("combo-error"); |
|
|
|
this.element.removeClass("combo-error").addClass("combo-error"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
this.trigger.setTipType("success"); |
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -53611,7 +53614,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.TextValueCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.TextValueCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.shortcut("bi.text_value_combo", BI.TextValueCombo);/** |
|
|
|
BI.shortcut("bi.text_value_combo", BI.TextValueCombo); |
|
|
|
|
|
|
|
/** |
|
|
|
* @class BI.SmallTextValueCombo |
|
|
|
* @class BI.SmallTextValueCombo |
|
|
|
* @extend BI.Widget |
|
|
|
* @extend BI.Widget |
|
|
|
* combo : text + icon, popup : text |
|
|
|
* combo : text + icon, popup : text |
|
|
@ -57892,6 +57896,8 @@ BI.TextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
title: function () { |
|
|
|
title: function () { |
|
|
|
return self.text.getText(); |
|
|
|
return self.text.getText(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
tipType: o.tipType, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle, |
|
|
|
hgap: c.hgap, |
|
|
|
hgap: c.hgap, |
|
|
|
readonly: o.readonly |
|
|
|
readonly: o.readonly |
|
|
|
}); |
|
|
|
}); |
|
|
@ -57916,9 +57922,14 @@ BI.TextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
|
|
|
|
|
|
|
|
setText: function (text) { |
|
|
|
setText: function (text) { |
|
|
|
this.text.setText(text); |
|
|
|
this.text.setText(text); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTipType: function (v) { |
|
|
|
|
|
|
|
this.text.options.tipType = v; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.shortcut("bi.text_trigger", BI.TextTrigger);/** |
|
|
|
BI.shortcut("bi.text_trigger", BI.TextTrigger); |
|
|
|
|
|
|
|
/** |
|
|
|
* 选择字段trigger |
|
|
|
* 选择字段trigger |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2015/9/15. |
|
|
|
* Created by GUY on 2015/9/15. |
|
|
@ -57943,7 +57954,9 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
readonly: o.readonly, |
|
|
|
readonly: o.readonly, |
|
|
|
text: this._digest(o.value, o.items) |
|
|
|
text: this._digest(o.value, o.items), |
|
|
|
|
|
|
|
tipType: o.tipType, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -57969,11 +57982,16 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
this.trigger.setText(this._digest(vals, this.options.items)); |
|
|
|
this.trigger.setText(this._digest(vals, this.options.items)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTipType: function (v) { |
|
|
|
|
|
|
|
this.trigger.setTipType(v); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
|
this.options.items = items; |
|
|
|
this.options.items = items; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);/** |
|
|
|
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger); |
|
|
|
|
|
|
|
/** |
|
|
|
* 选择字段trigger小一号的 |
|
|
|
* 选择字段trigger小一号的 |
|
|
|
* |
|
|
|
* |
|
|
|
* @class BI.SmallSelectTextTrigger |
|
|
|
* @class BI.SmallSelectTextTrigger |
|
|
|