Browse Source

无JIRA任务 更新提交

es6
windy 5 years ago
parent
commit
8e5bc7b3d0
  1. 2
      src/widget/date/calendar/picker.date.js
  2. 3
      src/widget/multiselect/multiselect.combo.js
  3. 2
      src/widget/multiselect/search/multiselect.search.insert.pane.js
  4. 2
      src/widget/multiselect/search/multiselect.search.pane.js
  5. 2
      src/widget/singleselect/search/singleselect.search.pane.insert.js
  6. 2
      src/widget/singleselect/search/singleselect.search.pane.js

2
src/widget/date/calendar/picker.date.js

@ -172,10 +172,12 @@ BI.DatePicker = BI.inherit(BI.Widget, {
},
setMinDate: function (minDate) {
this.options.min = minDate;
this.year.setMinDate(minDate);
},
setMaxDate: function (maxDate) {
this.options.max = maxDate;
this.year.setMaxDate(maxDate);
},

3
src/widget/multiselect/multiselect.combo.js

@ -14,7 +14,8 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
attributes: {
tabIndex: 0
},
allowEdit: true
allowEdit: true,
allowBlankAdd: true
});
},

2
src/widget/multiselect/search/multiselect.search.insert.pane.js

@ -78,7 +78,7 @@ BI.MultiSelectSearchInsertPane = BI.inherit(BI.Widget, {
setKeyword: function (keyword) {
var o = this.options;
var hasSameValue = BI.some(this.loader.getAllButtons(), function (idx, btn) {
return keyword === (o.valueFormatter(btn.getValue()) || btn.getValue());
return keyword === btn.getValue();
});
var isMatchTipVisible = this.loader.getAllButtons().length > 0 && hasSameValue;
this.tooltipClick.setVisible(isMatchTipVisible);

2
src/widget/multiselect/search/multiselect.search.pane.js

@ -65,7 +65,7 @@ BI.MultiSelectSearchPane = BI.inherit(BI.Widget, {
setKeyword: function (keyword) {
var btn, o = this.options;
var isVisible = this.loader.getAllButtons().length > 0 && (btn = this.loader.getAllButtons()[0]) && (keyword === (o.valueFormatter(btn.getValue()) || btn.getValue()));
var isVisible = this.loader.getAllButtons().length > 0 && (btn = this.loader.getAllButtons()[0]) && keyword === btn.getValue();
if (isVisible !== this.tooltipClick.isVisible()) {
this.tooltipClick.setVisible(isVisible);
this.resizer.attr("items")[0].height = (isVisible ? this.constants.height : 0);

2
src/widget/singleselect/search/singleselect.search.pane.insert.js

@ -80,7 +80,7 @@ BI.SingleSelectSearchInsertPane = BI.inherit(BI.Widget, {
setKeyword: function (keyword) {
var o = this.options;
var hasSameValue = BI.some(this.loader.getAllButtons(), function (idx, btn) {
return keyword === (o.valueFormatter(btn.getValue()) || btn.getValue());
return keyword === btn.getValue();
});
var isMatchTipVisible = this.loader.getAllButtons().length > 0 && hasSameValue;
this.tooltipClick.setVisible(isMatchTipVisible);

2
src/widget/singleselect/search/singleselect.search.pane.js

@ -67,7 +67,7 @@ BI.SingleSelectSearchPane = BI.inherit(BI.Widget, {
setKeyword: function (keyword) {
var btn, o = this.options;
var isVisible = this.loader.getAllButtons().length > 0 && (btn = this.loader.getAllButtons()[0]) && (keyword === (o.valueFormatter(btn.getValue()) || btn.getValue()));
var isVisible = this.loader.getAllButtons().length > 0 && (btn = this.loader.getAllButtons()[0]) && keyword === btn.getValue();
if (isVisible !== this.tooltipClick.isVisible()) {
this.tooltipClick.setVisible(isVisible);
this.resizer.attr("items")[0].height = (isVisible ? this.constants.height : 0);

Loading…
Cancel
Save