Browse Source

Pull request #2719: BI-105744 fix: DownListCombo增加Combo的adjustWidth和adjustHeight方法

Merge in VISUAL/fineui from ~OLIVER.KE/fineui:master to master

* commit '67cbd9cb48e01011f8294ce55934b14f1dc29372':
  BI-105744 fix: 格式化
  BI-105744 fix: DownListCombo增加Combo的adjustWidth和adjustHeight方法
es6
Oliver.Ke 3 years ago
parent
commit
29765e6d13
  1. 9
      src/widget/downlist/combo.downlist.js
  2. 4
      typescript/widget/downlist/combo.downlist.ts

9
src/widget/downlist/combo.downlist.js

@ -83,8 +83,17 @@ 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";

4
typescript/widget/downlist/combo.downlist.ts

@ -11,4 +11,8 @@ export declare class DownListCombo extends Widget {
showView: (e?: any) => void;
populate: (items?: any) => void;
adjustWidth: (e?: MouseEvent) => void;
adjustHeight: (e?: MouseEvent) => void;
}

Loading…
Cancel
Save