Browse Source

Merge pull request #1236 in VISUAL/fineui from ~FRANK.QIU/fineui:master to master

* commit '160182014214d43d4e9f5f269b0300a3b3796be2':
  DEC-11632  feat: toast销毁时支持回调
es6
Frank.Qiu 5 years ago
parent
commit
f276f0df36
  1. 85
      dist/2.0/fineui.ie.js
  2. 2
      dist/2.0/fineui.ie.js.map
  3. 52
      dist/2.0/fineui.ie.min.js
  4. 2
      dist/2.0/fineui.ie.min.js.map
  5. 83
      dist/2.0/fineui.js
  6. 2
      dist/2.0/fineui.js.map
  7. 66
      dist/2.0/fineui.min.js
  8. 2
      dist/2.0/fineui.min.js.map
  9. 7
      dist/base.js
  10. 2
      dist/base.js.map
  11. 85
      dist/bundle.ie.js
  12. 2
      dist/bundle.ie.js.map
  13. 52
      dist/bundle.ie.min.js
  14. 2
      dist/bundle.ie.min.js.map
  15. 83
      dist/bundle.js
  16. 2
      dist/bundle.js.map
  17. 66
      dist/bundle.min.js
  18. 2
      dist/bundle.min.js.map
  19. 3
      dist/core.js
  20. 2
      dist/core.js.map
  21. 85
      dist/fineui.ie.js
  22. 2
      dist/fineui.ie.js.map
  23. 98
      dist/fineui.ie.min.js
  24. 2
      dist/fineui.ie.min.js.map
  25. 83
      dist/fineui.js
  26. 2
      dist/fineui.js.map
  27. 66
      dist/fineui.min.js
  28. 2
      dist/fineui.min.js.map
  29. 83
      dist/fineui_without_jquery_polyfill.js
  30. 2
      dist/fineui_without_jquery_polyfill.js.map
  31. 2
      dist/ie.fineui.js
  32. 2
      dist/ie.fineui.js.map
  33. 2
      dist/utils.js.map
  34. 8
      dist/utils.min.js
  35. 2
      dist/utils.min.js.map
  36. 73
      dist/widget.js
  37. 2
      dist/widget.js.map
  38. 2
      src/base/foundation/message.js

85
dist/2.0/fineui.ie.js vendored

@ -11564,6 +11564,7 @@ if (!_global.BI) {
_purgeRef: function () {
if (this.options.ref) {
this.options.ref.call(null);
this.options.ref = null;
}
},
@ -12113,6 +12114,7 @@ if (!_global.BI) {
__d: function () {
this.beforeDestroy && this.beforeDestroy();
this.beforeDestroy = null;
BI.each(this._children, function (i, widget) {
widget && widget._unMount && widget._unMount();
});
@ -12120,6 +12122,7 @@ if (!_global.BI) {
this._parent = null;
this._isMounted = false;
this.destroyed && this.destroyed();
this.destroyed = null;
},
_unMount: function () {
@ -41855,6 +41858,7 @@ BI.Combo = BI.inherit(BI.Widget, {
.unbind("mousemove." + this.getName())
.unbind("mouseleave." + this.getName());
BI.Resizers.remove(this.getName());
this.popupView && this.popupView._destroy();
}
});
BI.Combo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE";
@ -43365,10 +43369,6 @@ BI.Switcher = BI.inherit(BI.Widget, {
empty: function () {
this.popupView && this.popupView.empty();
},
destroy: function () {
BI.Switcher.superclass.destroy.apply(this, arguments);
}
});
BI.Switcher.EVENT_EXPAND = "EVENT_EXPAND";
@ -43602,6 +43602,7 @@ BI.Msg = function () {
context = context || BI.Widget._renderEngine.createElement("body");
var level = options.level || "normal";
var autoClose = BI.isNull(options.autoClose) ? true : options.autoClose;
var callback = BI.isFunction(options.callback) ? options.callback : BI.emptyFn;
var toast = BI.createWidget({
type: "bi.toast",
cls: "bi-message-animate bi-message-leave",
@ -43617,6 +43618,7 @@ BI.Msg = function () {
element.css({"top": _height});
_height += element.outerHeight() + 10;
});
callback();
}
}]
});
@ -63551,8 +63553,7 @@ BI.StaticDateTimePaneCard = BI.inherit(BI.Widget, {
}
self.selectedTime = BI.extend(self.selectedTime, {
year: value.year,
month: value.month,
day: day
month: value.month
});
day !== 0 && (self.selectedTime.day = day);
self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
@ -67985,20 +67986,21 @@ BI.IntervalSlider = BI.inherit(BI.Single, {
},
populate: function () {
var o = this.options;
if (!isNaN(this.min) && !isNaN(this.max)) {
this.enable = true;
this._setVisible(true);
this._setErrorText();
if ((BI.isNumeric(this.valueOne) || BI.isNotEmptyString(this.valueOne)) && (BI.isNumeric(this.valueTwo) || BI.isNotEmptyString(this.valueTwo))) {
this.labelOne.setValue(this.valueOne);
this.labelTwo.setValue(this.valueTwo);
this.labelOne.setValue(o.digit === false ? this.valueOne : BI.parseFloat(this.valueOne).toFixed(o.digit));
this.labelTwo.setValue(o.digit === false ? this.valueTwo : BI.parseFloat(this.valueTwo).toFixed(o.digit));
this._setAllPosition(this._getPercentByValue(this.valueOne), this._getPercentByValue(this.valueTwo));
} else {
this.labelOne.setValue(this.min);
this.labelTwo.setValue(this.max);
this._setAllPosition(0, 100);
}
this._resetLabelPosition();
this._resetLabelPosition(this.valueOne > this.valueTwo);
}
}
});
@ -68707,6 +68709,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -68747,6 +68750,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_select_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -68795,8 +68799,14 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0;
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -69220,6 +69230,12 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -69900,6 +69916,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -69940,6 +69957,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_single_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -69988,8 +70006,13 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -70412,6 +70435,12 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -71937,6 +71966,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -72374,6 +72404,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -72832,6 +72863,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -73287,6 +73319,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -74566,11 +74599,8 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
}
},
setValue: function (ob) {
_populate: function (ob) {
var self = this, o = this.options;
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
if (ob.type === BI.Selection.All) {
o.itemsCreator({
type: BI.MultiSelectCombo.REQ_GET_DATA_LENGTH
@ -74589,6 +74619,23 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
});
},
_assertValue: function (ob) {
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
return ob;
},
setValue: function (ob) {
ob = this._assertValue(ob);
this.options.value = ob;
this._populate(ob);
},
populate: function () {
this._populate(this._assertValue(this.options.value));
},
getValue: function () {
}
@ -83069,7 +83116,7 @@ BI.SingleSlider = BI.inherit(BI.Single, {
});
// 这边其实是有问题的,拖拽区域是个圆,在圆的边缘拖拽后放开,这边计算出来的蓝条宽度实际上会比放开时长一点或者短一点
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -83407,7 +83454,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -83705,7 +83752,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -91003,4 +91050,4 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
"BI-Basic_Now": "此刻"
};
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141)}({141:function(e,t,r){e.exports=r(142)},142:function(e,t,r){"use strict";var n=function o(e){return e&&e.__esModule?e:{"default":e}}(r(143));BI.extend(BI,n["default"])},143:function(e,t,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={Decorators:function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{"default":e};var t=c();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}r["default"]=e,t&&t.set(e,r);return r}(r(144))};t["default"]=n},144:function(e,t,r){"use strict";function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function o(){return function(e){BI.shortcut(e.xtype,e)}},t.model=function f(){return function(e){BI.model(e.xtype,e)}},t.store=function l(r){var n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=n.props?n.props.apply(this):undefined;return BI.Models.getModel(r.xtype,e)},t}(e)}},t.Model=void 0;var n=function(o){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i(u(e=o.call.apply(o,[this].concat(r))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=n}});
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141)}({141:function(e,t,r){e.exports=r(142)},142:function(e,t,r){"use strict";var n=function o(e){return e&&e.__esModule?e:{"default":e}}(r(143));BI.extend(BI,n["default"])},143:function(e,t,r){"use strict";function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={Decorators:function c(e){if(e&&e.__esModule)return e;var t=i();if(t&&t.has(e))return t.get(e);var r={};if(null!=e){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}}r["default"]=e,t&&t.set(e,r);return r}(r(144))};t["default"]=n},144:function(e,t,r){"use strict";function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function o(){return function(e){BI.shortcut(e.xtype,e)}},t.model=function f(){return function(e){BI.model(e.xtype,e)}},t.store=function l(r){var n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=n.props?n.props.apply(this):undefined;return BI.Models.getModel(r.xtype,e)},t}(e)}},t.Model=void 0;var n=function(o){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i(u(e=o.call.apply(o,[this].concat(r))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=n}});

