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) 2.0(2020-08)
- search_text_value_combo支持水印
- BI.makeObject 方法支持传入iteratee - BI.makeObject 方法支持传入iteratee
2.0(2020-07) 2.0(2020-07)

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

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

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

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

Loading…
Cancel
Save