Browse Source

无JIRA任务 可搜索的单选下拉框支持水印

es6
windy 4 years ago
parent
commit
9433d24ef2
  1. 1
      changelog.md
  2. 1
      src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js
  3. 10
      src/case/combo/searchtextvaluecombo/trigger.searchtextvalue.js

1
changelog.md

@ -1,5 +1,6 @@
# 更新日志
2.0(2020-08)
- search_text_value_combo支持水印
- BI.makeObject 方法支持传入iteratee
2.0(2020-07)

1
src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js

@ -31,6 +31,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
el: {
type: "bi.search_text_value_trigger",
cls: "search-text-value-trigger",
watermark: o.watermark,
ref: function () {
self.trigger = this;
},

10
src/case/combo/searchtextvaluecombo/trigger.searchtextvalue.js

@ -3,9 +3,12 @@
*/
BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
props: {
extraCls: "bi-search-text-value-trigger bi-border",
height: 24
props: function () {
return {
extraCls: "bi-search-text-value-trigger bi-border",
height: 24,
watermark: BI.i18nText("BI-Basic_Search")
};
},
render: function () {
@ -25,6 +28,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.editor = this;
},
watermark: o.watermark,
defaultText: o.text,
text: this._digest(o.value, o.items),
value: o.value,

Loading…
Cancel
Save