2
dist/2.0/fineui.ie.js.map vendored

File diff suppressed because one or more lines are too long

52
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

83
dist/2.0/fineui.js vendored

@ -11564,6 +11564,7 @@ if (!_global.BI) {
_purgeRef: function () {
if (this.options.ref) {
this.options.ref.call(null);
this.options.ref = null;
}
},
@ -12113,6 +12114,7 @@ if (!_global.BI) {
__d: function () {
this.beforeDestroy && this.beforeDestroy();
this.beforeDestroy = null;
BI.each(this._children, function (i, widget) {
widget && widget._unMount && widget._unMount();
});
@ -12120,6 +12122,7 @@ if (!_global.BI) {
this._parent = null;
this._isMounted = false;
this.destroyed && this.destroyed();
this.destroyed = null;
},
_unMount: function () {
@ -42245,6 +42248,7 @@ BI.Combo = BI.inherit(BI.Widget, {
.unbind("mousemove." + this.getName())
.unbind("mouseleave." + this.getName());
BI.Resizers.remove(this.getName());
this.popupView && this.popupView._destroy();
}
});
BI.Combo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE";
@ -43755,10 +43759,6 @@ BI.Switcher = BI.inherit(BI.Widget, {
empty: function () {
this.popupView && this.popupView.empty();
},
destroy: function () {
BI.Switcher.superclass.destroy.apply(this, arguments);
}
});
BI.Switcher.EVENT_EXPAND = "EVENT_EXPAND";
@ -43992,6 +43992,7 @@ BI.Msg = function () {
context = context || BI.Widget._renderEngine.createElement("body");
var level = options.level || "normal";
var autoClose = BI.isNull(options.autoClose) ? true : options.autoClose;
var callback = BI.isFunction(options.callback) ? options.callback : BI.emptyFn;
var toast = BI.createWidget({
type: "bi.toast",
cls: "bi-message-animate bi-message-leave",
@ -44007,6 +44008,7 @@ BI.Msg = function () {
element.css({"top": _height});
_height += element.outerHeight() + 10;
});
callback();
}
}]
});
@ -63941,8 +63943,7 @@ BI.StaticDateTimePaneCard = BI.inherit(BI.Widget, {
}
self.selectedTime = BI.extend(self.selectedTime, {
year: value.year,
month: value.month,
day: day
month: value.month
});
day !== 0 && (self.selectedTime.day = day);
self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
@ -68375,20 +68376,21 @@ BI.IntervalSlider = BI.inherit(BI.Single, {
},
populate: function () {
var o = this.options;
if (!isNaN(this.min) && !isNaN(this.max)) {
this.enable = true;
this._setVisible(true);
this._setErrorText();
if ((BI.isNumeric(this.valueOne) || BI.isNotEmptyString(this.valueOne)) && (BI.isNumeric(this.valueTwo) || BI.isNotEmptyString(this.valueTwo))) {
this.labelOne.setValue(this.valueOne);
this.labelTwo.setValue(this.valueTwo);
this.labelOne.setValue(o.digit === false ? this.valueOne : BI.parseFloat(this.valueOne).toFixed(o.digit));
this.labelTwo.setValue(o.digit === false ? this.valueTwo : BI.parseFloat(this.valueTwo).toFixed(o.digit));
this._setAllPosition(this._getPercentByValue(this.valueOne), this._getPercentByValue(this.valueTwo));
} else {
this.labelOne.setValue(this.min);
this.labelTwo.setValue(this.max);
this._setAllPosition(0, 100);
}
this._resetLabelPosition();
this._resetLabelPosition(this.valueOne > this.valueTwo);
}
}
});
@ -69097,6 +69099,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -69137,6 +69140,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_select_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -69185,8 +69189,14 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0;
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -69610,6 +69620,12 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -70290,6 +70306,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -70330,6 +70347,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_single_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -70378,8 +70396,13 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -70802,6 +70825,12 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -72327,6 +72356,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -72764,6 +72794,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -73222,6 +73253,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -73677,6 +73709,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -74956,11 +74989,8 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
}
},
setValue: function (ob) {
_populate: function (ob) {
var self = this, o = this.options;
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
if (ob.type === BI.Selection.All) {
o.itemsCreator({
type: BI.MultiSelectCombo.REQ_GET_DATA_LENGTH
@ -74979,6 +75009,23 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
});
},
_assertValue: function (ob) {
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
return ob;
},
setValue: function (ob) {
ob = this._assertValue(ob);
this.options.value = ob;
this._populate(ob);
},
populate: function () {
this._populate(this._assertValue(this.options.value));
},
getValue: function () {
}
@ -83459,7 +83506,7 @@ BI.SingleSlider = BI.inherit(BI.Single, {
});
// 这边其实是有问题的,拖拽区域是个圆,在圆的边缘拖拽后放开,这边计算出来的蓝条宽度实际上会比放开时长一点或者短一点
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -83797,7 +83844,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -84095,7 +84142,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;

2
dist/2.0/fineui.js.map vendored

File diff suppressed because one or more lines are too long

66
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

7
dist/base.js vendored

@ -3849,6 +3849,7 @@ BI.Combo = BI.inherit(BI.Widget, {
.unbind("mousemove." + this.getName())
.unbind("mouseleave." + this.getName());
BI.Resizers.remove(this.getName());
this.popupView && this.popupView._destroy();
}
});
BI.Combo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE";
@ -5359,10 +5360,6 @@ BI.Switcher = BI.inherit(BI.Widget, {
empty: function () {
this.popupView && this.popupView.empty();
},
destroy: function () {
BI.Switcher.superclass.destroy.apply(this, arguments);
}
});
BI.Switcher.EVENT_EXPAND = "EVENT_EXPAND";
@ -5596,6 +5593,7 @@ BI.Msg = function () {
context = context || BI.Widget._renderEngine.createElement("body");
var level = options.level || "normal";
var autoClose = BI.isNull(options.autoClose) ? true : options.autoClose;
var callback = BI.isFunction(options.callback) ? options.callback : BI.emptyFn;
var toast = BI.createWidget({
type: "bi.toast",
cls: "bi-message-animate bi-message-leave",
@ -5611,6 +5609,7 @@ BI.Msg = function () {
element.css({"top": _height});
_height += element.outerHeight() + 10;
});
callback();
}
}]
});

