Browse Source

Pull request #3120: 无JIRA fix: text_value_combo_popup 兼容性

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit 'c8987ddf8fdffde039f4df173620ab049b553d4d':
  无JIRA fix: text_value_combo_popup 兼容性
es6
Dailer-刘荣歆 2 years ago
parent
commit
6d4816e263
  1. 8
      src/case/combo/textvaluecombo/popup.textvalue.js

8
src/case/combo/textvaluecombo/popup.textvalue.js

@ -8,7 +8,7 @@ BI.TextValueComboPopup = BI.inherit(BI.Pane, {
render () {
var o = this.options, self = this;
if (o.chooseType === BI.ButtonGroup.CHOOSE_TYPE_SINGLE) {
if (o.chooseType !== BI.ButtonGroup.CHOOSE_TYPE_MULTI) {
return {
type: "bi.vertical",
vgap: 5,
@ -99,7 +99,7 @@ BI.TextValueComboPopup = BI.inherit(BI.Pane, {
var o = this.options;
return BI.map(items, function (i, item) {
return BI.extend({
type: o.chooseType === BI.ButtonGroup.CHOOSE_TYPE_SINGLE ? "bi.single_select_item" : "bi.multi_select_item",
type: o.chooseType !== BI.ButtonGroup.CHOOSE_TYPE_MULTI ? "bi.single_select_item" : "bi.multi_select_item",
iconWrapperWidth: 36,
textAlign: o.textAlign,
title: item.title || item.text
@ -113,7 +113,7 @@ BI.TextValueComboPopup = BI.inherit(BI.Pane, {
},
getValue: function () {
if (this.options.chooseType === BI.ButtonGroup.CHOOSE_TYPE_SINGLE) {
if (this.options.chooseType !== BI.ButtonGroup.CHOOSE_TYPE_MULTI) {
return this.popup.getValue();
}
var val = this.popup.getValue();
@ -125,7 +125,7 @@ BI.TextValueComboPopup = BI.inherit(BI.Pane, {
},
setValue: function (v) {
if (this.options.chooseType === BI.ButtonGroup.CHOOSE_TYPE_SINGLE) {
if (this.options.chooseType !== BI.ButtonGroup.CHOOSE_TYPE_MULTI) {
return this.popup.setValue(v);
}
this.popup.setValue({

Loading…
Cancel
Save