Browse Source

Pull request #2453: feature: 小三角换一种实现

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

* commit '6a510524e63a1eaecc67fac25873ff6e87f9dd36':
  feature: 小三角换一种实现
  feature: 小三角换一种实现
es6
guy 3 years ago
parent
commit
cdd54e9663
  1. 2
      src/base/combination/combo.js
  2. 4
      src/case/combo/bubblecombo/popup.bubble.js
  3. 6
      src/widget/multiselect/multiselect.popup.view.js
  4. 6
      src/widget/multiselect/multiselect.popup.view.nobar.js
  5. 4
      src/widget/multitree/multi.tree.popup.js
  6. 6
      src/widget/searchmultitextvaluecombo/multitextvalue.popup.view.search.js
  7. 6
      src/widget/singleselect/singleselect.popup.view.js

2
src/base/combination/combo.js

@ -282,7 +282,7 @@
}
var width = this.combo.element.outerWidth();
var height = this.combo.element.outerHeight();
this.popupView.setDirection(p.dir, {
this.popupView.setDirection && this.popupView.setDirection(p.dir, {
width: width,
height: height,
offsetStyle: o.offsetStyle,

4
src/case/combo/bubblecombo/popup.bubble.js

@ -158,8 +158,8 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
};
},
setDirection: function (direction, size) {
this.popup.setDirection(direction, size);
setDirection: function (direction, position) {
this.popup.setDirection(direction, position);
},
populate: function (v) {
this.text.setText(v || this.options.text);

6
src/widget/multiselect/multiselect.popup.view.js

@ -84,7 +84,11 @@ BI.MultiSelectPopupView = BI.inherit(BI.Widget, {
resetWidth: function (w) {
this.popupView.resetWidth(w);
}
},
setDirection: function (direction, position) {
this.popupView.setDirection(direction, position);
},
});
BI.MultiSelectPopupView.EVENT_CHANGE = "EVENT_CHANGE";

6
src/widget/multiselect/multiselect.popup.view.nobar.js

@ -80,7 +80,11 @@ BI.MultiSelectNoBarPopupView = BI.inherit(BI.Widget, {
resetWidth: function (w) {
this.popupView.resetWidth(w);
}
},
setDirection: function (direction, position) {
this.popupView.setDirection(direction, position);
},
});
BI.MultiSelectNoBarPopupView.EVENT_CHANGE = "EVENT_CHANGE";

4
src/widget/multitree/multi.tree.popup.js

@ -84,6 +84,10 @@ BI.MultiTreePopup = BI.inherit(BI.Pane, {
return this.tree.hasChecked();
},
setDirection: function (direction, position) {
this.popupView.setDirection(direction, position);
},
resetHeight: function (h) {
this.popupView.resetHeight(h);
},

6
src/widget/searchmultitextvaluecombo/multitextvalue.popup.view.search.js

@ -77,7 +77,11 @@ BI.SearchMultiSelectPopupView = BI.inherit(BI.Widget, {
resetWidth: function (w) {
this.popupView.resetWidth(w);
}
},
setDirection: function (direction, position) {
this.popupView.setDirection(direction, position);
},
});
BI.SearchMultiSelectPopupView.EVENT_CHANGE = "EVENT_CHANGE";

6
src/widget/singleselect/singleselect.popup.view.js

@ -69,7 +69,11 @@ BI.SingleSelectPopupView = BI.inherit(BI.Widget, {
resetWidth: function (w) {
this.popupView.resetWidth(w);
}
},
setDirection: function (direction, position) {
this.popupView.setDirection(direction, position);
},
});
BI.SingleSelectPopupView.EVENT_CHANGE = "EVENT_CHANGE";

Loading…
Cancel
Save