2
dist/base.js.map vendored

File diff suppressed because one or more lines are too long

85
dist/bundle.ie.js vendored

@ -11564,6 +11564,7 @@ if (!_global.BI) {
_purgeRef: function () {
if (this.options.ref) {
this.options.ref.call(null);
this.options.ref = null;
}
},
@ -12113,6 +12114,7 @@ if (!_global.BI) {
__d: function () {
this.beforeDestroy && this.beforeDestroy();
this.beforeDestroy = null;
BI.each(this._children, function (i, widget) {
widget && widget._unMount && widget._unMount();
});
@ -12120,6 +12122,7 @@ if (!_global.BI) {
this._parent = null;
this._isMounted = false;
this.destroyed && this.destroyed();
this.destroyed = null;
},
_unMount: function () {
@ -41855,6 +41858,7 @@ BI.Combo = BI.inherit(BI.Widget, {
.unbind("mousemove." + this.getName())
.unbind("mouseleave." + this.getName());
BI.Resizers.remove(this.getName());
this.popupView && this.popupView._destroy();
}
});
BI.Combo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE";
@ -43365,10 +43369,6 @@ BI.Switcher = BI.inherit(BI.Widget, {
empty: function () {
this.popupView && this.popupView.empty();
},
destroy: function () {
BI.Switcher.superclass.destroy.apply(this, arguments);
}
});
BI.Switcher.EVENT_EXPAND = "EVENT_EXPAND";
@ -43602,6 +43602,7 @@ BI.Msg = function () {
context = context || BI.Widget._renderEngine.createElement("body");
var level = options.level || "normal";
var autoClose = BI.isNull(options.autoClose) ? true : options.autoClose;
var callback = BI.isFunction(options.callback) ? options.callback : BI.emptyFn;
var toast = BI.createWidget({
type: "bi.toast",
cls: "bi-message-animate bi-message-leave",
@ -43617,6 +43618,7 @@ BI.Msg = function () {
element.css({"top": _height});
_height += element.outerHeight() + 10;
});
callback();
}
}]
});
@ -63551,8 +63553,7 @@ BI.StaticDateTimePaneCard = BI.inherit(BI.Widget, {
}
self.selectedTime = BI.extend(self.selectedTime, {
year: value.year,
month: value.month,
day: day
month: value.month
});
day !== 0 && (self.selectedTime.day = day);
self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
@ -67985,20 +67986,21 @@ BI.IntervalSlider = BI.inherit(BI.Single, {
},
populate: function () {
var o = this.options;
if (!isNaN(this.min) && !isNaN(this.max)) {
this.enable = true;
this._setVisible(true);
this._setErrorText();
if ((BI.isNumeric(this.valueOne) || BI.isNotEmptyString(this.valueOne)) && (BI.isNumeric(this.valueTwo) || BI.isNotEmptyString(this.valueTwo))) {
this.labelOne.setValue(this.valueOne);
this.labelTwo.setValue(this.valueTwo);
this.labelOne.setValue(o.digit === false ? this.valueOne : BI.parseFloat(this.valueOne).toFixed(o.digit));
this.labelTwo.setValue(o.digit === false ? this.valueTwo : BI.parseFloat(this.valueTwo).toFixed(o.digit));
this._setAllPosition(this._getPercentByValue(this.valueOne), this._getPercentByValue(this.valueTwo));
} else {
this.labelOne.setValue(this.min);
this.labelTwo.setValue(this.max);
this._setAllPosition(0, 100);
}
this._resetLabelPosition();
this._resetLabelPosition(this.valueOne > this.valueTwo);
}
}
});
@ -68707,6 +68709,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -68747,6 +68750,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_select_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -68795,8 +68799,14 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0;
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -69220,6 +69230,12 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -69900,6 +69916,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -69940,6 +69957,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_single_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -69988,8 +70006,13 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -70412,6 +70435,12 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -71937,6 +71966,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -72374,6 +72404,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -72832,6 +72863,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -73287,6 +73319,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -74566,11 +74599,8 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
}
},
setValue: function (ob) {
_populate: function (ob) {
var self = this, o = this.options;
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
if (ob.type === BI.Selection.All) {
o.itemsCreator({
type: BI.MultiSelectCombo.REQ_GET_DATA_LENGTH
@ -74589,6 +74619,23 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
});
},
_assertValue: function (ob) {
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
return ob;
},
setValue: function (ob) {
ob = this._assertValue(ob);
this.options.value = ob;
this._populate(ob);
},
populate: function () {
this._populate(this._assertValue(this.options.value));
},
getValue: function () {
}
@ -83069,7 +83116,7 @@ BI.SingleSlider = BI.inherit(BI.Single, {
});
// 这边其实是有问题的,拖拽区域是个圆,在圆的边缘拖拽后放开,这边计算出来的蓝条宽度实际上会比放开时长一点或者短一点
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -83407,7 +83454,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -83705,7 +83752,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -91003,4 +91050,4 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
"BI-Basic_Now": "此刻"
};
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141)}({141:function(e,t,r){e.exports=r(142)},142:function(e,t,r){"use strict";var n=function o(e){return e&&e.__esModule?e:{"default":e}}(r(143));BI.extend(BI,n["default"])},143:function(e,t,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={Decorators:function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{"default":e};var t=c();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}r["default"]=e,t&&t.set(e,r);return r}(r(144))};t["default"]=n},144:function(e,t,r){"use strict";function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function o(){return function(e){BI.shortcut(e.xtype,e)}},t.model=function f(){return function(e){BI.model(e.xtype,e)}},t.store=function l(r){var n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=n.props?n.props.apply(this):undefined;return BI.Models.getModel(r.xtype,e)},t}(e)}},t.Model=void 0;var n=function(o){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i(u(e=o.call.apply(o,[this].concat(r))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=n}});
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141)}({141:function(e,t,r){e.exports=r(142)},142:function(e,t,r){"use strict";var n=function o(e){return e&&e.__esModule?e:{"default":e}}(r(143));BI.extend(BI,n["default"])},143:function(e,t,r){"use strict";function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={Decorators:function c(e){if(e&&e.__esModule)return e;var t=i();if(t&&t.has(e))return t.get(e);var r={};if(null!=e){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}}r["default"]=e,t&&t.set(e,r);return r}(r(144))};t["default"]=n},144:function(e,t,r){"use strict";function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function o(){return function(e){BI.shortcut(e.xtype,e)}},t.model=function f(){return function(e){BI.model(e.xtype,e)}},t.store=function l(r){var n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=n.props?n.props.apply(this):undefined;return BI.Models.getModel(r.xtype,e)},t}(e)}},t.Model=void 0;var n=function(o){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i(u(e=o.call.apply(o,[this].concat(r))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=n}});

