diff --git a/package.json b/package.json index 34f88f719..8f89d32d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fineui", - "version": "2.0.20230418112647", + "version": "2.0.20230426103404", "description": "fineui", "main": "dist/fineui_without_conflict.min.js", "types": "dist/lib/index.d.ts", diff --git a/src/case/combo/textvaluecombo/combo.textvaluesmall.js b/src/case/combo/textvaluecombo/combo.textvaluesmall.js index 155b124ce..96678c736 100644 --- a/src/case/combo/textvaluecombo/combo.textvaluesmall.js +++ b/src/case/combo/textvaluecombo/combo.textvaluesmall.js @@ -28,6 +28,7 @@ BI.SmallTextValueCombo = BI.inherit(BI.Widget, { type: "bi.small_select_text_trigger", ...o.el }, + items: o.items, text: o.text, value: o.value, defaultText: o.defaultText, diff --git a/src/case/combo/textvaluecombo/popup.textvalue.js b/src/case/combo/textvaluecombo/popup.textvalue.js index aed1b0979..9d3e3d004 100644 --- a/src/case/combo/textvaluecombo/popup.textvalue.js +++ b/src/case/combo/textvaluecombo/popup.textvalue.js @@ -1,4 +1,4 @@ -BI.TextValueComboPopup = BI.inherit(BI.Pane, { +BI.TextValueComboPopup = BI.inherit(BI.Widget, { _defaultConfig: function () { return BI.extend(BI.TextValueComboPopup.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-text-icon-popup", @@ -15,17 +15,20 @@ BI.TextValueComboPopup = BI.inherit(BI.Pane, { vgap: 5, items: [ { - type: "bi.button_group", + type: "bi.list_pane", ref: (_ref) => { this.popup = _ref; }, items: this._formatItems(o.items), - chooseType: o.chooseType, - layouts: [ - { - type: "bi.vertical" - } - ], + el: { + type: "bi.button_group", + chooseType: o.chooseType, + layouts: [ + { + type: "bi.vertical" + } + ], + }, value: o.value, listeners: [ { @@ -131,12 +134,6 @@ BI.TextValueComboPopup = BI.inherit(BI.Pane, { }; }, - beforeMount: function () { - if (this.options.chooseType !== BI.ButtonGroup.CHOOSE_TYPE_MULTI) { - this.check(); - } - }, - _formatItems: function (items) { var o = this.options; return BI.map(items, function (i, item) { @@ -150,7 +147,6 @@ BI.TextValueComboPopup = BI.inherit(BI.Pane, { }, populate: function (items) { - BI.TextValueComboPopup.superclass.populate.apply(this, arguments); this.popup.populate(this._formatItems(items)); },