Browse Source

Merge pull request #44961 in DEC/fineui from master to feature/x

* commit '29765e6d13feec7fed506b8b49fdb43ee911d3a5':
  BI-105744 fix: 格式化
  BI-105744 fix: DownListCombo增加Combo的adjustWidth和adjustHeight方法
es6
superman 2 years ago
parent
commit
81ce8989c8
  1. 11
      src/widget/downlist/combo.downlist.js
  2. 6
      typescript/widget/downlist/combo.downlist.ts

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

@ -83,12 +83,21 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
setValue: function (v) {
this.popupview.setValue(v);
},
getValue: function () {
return this.popupview.getValue();
},
adjustWidth: function () {
this.downlistcombo.adjustWidth();
},
adjustHeight: function () {
this.downlistcombo.adjustHeight();
}
});
BI.DownListCombo.EVENT_CHANGE = "EVENT_CHANGE";
BI.DownListCombo.EVENT_SON_VALUE_CHANGE = "EVENT_SON_VALUE_CHANGE";
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_SON_VALUE_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string;
hideView: () => void;
showView: (e?: any) => void;
populate: (items?: any) => void;
adjustWidth: (e?: MouseEvent) => void;
adjustHeight: (e?: MouseEvent) => void;
}

Loading…
Cancel
Save