2
dist/bundle.ie.js.map vendored

File diff suppressed because one or more lines are too long

52
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

83
dist/bundle.js vendored

@ -11564,6 +11564,7 @@ if (!_global.BI) {
_purgeRef: function () {
if (this.options.ref) {
this.options.ref.call(null);
this.options.ref = null;
}
},
@ -12113,6 +12114,7 @@ if (!_global.BI) {
__d: function () {
this.beforeDestroy && this.beforeDestroy();
this.beforeDestroy = null;
BI.each(this._children, function (i, widget) {
widget && widget._unMount && widget._unMount();
});
@ -12120,6 +12122,7 @@ if (!_global.BI) {
this._parent = null;
this._isMounted = false;
this.destroyed && this.destroyed();
this.destroyed = null;
},
_unMount: function () {
@ -42245,6 +42248,7 @@ BI.Combo = BI.inherit(BI.Widget, {
.unbind("mousemove." + this.getName())
.unbind("mouseleave." + this.getName());
BI.Resizers.remove(this.getName());
this.popupView && this.popupView._destroy();
}
});
BI.Combo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE";
@ -43755,10 +43759,6 @@ BI.Switcher = BI.inherit(BI.Widget, {
empty: function () {
this.popupView && this.popupView.empty();
},
destroy: function () {
BI.Switcher.superclass.destroy.apply(this, arguments);
}
});
BI.Switcher.EVENT_EXPAND = "EVENT_EXPAND";
@ -43992,6 +43992,7 @@ BI.Msg = function () {
context = context || BI.Widget._renderEngine.createElement("body");
var level = options.level || "normal";
var autoClose = BI.isNull(options.autoClose) ? true : options.autoClose;
var callback = BI.isFunction(options.callback) ? options.callback : BI.emptyFn;
var toast = BI.createWidget({
type: "bi.toast",
cls: "bi-message-animate bi-message-leave",
@ -44007,6 +44008,7 @@ BI.Msg = function () {
element.css({"top": _height});
_height += element.outerHeight() + 10;
});
callback();
}
}]
});
@ -63941,8 +63943,7 @@ BI.StaticDateTimePaneCard = BI.inherit(BI.Widget, {
}
self.selectedTime = BI.extend(self.selectedTime, {
year: value.year,
month: value.month,
day: day
month: value.month
});
day !== 0 && (self.selectedTime.day = day);
self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
@ -68375,20 +68376,21 @@ BI.IntervalSlider = BI.inherit(BI.Single, {
},
populate: function () {
var o = this.options;
if (!isNaN(this.min) && !isNaN(this.max)) {
this.enable = true;
this._setVisible(true);
this._setErrorText();
if ((BI.isNumeric(this.valueOne) || BI.isNotEmptyString(this.valueOne)) && (BI.isNumeric(this.valueTwo) || BI.isNotEmptyString(this.valueTwo))) {
this.labelOne.setValue(this.valueOne);
this.labelTwo.setValue(this.valueTwo);
this.labelOne.setValue(o.digit === false ? this.valueOne : BI.parseFloat(this.valueOne).toFixed(o.digit));
this.labelTwo.setValue(o.digit === false ? this.valueTwo : BI.parseFloat(this.valueTwo).toFixed(o.digit));
this._setAllPosition(this._getPercentByValue(this.valueOne), this._getPercentByValue(this.valueTwo));
} else {
this.labelOne.setValue(this.min);
this.labelTwo.setValue(this.max);
this._setAllPosition(0, 100);
}
this._resetLabelPosition();
this._resetLabelPosition(this.valueOne > this.valueTwo);
}
}
});
@ -69097,6 +69099,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -69137,6 +69140,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_select_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -69185,8 +69189,14 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0;
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -69610,6 +69620,12 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -70290,6 +70306,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -70330,6 +70347,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_single_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -70378,8 +70396,13 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -70802,6 +70825,12 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -72327,6 +72356,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -72764,6 +72794,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -73222,6 +73253,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -73677,6 +73709,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -74956,11 +74989,8 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
}
},
setValue: function (ob) {
_populate: function (ob) {
var self = this, o = this.options;
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
if (ob.type === BI.Selection.All) {
o.itemsCreator({
type: BI.MultiSelectCombo.REQ_GET_DATA_LENGTH
@ -74979,6 +75009,23 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
});
},
_assertValue: function (ob) {
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
return ob;
},
setValue: function (ob) {
ob = this._assertValue(ob);
this.options.value = ob;
this._populate(ob);
},
populate: function () {
this._populate(this._assertValue(this.options.value));
},
getValue: function () {
}
@ -83459,7 +83506,7 @@ BI.SingleSlider = BI.inherit(BI.Single, {
});
// 这边其实是有问题的,拖拽区域是个圆,在圆的边缘拖拽后放开,这边计算出来的蓝条宽度实际上会比放开时长一点或者短一点
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -83797,7 +83844,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -84095,7 +84142,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;

2
dist/bundle.js.map vendored

File diff suppressed because one or more lines are too long

66
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.min.js.map vendored

File diff suppressed because one or more lines are too long

3
dist/core.js vendored

@ -11564,6 +11564,7 @@ if (!_global.BI) {
_purgeRef: function () {
if (this.options.ref) {
this.options.ref.call(null);
this.options.ref = null;
}
},
@ -12113,6 +12114,7 @@ if (!_global.BI) {
__d: function () {
this.beforeDestroy && this.beforeDestroy();
this.beforeDestroy = null;
BI.each(this._children, function (i, widget) {
widget && widget._unMount && widget._unMount();
});
@ -12120,6 +12122,7 @@ if (!_global.BI) {
this._parent = null;
this._isMounted = false;
this.destroyed && this.destroyed();
this.destroyed = null;
},
_unMount: function () {

2
dist/core.js.map vendored

File diff suppressed because one or more lines are too long

85
dist/fineui.ie.js vendored

@ -11811,6 +11811,7 @@ if (!_global.BI) {
_purgeRef: function () {
if (this.options.ref) {
this.options.ref.call(null);
this.options.ref = null;
}
},
@ -12360,6 +12361,7 @@ if (!_global.BI) {
__d: function () {
this.beforeDestroy && this.beforeDestroy();
this.beforeDestroy = null;
BI.each(this._children, function (i, widget) {
widget && widget._unMount && widget._unMount();
});
@ -12367,6 +12369,7 @@ if (!_global.BI) {
this._parent = null;
this._isMounted = false;
this.destroyed && this.destroyed();
this.destroyed = null;
},
_unMount: function () {
@ -42102,6 +42105,7 @@ BI.Combo = BI.inherit(BI.Widget, {
.unbind("mousemove." + this.getName())
.unbind("mouseleave." + this.getName());
BI.Resizers.remove(this.getName());
this.popupView && this.popupView._destroy();
}
});
BI.Combo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE";
@ -43612,10 +43616,6 @@ BI.Switcher = BI.inherit(BI.Widget, {
empty: function () {
this.popupView && this.popupView.empty();
},
destroy: function () {
BI.Switcher.superclass.destroy.apply(this, arguments);
}
});
BI.Switcher.EVENT_EXPAND = "EVENT_EXPAND";
@ -43849,6 +43849,7 @@ BI.Msg = function () {
context = context || BI.Widget._renderEngine.createElement("body");
var level = options.level || "normal";
var autoClose = BI.isNull(options.autoClose) ? true : options.autoClose;
var callback = BI.isFunction(options.callback) ? options.callback : BI.emptyFn;
var toast = BI.createWidget({
type: "bi.toast",
cls: "bi-message-animate bi-message-leave",
@ -43864,6 +43865,7 @@ BI.Msg = function () {
element.css({"top": _height});
_height += element.outerHeight() + 10;
});
callback();
}
}]
});
@ -63798,8 +63800,7 @@ BI.StaticDateTimePaneCard = BI.inherit(BI.Widget, {
}
self.selectedTime = BI.extend(self.selectedTime, {
year: value.year,
month: value.month,
day: day
month: value.month
});
day !== 0 && (self.selectedTime.day = day);
self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
@ -68232,20 +68233,21 @@ BI.IntervalSlider = BI.inherit(BI.Single, {
},
populate: function () {
var o = this.options;
if (!isNaN(this.min) && !isNaN(this.max)) {
this.enable = true;
this._setVisible(true);
this._setErrorText();
if ((BI.isNumeric(this.valueOne) || BI.isNotEmptyString(this.valueOne)) && (BI.isNumeric(this.valueTwo) || BI.isNotEmptyString(this.valueTwo))) {
this.labelOne.setValue(this.valueOne);
this.labelTwo.setValue(this.valueTwo);
this.labelOne.setValue(o.digit === false ? this.valueOne : BI.parseFloat(this.valueOne).toFixed(o.digit));
this.labelTwo.setValue(o.digit === false ? this.valueTwo : BI.parseFloat(this.valueTwo).toFixed(o.digit));
this._setAllPosition(this._getPercentByValue(this.valueOne), this._getPercentByValue(this.valueTwo));
} else {
this.labelOne.setValue(this.min);
this.labelTwo.setValue(this.max);
this._setAllPosition(0, 100);
}
this._resetLabelPosition();
this._resetLabelPosition(this.valueOne > this.valueTwo);
}
}
});
@ -68954,6 +68956,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -68994,6 +68997,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_select_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -69042,8 +69046,14 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0;
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -69467,6 +69477,12 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -70147,6 +70163,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -70187,6 +70204,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_single_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -70235,8 +70253,13 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -70659,6 +70682,12 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -72184,6 +72213,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -72621,6 +72651,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -73079,6 +73110,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -73534,6 +73566,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -74813,11 +74846,8 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
}
},
setValue: function (ob) {
_populate: function (ob) {
var self = this, o = this.options;
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
if (ob.type === BI.Selection.All) {
o.itemsCreator({
type: BI.MultiSelectCombo.REQ_GET_DATA_LENGTH
@ -74836,6 +74866,23 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
});
},
_assertValue: function (ob) {
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
return ob;
},
setValue: function (ob) {
ob = this._assertValue(ob);
this.options.value = ob;
this._populate(ob);
},
populate: function () {
this._populate(this._assertValue(this.options.value));
},
getValue: function () {
}
@ -83316,7 +83363,7 @@ BI.SingleSlider = BI.inherit(BI.Single, {
});
// 这边其实是有问题的,拖拽区域是个圆,在圆的边缘拖拽后放开,这边计算出来的蓝条宽度实际上会比放开时长一点或者短一点
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -83654,7 +83701,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -83952,7 +83999,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -91060,4 +91107,4 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);(function () {
}());
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141)}({141:function(e,t,r){e.exports=r(142)},142:function(e,t,r){"use strict";var n=function o(e){return e&&e.__esModule?e:{"default":e}}(r(143));BI.extend(BI,n["default"])},143:function(e,t,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={Decorators:function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{"default":e};var t=c();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}r["default"]=e,t&&t.set(e,r);return r}(r(144))};t["default"]=n},144:function(e,t,r){"use strict";function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function o(){return function(e){BI.shortcut(e.xtype,e)}},t.model=function f(){return function(e){BI.model(e.xtype,e)}},t.store=function l(r){var n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=n.props?n.props.apply(this):undefined;return BI.Models.getModel(r.xtype,e)},t}(e)}},t.Model=void 0;var n=function(o){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i(u(e=o.call.apply(o,[this].concat(r))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=n}});
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141)}({141:function(e,t,r){e.exports=r(142)},142:function(e,t,r){"use strict";var n=function o(e){return e&&e.__esModule?e:{"default":e}}(r(143));BI.extend(BI,n["default"])},143:function(e,t,r){"use strict";function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={Decorators:function c(e){if(e&&e.__esModule)return e;var t=i();if(t&&t.has(e))return t.get(e);var r={};if(null!=e){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}}r["default"]=e,t&&t.set(e,r);return r}(r(144))};t["default"]=n},144:function(e,t,r){"use strict";function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function o(){return function(e){BI.shortcut(e.xtype,e)}},t.model=function f(){return function(e){BI.model(e.xtype,e)}},t.store=function l(r){var n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=n.props?n.props.apply(this):undefined;return BI.Models.getModel(r.xtype,e)},t}(e)}},t.Model=void 0;var n=function(o){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i(u(e=o.call.apply(o,[this].concat(r))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=n}});

