Browse Source

feature: 小三角换一种实现

es6
guy 3 years ago
parent
commit
dbab202a20
  1. 4
      src/case/combo/bubblecombo/popup.bubble.js
  2. 6
      src/widget/multiselect/multiselect.popup.view.js
  3. 6
      src/widget/multiselect/multiselect.popup.view.nobar.js
  4. 4
      src/widget/multitree/multi.tree.popup.js
  5. 6
      src/widget/searchmultitextvaluecombo/multitextvalue.popup.view.search.js
  6. 8
      src/widget/singleselect/singleselect.popup.view.js

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

@ -158,8 +158,8 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
}; };
}, },
setDirection: function (direction, size) { setDirection: function (direction, position) {
this.popup.setDirection(direction, size); this.popup.setDirection(direction, position);
}, },
populate: function (v) { populate: function (v) {
this.text.setText(v || this.options.text); 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) { resetWidth: function (w) {
this.popupView.resetWidth(w); this.popupView.resetWidth(w);
} },
setDirection: function (direction, position) {
this.popupView.setDirection(direction, position);
},
}); });
BI.MultiSelectPopupView.EVENT_CHANGE = "EVENT_CHANGE"; 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) { resetWidth: function (w) {
this.popupView.resetWidth(w); this.popupView.resetWidth(w);
} },
setDirection: function (direction, position) {
this.popupView.setDirection(direction, position);
},
}); });
BI.MultiSelectNoBarPopupView.EVENT_CHANGE = "EVENT_CHANGE"; 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(); return this.tree.hasChecked();
}, },
setDirection: function (direction, position) {
this.popupView.setDirection(direction, position);
},
resetHeight: function (h) { resetHeight: function (h) {
this.popupView.resetHeight(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) { resetWidth: function (w) {
this.popupView.resetWidth(w); this.popupView.resetWidth(w);
} },
setDirection: function (direction, position) {
this.popupView.setDirection(direction, position);
},
}); });
BI.SearchMultiSelectPopupView.EVENT_CHANGE = "EVENT_CHANGE"; BI.SearchMultiSelectPopupView.EVENT_CHANGE = "EVENT_CHANGE";

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

@ -69,10 +69,14 @@ BI.SingleSelectPopupView = BI.inherit(BI.Widget, {
resetWidth: function (w) { resetWidth: function (w) {
this.popupView.resetWidth(w); this.popupView.resetWidth(w);
} },
setDirection: function (direction, position) {
this.popupView.setDirection(direction, position);
},
}); });
BI.SingleSelectPopupView.EVENT_CHANGE = "EVENT_CHANGE"; BI.SingleSelectPopupView.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.single_select_popup_view", BI.SingleSelectPopupView); BI.shortcut("bi.single_select_popup_view", BI.SingleSelectPopupView);

Loading…
Cancel
Save