Browse Source

Merge branch 'master' of ssh://code.fineres.com:7999/~dailer/fineui

es6
zsmj 3 years ago
parent
commit
63fb2019fc
  1. 2
      package.json
  2. 11
      src/widget/downlist/combo.downlist.js
  3. 6
      typescript/widget/downlist/combo.downlist.ts

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "fineui", "name": "fineui",
"version": "2.0.20220519215357", "version": "2.0.20220522141545",
"description": "fineui", "description": "fineui",
"main": "dist/fineui.min.js", "main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts", "types": "dist/lib/index.d.ts",

11
src/widget/downlist/combo.downlist.js

@ -83,12 +83,21 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
setValue: function (v) { setValue: function (v) {
this.popupview.setValue(v); this.popupview.setValue(v);
}, },
getValue: function () { getValue: function () {
return this.popupview.getValue(); return this.popupview.getValue();
},
adjustWidth: function () {
this.downlistcombo.adjustWidth();
},
adjustHeight: function () {
this.downlistcombo.adjustHeight();
} }
}); });
BI.DownListCombo.EVENT_CHANGE = "EVENT_CHANGE"; BI.DownListCombo.EVENT_CHANGE = "EVENT_CHANGE";
BI.DownListCombo.EVENT_SON_VALUE_CHANGE = "EVENT_SON_VALUE_CHANGE"; BI.DownListCombo.EVENT_SON_VALUE_CHANGE = "EVENT_SON_VALUE_CHANGE";
BI.DownListCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; BI.DownListCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
BI.shortcut("bi.down_list_combo", BI.DownListCombo); BI.shortcut("bi.down_list_combo", BI.DownListCombo);

6
typescript/widget/downlist/combo.downlist.ts

@ -5,10 +5,14 @@ export declare class DownListCombo extends Widget {
static EVENT_CHANGE: string; static EVENT_CHANGE: string;
static EVENT_SON_VALUE_CHANGE: string; static EVENT_SON_VALUE_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string; static EVENT_BEFORE_POPUPVIEW: string;
hideView: () => void; hideView: () => void;
showView: (e?: any) => void; showView: (e?: any) => void;
populate: (items?: any) => void; populate: (items?: any) => void;
adjustWidth: (e?: MouseEvent) => void;
adjustHeight: (e?: MouseEvent) => void;
} }

Loading…
Cancel
Save