2
dist/fineui.ie.js.map vendored

File diff suppressed because one or more lines are too long

98
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

83
dist/fineui.js vendored

@ -11811,6 +11811,7 @@ if (!_global.BI) {
_purgeRef: function () {
if (this.options.ref) {
this.options.ref.call(null);
this.options.ref = null;
}
},
@ -12360,6 +12361,7 @@ if (!_global.BI) {
__d: function () {
this.beforeDestroy && this.beforeDestroy();
this.beforeDestroy = null;
BI.each(this._children, function (i, widget) {
widget && widget._unMount && widget._unMount();
});
@ -12367,6 +12369,7 @@ if (!_global.BI) {
this._parent = null;
this._isMounted = false;
this.destroyed && this.destroyed();
this.destroyed = null;
},
_unMount: function () {
@ -42492,6 +42495,7 @@ BI.Combo = BI.inherit(BI.Widget, {
.unbind("mousemove." + this.getName())
.unbind("mouseleave." + this.getName());
BI.Resizers.remove(this.getName());
this.popupView && this.popupView._destroy();
}
});
BI.Combo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE";
@ -44002,10 +44006,6 @@ BI.Switcher = BI.inherit(BI.Widget, {
empty: function () {
this.popupView && this.popupView.empty();
},
destroy: function () {
BI.Switcher.superclass.destroy.apply(this, arguments);
}
});
BI.Switcher.EVENT_EXPAND = "EVENT_EXPAND";
@ -44239,6 +44239,7 @@ BI.Msg = function () {
context = context || BI.Widget._renderEngine.createElement("body");
var level = options.level || "normal";
var autoClose = BI.isNull(options.autoClose) ? true : options.autoClose;
var callback = BI.isFunction(options.callback) ? options.callback : BI.emptyFn;
var toast = BI.createWidget({
type: "bi.toast",
cls: "bi-message-animate bi-message-leave",
@ -44254,6 +44255,7 @@ BI.Msg = function () {
element.css({"top": _height});
_height += element.outerHeight() + 10;
});
callback();
}
}]
});
@ -64188,8 +64190,7 @@ BI.StaticDateTimePaneCard = BI.inherit(BI.Widget, {
}
self.selectedTime = BI.extend(self.selectedTime, {
year: value.year,
month: value.month,
day: day
month: value.month
});
day !== 0 && (self.selectedTime.day = day);
self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
@ -68622,20 +68623,21 @@ BI.IntervalSlider = BI.inherit(BI.Single, {
},
populate: function () {
var o = this.options;
if (!isNaN(this.min) && !isNaN(this.max)) {
this.enable = true;
this._setVisible(true);
this._setErrorText();
if ((BI.isNumeric(this.valueOne) || BI.isNotEmptyString(this.valueOne)) && (BI.isNumeric(this.valueTwo) || BI.isNotEmptyString(this.valueTwo))) {
this.labelOne.setValue(this.valueOne);
this.labelTwo.setValue(this.valueTwo);
this.labelOne.setValue(o.digit === false ? this.valueOne : BI.parseFloat(this.valueOne).toFixed(o.digit));
this.labelTwo.setValue(o.digit === false ? this.valueTwo : BI.parseFloat(this.valueTwo).toFixed(o.digit));
this._setAllPosition(this._getPercentByValue(this.valueOne), this._getPercentByValue(this.valueTwo));
} else {
this.labelOne.setValue(this.min);
this.labelTwo.setValue(this.max);
this._setAllPosition(0, 100);
}
this._resetLabelPosition();
this._resetLabelPosition(this.valueOne > this.valueTwo);
}
}
});
@ -69344,6 +69346,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -69384,6 +69387,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_select_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -69432,8 +69436,14 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0;
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -69857,6 +69867,12 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -70537,6 +70553,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -70577,6 +70594,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_single_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -70625,8 +70643,13 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -71049,6 +71072,12 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -72574,6 +72603,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -73011,6 +73041,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -73469,6 +73500,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -73924,6 +73956,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -75203,11 +75236,8 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
}
},
setValue: function (ob) {
_populate: function (ob) {
var self = this, o = this.options;
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
if (ob.type === BI.Selection.All) {
o.itemsCreator({
type: BI.MultiSelectCombo.REQ_GET_DATA_LENGTH
@ -75226,6 +75256,23 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
});
},
_assertValue: function (ob) {
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
return ob;
},
setValue: function (ob) {
ob = this._assertValue(ob);
this.options.value = ob;
this._populate(ob);
},
populate: function () {
this._populate(this._assertValue(this.options.value));
},
getValue: function () {
}
@ -83706,7 +83753,7 @@ BI.SingleSlider = BI.inherit(BI.Single, {
});
// 这边其实是有问题的,拖拽区域是个圆,在圆的边缘拖拽后放开,这边计算出来的蓝条宽度实际上会比放开时长一点或者短一点
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -84044,7 +84091,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -84342,7 +84389,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;

2
dist/fineui.js.map vendored

File diff suppressed because one or more lines are too long

66
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

83
dist/fineui_without_jquery_polyfill.js vendored

@ -11564,6 +11564,7 @@ if (!_global.BI) {
_purgeRef: function () {
if (this.options.ref) {
this.options.ref.call(null);
this.options.ref = null;
}
},
@ -12113,6 +12114,7 @@ if (!_global.BI) {
__d: function () {
this.beforeDestroy && this.beforeDestroy();
this.beforeDestroy = null;
BI.each(this._children, function (i, widget) {
widget && widget._unMount && widget._unMount();
});
@ -12120,6 +12122,7 @@ if (!_global.BI) {
this._parent = null;
this._isMounted = false;
this.destroyed && this.destroyed();
this.destroyed = null;
},
_unMount: function () {
@ -29588,6 +29591,7 @@ BI.Combo = BI.inherit(BI.Widget, {
.unbind("mousemove." + this.getName())
.unbind("mouseleave." + this.getName());
BI.Resizers.remove(this.getName());
this.popupView && this.popupView._destroy();
}
});
BI.Combo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE";
@ -31098,10 +31102,6 @@ BI.Switcher = BI.inherit(BI.Widget, {
empty: function () {
this.popupView && this.popupView.empty();
},
destroy: function () {
BI.Switcher.superclass.destroy.apply(this, arguments);
}
});
BI.Switcher.EVENT_EXPAND = "EVENT_EXPAND";
@ -31335,6 +31335,7 @@ BI.Msg = function () {
context = context || BI.Widget._renderEngine.createElement("body");
var level = options.level || "normal";
var autoClose = BI.isNull(options.autoClose) ? true : options.autoClose;
var callback = BI.isFunction(options.callback) ? options.callback : BI.emptyFn;
var toast = BI.createWidget({
type: "bi.toast",
cls: "bi-message-animate bi-message-leave",
@ -31350,6 +31351,7 @@ BI.Msg = function () {
element.css({"top": _height});
_height += element.outerHeight() + 10;
});
callback();
}
}]
});
@ -46468,8 +46470,7 @@ BI.StaticDateTimePaneCard = BI.inherit(BI.Widget, {
}
self.selectedTime = BI.extend(self.selectedTime, {
year: value.year,
month: value.month,
day: day
month: value.month
});
day !== 0 && (self.selectedTime.day = day);
self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
@ -50902,20 +50903,21 @@ BI.IntervalSlider = BI.inherit(BI.Single, {
},
populate: function () {
var o = this.options;
if (!isNaN(this.min) && !isNaN(this.max)) {
this.enable = true;
this._setVisible(true);
this._setErrorText();
if ((BI.isNumeric(this.valueOne) || BI.isNotEmptyString(this.valueOne)) && (BI.isNumeric(this.valueTwo) || BI.isNotEmptyString(this.valueTwo))) {
this.labelOne.setValue(this.valueOne);
this.labelTwo.setValue(this.valueTwo);
this.labelOne.setValue(o.digit === false ? this.valueOne : BI.parseFloat(this.valueOne).toFixed(o.digit));
this.labelTwo.setValue(o.digit === false ? this.valueTwo : BI.parseFloat(this.valueTwo).toFixed(o.digit));
this._setAllPosition(this._getPercentByValue(this.valueOne), this._getPercentByValue(this.valueTwo));
} else {
this.labelOne.setValue(this.min);
this.labelTwo.setValue(this.max);
this._setAllPosition(0, 100);
}
this._resetLabelPosition();
this._resetLabelPosition(this.valueOne > this.valueTwo);
}
}
});
@ -51624,6 +51626,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -51664,6 +51667,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_select_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -51712,8 +51716,14 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0;
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -52137,6 +52147,12 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -52817,6 +52833,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -52857,6 +52874,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_single_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -52905,8 +52923,13 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -53329,6 +53352,12 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -54854,6 +54883,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -55291,6 +55321,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -55749,6 +55780,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -56204,6 +56236,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -57483,11 +57516,8 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
}
},
setValue: function (ob) {
_populate: function (ob) {
var self = this, o = this.options;
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
if (ob.type === BI.Selection.All) {
o.itemsCreator({
type: BI.MultiSelectCombo.REQ_GET_DATA_LENGTH
@ -57506,6 +57536,23 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
});
},
_assertValue: function (ob) {
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
return ob;
},
setValue: function (ob) {
ob = this._assertValue(ob);
this.options.value = ob;
this._populate(ob);
},
populate: function () {
this._populate(this._assertValue(this.options.value));
},
getValue: function () {
}
@ -65986,7 +66033,7 @@ BI.SingleSlider = BI.inherit(BI.Single, {
});
// 这边其实是有问题的,拖拽区域是个圆,在圆的边缘拖拽后放开,这边计算出来的蓝条宽度实际上会比放开时长一点或者短一点
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -66324,7 +66371,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -66622,7 +66669,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/ie.fineui.js vendored

@ -1 +1 @@
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141)}({141:function(e,t,r){e.exports=r(142)},142:function(e,t,r){"use strict";var n=function o(e){return e&&e.__esModule?e:{"default":e}}(r(143));BI.extend(BI,n["default"])},143:function(e,t,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={Decorators:function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{"default":e};var t=c();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}r["default"]=e,t&&t.set(e,r);return r}(r(144))};t["default"]=n},144:function(e,t,r){"use strict";function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function o(){return function(e){BI.shortcut(e.xtype,e)}},t.model=function f(){return function(e){BI.model(e.xtype,e)}},t.store=function l(r){var n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=n.props?n.props.apply(this):undefined;return BI.Models.getModel(r.xtype,e)},t}(e)}},t.Model=void 0;var n=function(o){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i(u(e=o.call.apply(o,[this].concat(r))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=n}});
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141)}({141:function(e,t,r){e.exports=r(142)},142:function(e,t,r){"use strict";var n=function o(e){return e&&e.__esModule?e:{"default":e}}(r(143));BI.extend(BI,n["default"])},143:function(e,t,r){"use strict";function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={Decorators:function c(e){if(e&&e.__esModule)return e;var t=i();if(t&&t.has(e))return t.get(e);var r={};if(null!=e){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}}r["default"]=e,t&&t.set(e,r);return r}(r(144))};t["default"]=n},144:function(e,t,r){"use strict";function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function o(){return function(e){BI.shortcut(e.xtype,e)}},t.model=function f(){return function(e){BI.model(e.xtype,e)}},t.store=function l(r){var n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=n.props?n.props.apply(this):undefined;return BI.Models.getModel(r.xtype,e)},t}(e)}},t.Model=void 0;var n=function(o){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i(u(e=o.call.apply(o,[this].concat(r))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=n}});

2
dist/ie.fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/utils.js.map vendored

File diff suppressed because one or more lines are too long

8
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/utils.min.js.map vendored

File diff suppressed because one or more lines are too long

73
dist/widget.js vendored

@ -1539,8 +1539,7 @@ BI.StaticDateTimePaneCard = BI.inherit(BI.Widget, {
}
self.selectedTime = BI.extend(self.selectedTime, {
year: value.year,
month: value.month,
day: day
month: value.month
});
day !== 0 && (self.selectedTime.day = day);
self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
@ -5973,20 +5972,21 @@ BI.IntervalSlider = BI.inherit(BI.Single, {
},
populate: function () {
var o = this.options;
if (!isNaN(this.min) && !isNaN(this.max)) {
this.enable = true;
this._setVisible(true);
this._setErrorText();
if ((BI.isNumeric(this.valueOne) || BI.isNotEmptyString(this.valueOne)) && (BI.isNumeric(this.valueTwo) || BI.isNotEmptyString(this.valueTwo))) {
this.labelOne.setValue(this.valueOne);
this.labelTwo.setValue(this.valueTwo);
this.labelOne.setValue(o.digit === false ? this.valueOne : BI.parseFloat(this.valueOne).toFixed(o.digit));
this.labelTwo.setValue(o.digit === false ? this.valueTwo : BI.parseFloat(this.valueTwo).toFixed(o.digit));
this._setAllPosition(this._getPercentByValue(this.valueOne), this._getPercentByValue(this.valueTwo));
} else {
this.labelOne.setValue(this.min);
this.labelTwo.setValue(this.max);
this._setAllPosition(0, 100);
}
this._resetLabelPosition();
this._resetLabelPosition(this.valueOne > this.valueTwo);
}
}
});
@ -6695,6 +6695,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -6735,6 +6736,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_select_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -6783,8 +6785,14 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0;
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -7208,6 +7216,12 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -7888,6 +7902,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
type: "bi.combo",
container: o.container,
destroyWhenHide: o.destroyWhenHide,
adjustLength: 2,
ref: function (_ref) {
self.combo = _ref;
@ -7928,6 +7943,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.multilayer_single_tree_trigger",
container: o.container,
allowInsertValue: o.allowInsertValue,
allowSearchValue: o.allowSearchValue,
allowEdit: o.allowEdit,
@ -7976,8 +7992,13 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
}
}]
},
toggle: !o.allowEdit,
hideChecker: function (e) {
return self.triggerBtn.element.find(e.target).length === 0;
// 新增传配置container后对应hideChecker的修改
// IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿
// 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以
// 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪
return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0
},
listeners: [{
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,
@ -8400,6 +8421,12 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
ref: function () {
self.searcher = this;
},
masker: BI.isNotNull(o.container) ? {
offset: {},
container: o.container
} : {
offset: {}
},
isAutoSearch: false,
el: {
type: "bi.state_editor",
@ -9925,6 +9952,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -10362,6 +10390,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -10820,6 +10849,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -11275,6 +11305,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this.numberCounter.populate.apply(this.numberCounter, arguments);
}
});
@ -12554,11 +12585,8 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
}
},
setValue: function (ob) {
_populate: function (ob) {
var self = this, o = this.options;
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
if (ob.type === BI.Selection.All) {
o.itemsCreator({
type: BI.MultiSelectCombo.REQ_GET_DATA_LENGTH
@ -12577,6 +12605,23 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
});
},
_assertValue: function (ob) {
ob || (ob = {});
ob.type || (ob.type = BI.Selection.Multi);
ob.value || (ob.value = []);
return ob;
},
setValue: function (ob) {
ob = this._assertValue(ob);
this.options.value = ob;
this._populate(ob);
},
populate: function () {
this._populate(this._assertValue(this.options.value));
},
getValue: function () {
}
@ -21057,7 +21102,7 @@ BI.SingleSlider = BI.inherit(BI.Single, {
});
// 这边其实是有问题的,拖拽区域是个圆,在圆的边缘拖拽后放开,这边计算出来的蓝条宽度实际上会比放开时长一点或者短一点
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -21395,7 +21440,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;
@ -21693,7 +21738,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
height: c.SLIDER_HEIGHT
});
sliderVertical.element.click(function (e) {
if (self.enable && self.isEnabled()) {
if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {
var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;
var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;
var percent = 0;

2
dist/widget.js.map vendored

File diff suppressed because one or more lines are too long

2
src/base/foundation/message.js

@ -24,6 +24,7 @@ BI.Msg = function () {
context = context || BI.Widget._renderEngine.createElement("body");
var level = options.level || "normal";
var autoClose = BI.isNull(options.autoClose) ? true : options.autoClose;
var callback = BI.isFunction(options.callback) ? options.callback : BI.emptyFn;
var toast = BI.createWidget({
type: "bi.toast",
cls: "bi-message-animate bi-message-leave",
@ -39,6 +40,7 @@ BI.Msg = function () {
element.css({"top": _height});
_height += element.outerHeight() + 10;
});
callback();
}
}]
});

Loading…
Cancel
Save