eoss-ui 0.7.28 → 0.7.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/lib/button-group.js +35 -10
  2. package/lib/button.js +35 -10
  3. package/lib/calogin.js +35 -10
  4. package/lib/checkbox-group.js +35 -10
  5. package/lib/data-table-form.js +35 -10
  6. package/lib/data-table.js +35 -10
  7. package/lib/date-picker.js +35 -10
  8. package/lib/dialog.js +35 -10
  9. package/lib/eoss-ui.common.js +580 -325
  10. package/lib/flow-group.js +35 -10
  11. package/lib/flow-list.js +35 -10
  12. package/lib/flow.js +198 -128
  13. package/lib/form.js +35 -10
  14. package/lib/handle-user.js +35 -10
  15. package/lib/handler.js +35 -10
  16. package/lib/icon.js +35 -10
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +35 -10
  19. package/lib/input.js +35 -10
  20. package/lib/login.js +41 -16
  21. package/lib/main.js +367 -156
  22. package/lib/menu.js +0 -1
  23. package/lib/nav.js +35 -10
  24. package/lib/page.js +35 -10
  25. package/lib/pagination.js +35 -10
  26. package/lib/player.js +35 -10
  27. package/lib/qr-code.js +35 -10
  28. package/lib/radio-group.js +35 -10
  29. package/lib/retrial-auth.js +35 -10
  30. package/lib/select-ganged.js +35 -10
  31. package/lib/select.js +35 -10
  32. package/lib/selector-panel.js +35 -10
  33. package/lib/selector.js +35 -10
  34. package/lib/sizer.js +35 -10
  35. package/lib/steps.js +35 -10
  36. package/lib/switch.js +35 -10
  37. package/lib/table-form.js +35 -10
  38. package/lib/tabs.js +35 -10
  39. package/lib/tips.js +35 -10
  40. package/lib/tree-group.js +35 -10
  41. package/lib/tree.js +35 -10
  42. package/lib/upload.js +35 -10
  43. package/lib/utils/util.js +31 -6
  44. package/lib/wujie.js +35 -10
  45. package/lib/wxlogin.js +35 -10
  46. package/package.json +1 -1
  47. package/packages/.DS_Store +0 -0
  48. package/packages/date-picker/.DS_Store +0 -0
  49. package/packages/flow/.DS_Store +0 -0
  50. package/packages/flow/src/.DS_Store +0 -0
  51. package/packages/flow/src/component/taskUnionExamine.vue +8 -8
  52. package/packages/flow/src/main.vue +6 -4
  53. package/packages/flow/src/processForm.vue +6 -4
  54. package/packages/flow-list/.DS_Store +0 -0
  55. package/packages/login/.DS_Store +0 -0
  56. package/packages/login/src/main.vue +4 -4
  57. package/packages/main/.DS_Store +0 -0
  58. package/packages/main/src/.DS_Store +0 -0
  59. package/packages/main/src/default/index.vue +2 -2
  60. package/packages/main/src/main.vue +165 -69
  61. package/packages/main/src/simplicity/index.vue +49 -6
  62. package/packages/main/src/simplicity/sub-menu.vue +3 -1
  63. package/packages/menu/.DS_Store +0 -0
  64. package/packages/menu/src/main.vue +0 -1
  65. package/src/.DS_Store +0 -0
  66. package/src/index.js +1 -1
  67. package/src/utils/util.js +31 -6
package/lib/menu.js CHANGED
@@ -484,7 +484,6 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
484
484
  class: ['es-menu-item-icon']
485
485
  }));
486
486
  }
487
- console.log(item.tips, item.text);
488
487
  title.push(h('div', {
489
488
  class: ['es-menu-title-text es-menu-title-' + this.mode, {
490
489
  'es-menu-title-margin': this.deep && item.children && item.children.length && (!item.extendData || item.extendData.businessStatus != 0) && typeof item.tips === 'boolean' && item.tips
package/lib/nav.js CHANGED
@@ -123,8 +123,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
123
123
  **/
124
124
 
125
125
  /* eslint-disable indent */
126
- var sm2 = __webpack_require__(12).sm2;
127
- var lodash = __webpack_require__(13);
126
+ var sm2 = __webpack_require__(13).sm2;
127
+ var lodash = __webpack_require__(12);
128
128
 
129
129
 
130
130
 
@@ -133,6 +133,7 @@ var lodash = __webpack_require__(13);
133
133
 
134
134
 
135
135
  var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
136
+ var isIE = /MSIE|Trident/.test(navigator.userAgent);
136
137
  var parser = new ua_parser_js__WEBPACK_IMPORTED_MODULE_6__["UAParser"]();
137
138
  var $hueStep = 2;
138
139
  var $saturationStep1 = 0.16;
@@ -667,11 +668,20 @@ var busEmit = function busEmit(that, _ref3) {
667
668
  var method = _ref3.method,
668
669
  args = _ref3.args;
669
670
 
670
- var bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
671
- if (bus) {
672
- Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
671
+ if (isIE) {
672
+ var bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
673
+ if (bus) {
674
+ Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
675
+ } else {
676
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
677
+ }
673
678
  } else {
674
- win.parent.postMessage({ method: method, query: args }, '*');
679
+ var _bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
680
+ if (_bus) {
681
+ Array.isArray(args) ? _bus.$emit.apply(_bus, [method].concat(args)) : _bus.$emit(method, args);
682
+ } else {
683
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
684
+ }
675
685
  }
676
686
  };
677
687
 
@@ -3511,7 +3521,6 @@ var setCookie = function setCookie(name, value) {
3511
3521
  var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
3512
3522
  var time = arguments[3];
3513
3523
 
3514
- var isIE = /MSIE|Trident/.test(navigator.userAgent);
3515
3524
  try {
3516
3525
  var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
3517
3526
  ];
@@ -3598,6 +3607,20 @@ var removeCookie = function removeCookie(key) {
3598
3607
  }
3599
3608
  };
3600
3609
 
3610
+ var winTopOpen = function winTopOpen(config) {
3611
+ if (isIE) {
3612
+ if (win.top !== win.self) {
3613
+ try {
3614
+ win.top.windowOpen(config);
3615
+ } catch (error) {
3616
+ win.postMessage({ method: 'windowOpen', query: config }, '*');
3617
+ }
3618
+ }
3619
+ } else {
3620
+ busEmit('windowOpen', config);
3621
+ }
3622
+ };
3623
+
3601
3624
  /* harmony default export */ __webpack_exports__["a"] = ({
3602
3625
  ajax: ajax,
3603
3626
  ajaxStream: ajaxStream,
@@ -3651,6 +3674,7 @@ var removeCookie = function removeCookie(key) {
3651
3674
  isEmpty: isEmpty,
3652
3675
  isExist: isExist,
3653
3676
  isFunction: isFunction,
3677
+ isIE: isIE,
3654
3678
  isLogged: isLogged,
3655
3679
  isLogined: isLogined,
3656
3680
  isObject: isObject,
@@ -3690,7 +3714,8 @@ var removeCookie = function removeCookie(key) {
3690
3714
  urlJoinParams: urlJoinParams,
3691
3715
  uuid: uuid,
3692
3716
  watermark: watermark,
3693
- win: win
3717
+ win: win,
3718
+ winTopOpen: winTopOpen
3694
3719
  });
3695
3720
 
3696
3721
  /***/ }),
@@ -4136,14 +4161,14 @@ module.exports = require("ua-parser-js");
4136
4161
  /***/ 12:
4137
4162
  /***/ (function(module, exports) {
4138
4163
 
4139
- module.exports = require("sm-crypto");
4164
+ module.exports = require("lodash");
4140
4165
 
4141
4166
  /***/ }),
4142
4167
 
4143
4168
  /***/ 13:
4144
4169
  /***/ (function(module, exports) {
4145
4170
 
4146
- module.exports = require("lodash");
4171
+ module.exports = require("sm-crypto");
4147
4172
 
4148
4173
  /***/ }),
4149
4174
 
package/lib/page.js CHANGED
@@ -123,8 +123,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
123
123
  **/
124
124
 
125
125
  /* eslint-disable indent */
126
- var sm2 = __webpack_require__(12).sm2;
127
- var lodash = __webpack_require__(13);
126
+ var sm2 = __webpack_require__(13).sm2;
127
+ var lodash = __webpack_require__(12);
128
128
 
129
129
 
130
130
 
@@ -133,6 +133,7 @@ var lodash = __webpack_require__(13);
133
133
 
134
134
 
135
135
  var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
136
+ var isIE = /MSIE|Trident/.test(navigator.userAgent);
136
137
  var parser = new ua_parser_js__WEBPACK_IMPORTED_MODULE_6__["UAParser"]();
137
138
  var $hueStep = 2;
138
139
  var $saturationStep1 = 0.16;
@@ -667,11 +668,20 @@ var busEmit = function busEmit(that, _ref3) {
667
668
  var method = _ref3.method,
668
669
  args = _ref3.args;
669
670
 
670
- var bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
671
- if (bus) {
672
- Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
671
+ if (isIE) {
672
+ var bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
673
+ if (bus) {
674
+ Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
675
+ } else {
676
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
677
+ }
673
678
  } else {
674
- win.parent.postMessage({ method: method, query: args }, '*');
679
+ var _bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
680
+ if (_bus) {
681
+ Array.isArray(args) ? _bus.$emit.apply(_bus, [method].concat(args)) : _bus.$emit(method, args);
682
+ } else {
683
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
684
+ }
675
685
  }
676
686
  };
677
687
 
@@ -3511,7 +3521,6 @@ var setCookie = function setCookie(name, value) {
3511
3521
  var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
3512
3522
  var time = arguments[3];
3513
3523
 
3514
- var isIE = /MSIE|Trident/.test(navigator.userAgent);
3515
3524
  try {
3516
3525
  var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
3517
3526
  ];
@@ -3598,6 +3607,20 @@ var removeCookie = function removeCookie(key) {
3598
3607
  }
3599
3608
  };
3600
3609
 
3610
+ var winTopOpen = function winTopOpen(config) {
3611
+ if (isIE) {
3612
+ if (win.top !== win.self) {
3613
+ try {
3614
+ win.top.windowOpen(config);
3615
+ } catch (error) {
3616
+ win.postMessage({ method: 'windowOpen', query: config }, '*');
3617
+ }
3618
+ }
3619
+ } else {
3620
+ busEmit('windowOpen', config);
3621
+ }
3622
+ };
3623
+
3601
3624
  /* harmony default export */ __webpack_exports__["a"] = ({
3602
3625
  ajax: ajax,
3603
3626
  ajaxStream: ajaxStream,
@@ -3651,6 +3674,7 @@ var removeCookie = function removeCookie(key) {
3651
3674
  isEmpty: isEmpty,
3652
3675
  isExist: isExist,
3653
3676
  isFunction: isFunction,
3677
+ isIE: isIE,
3654
3678
  isLogged: isLogged,
3655
3679
  isLogined: isLogined,
3656
3680
  isObject: isObject,
@@ -3690,7 +3714,8 @@ var removeCookie = function removeCookie(key) {
3690
3714
  urlJoinParams: urlJoinParams,
3691
3715
  uuid: uuid,
3692
3716
  watermark: watermark,
3693
- win: win
3717
+ win: win,
3718
+ winTopOpen: winTopOpen
3694
3719
  });
3695
3720
 
3696
3721
  /***/ }),
@@ -4136,14 +4161,14 @@ module.exports = require("ua-parser-js");
4136
4161
  /***/ 12:
4137
4162
  /***/ (function(module, exports) {
4138
4163
 
4139
- module.exports = require("sm-crypto");
4164
+ module.exports = require("lodash");
4140
4165
 
4141
4166
  /***/ }),
4142
4167
 
4143
4168
  /***/ 13:
4144
4169
  /***/ (function(module, exports) {
4145
4170
 
4146
- module.exports = require("lodash");
4171
+ module.exports = require("sm-crypto");
4147
4172
 
4148
4173
  /***/ }),
4149
4174
 
package/lib/pagination.js CHANGED
@@ -123,8 +123,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
123
123
  **/
124
124
 
125
125
  /* eslint-disable indent */
126
- var sm2 = __webpack_require__(12).sm2;
127
- var lodash = __webpack_require__(13);
126
+ var sm2 = __webpack_require__(13).sm2;
127
+ var lodash = __webpack_require__(12);
128
128
 
129
129
 
130
130
 
@@ -133,6 +133,7 @@ var lodash = __webpack_require__(13);
133
133
 
134
134
 
135
135
  var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
136
+ var isIE = /MSIE|Trident/.test(navigator.userAgent);
136
137
  var parser = new ua_parser_js__WEBPACK_IMPORTED_MODULE_6__["UAParser"]();
137
138
  var $hueStep = 2;
138
139
  var $saturationStep1 = 0.16;
@@ -667,11 +668,20 @@ var busEmit = function busEmit(that, _ref3) {
667
668
  var method = _ref3.method,
668
669
  args = _ref3.args;
669
670
 
670
- var bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
671
- if (bus) {
672
- Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
671
+ if (isIE) {
672
+ var bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
673
+ if (bus) {
674
+ Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
675
+ } else {
676
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
677
+ }
673
678
  } else {
674
- win.parent.postMessage({ method: method, query: args }, '*');
679
+ var _bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
680
+ if (_bus) {
681
+ Array.isArray(args) ? _bus.$emit.apply(_bus, [method].concat(args)) : _bus.$emit(method, args);
682
+ } else {
683
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
684
+ }
675
685
  }
676
686
  };
677
687
 
@@ -3511,7 +3521,6 @@ var setCookie = function setCookie(name, value) {
3511
3521
  var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
3512
3522
  var time = arguments[3];
3513
3523
 
3514
- var isIE = /MSIE|Trident/.test(navigator.userAgent);
3515
3524
  try {
3516
3525
  var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
3517
3526
  ];
@@ -3598,6 +3607,20 @@ var removeCookie = function removeCookie(key) {
3598
3607
  }
3599
3608
  };
3600
3609
 
3610
+ var winTopOpen = function winTopOpen(config) {
3611
+ if (isIE) {
3612
+ if (win.top !== win.self) {
3613
+ try {
3614
+ win.top.windowOpen(config);
3615
+ } catch (error) {
3616
+ win.postMessage({ method: 'windowOpen', query: config }, '*');
3617
+ }
3618
+ }
3619
+ } else {
3620
+ busEmit('windowOpen', config);
3621
+ }
3622
+ };
3623
+
3601
3624
  /* harmony default export */ __webpack_exports__["a"] = ({
3602
3625
  ajax: ajax,
3603
3626
  ajaxStream: ajaxStream,
@@ -3651,6 +3674,7 @@ var removeCookie = function removeCookie(key) {
3651
3674
  isEmpty: isEmpty,
3652
3675
  isExist: isExist,
3653
3676
  isFunction: isFunction,
3677
+ isIE: isIE,
3654
3678
  isLogged: isLogged,
3655
3679
  isLogined: isLogined,
3656
3680
  isObject: isObject,
@@ -3690,7 +3714,8 @@ var removeCookie = function removeCookie(key) {
3690
3714
  urlJoinParams: urlJoinParams,
3691
3715
  uuid: uuid,
3692
3716
  watermark: watermark,
3693
- win: win
3717
+ win: win,
3718
+ winTopOpen: winTopOpen
3694
3719
  });
3695
3720
 
3696
3721
  /***/ }),
@@ -4136,14 +4161,14 @@ module.exports = require("ua-parser-js");
4136
4161
  /***/ 12:
4137
4162
  /***/ (function(module, exports) {
4138
4163
 
4139
- module.exports = require("sm-crypto");
4164
+ module.exports = require("lodash");
4140
4165
 
4141
4166
  /***/ }),
4142
4167
 
4143
4168
  /***/ 13:
4144
4169
  /***/ (function(module, exports) {
4145
4170
 
4146
- module.exports = require("lodash");
4171
+ module.exports = require("sm-crypto");
4147
4172
 
4148
4173
  /***/ }),
4149
4174
 
package/lib/player.js CHANGED
@@ -122,8 +122,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
122
122
  **/
123
123
 
124
124
  /* eslint-disable indent */
125
- var sm2 = __webpack_require__(12).sm2;
126
- var lodash = __webpack_require__(13);
125
+ var sm2 = __webpack_require__(13).sm2;
126
+ var lodash = __webpack_require__(12);
127
127
 
128
128
 
129
129
 
@@ -132,6 +132,7 @@ var lodash = __webpack_require__(13);
132
132
 
133
133
 
134
134
  var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
135
+ var isIE = /MSIE|Trident/.test(navigator.userAgent);
135
136
  var parser = new ua_parser_js__WEBPACK_IMPORTED_MODULE_6__["UAParser"]();
136
137
  var $hueStep = 2;
137
138
  var $saturationStep1 = 0.16;
@@ -666,11 +667,20 @@ var busEmit = function busEmit(that, _ref3) {
666
667
  var method = _ref3.method,
667
668
  args = _ref3.args;
668
669
 
669
- var bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
670
- if (bus) {
671
- Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
670
+ if (isIE) {
671
+ var bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
672
+ if (bus) {
673
+ Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
674
+ } else {
675
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
676
+ }
672
677
  } else {
673
- win.parent.postMessage({ method: method, query: args }, '*');
678
+ var _bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
679
+ if (_bus) {
680
+ Array.isArray(args) ? _bus.$emit.apply(_bus, [method].concat(args)) : _bus.$emit(method, args);
681
+ } else {
682
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
683
+ }
674
684
  }
675
685
  };
676
686
 
@@ -3510,7 +3520,6 @@ var setCookie = function setCookie(name, value) {
3510
3520
  var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
3511
3521
  var time = arguments[3];
3512
3522
 
3513
- var isIE = /MSIE|Trident/.test(navigator.userAgent);
3514
3523
  try {
3515
3524
  var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
3516
3525
  ];
@@ -3597,6 +3606,20 @@ var removeCookie = function removeCookie(key) {
3597
3606
  }
3598
3607
  };
3599
3608
 
3609
+ var winTopOpen = function winTopOpen(config) {
3610
+ if (isIE) {
3611
+ if (win.top !== win.self) {
3612
+ try {
3613
+ win.top.windowOpen(config);
3614
+ } catch (error) {
3615
+ win.postMessage({ method: 'windowOpen', query: config }, '*');
3616
+ }
3617
+ }
3618
+ } else {
3619
+ busEmit('windowOpen', config);
3620
+ }
3621
+ };
3622
+
3600
3623
  /* harmony default export */ __webpack_exports__["a"] = ({
3601
3624
  ajax: ajax,
3602
3625
  ajaxStream: ajaxStream,
@@ -3650,6 +3673,7 @@ var removeCookie = function removeCookie(key) {
3650
3673
  isEmpty: isEmpty,
3651
3674
  isExist: isExist,
3652
3675
  isFunction: isFunction,
3676
+ isIE: isIE,
3653
3677
  isLogged: isLogged,
3654
3678
  isLogined: isLogined,
3655
3679
  isObject: isObject,
@@ -3689,7 +3713,8 @@ var removeCookie = function removeCookie(key) {
3689
3713
  urlJoinParams: urlJoinParams,
3690
3714
  uuid: uuid,
3691
3715
  watermark: watermark,
3692
- win: win
3716
+ win: win,
3717
+ winTopOpen: winTopOpen
3693
3718
  });
3694
3719
 
3695
3720
  /***/ }),
@@ -4413,13 +4438,13 @@ module.exports = require("ua-parser-js");
4413
4438
  /* 12 */
4414
4439
  /***/ (function(module, exports) {
4415
4440
 
4416
- module.exports = require("sm-crypto");
4441
+ module.exports = require("lodash");
4417
4442
 
4418
4443
  /***/ }),
4419
4444
  /* 13 */
4420
4445
  /***/ (function(module, exports) {
4421
4446
 
4422
- module.exports = require("lodash");
4447
+ module.exports = require("sm-crypto");
4423
4448
 
4424
4449
  /***/ }),
4425
4450
  /* 14 */,
package/lib/qr-code.js CHANGED
@@ -123,8 +123,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
123
123
  **/
124
124
 
125
125
  /* eslint-disable indent */
126
- var sm2 = __webpack_require__(12).sm2;
127
- var lodash = __webpack_require__(13);
126
+ var sm2 = __webpack_require__(13).sm2;
127
+ var lodash = __webpack_require__(12);
128
128
 
129
129
 
130
130
 
@@ -133,6 +133,7 @@ var lodash = __webpack_require__(13);
133
133
 
134
134
 
135
135
  var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
136
+ var isIE = /MSIE|Trident/.test(navigator.userAgent);
136
137
  var parser = new ua_parser_js__WEBPACK_IMPORTED_MODULE_6__["UAParser"]();
137
138
  var $hueStep = 2;
138
139
  var $saturationStep1 = 0.16;
@@ -667,11 +668,20 @@ var busEmit = function busEmit(that, _ref3) {
667
668
  var method = _ref3.method,
668
669
  args = _ref3.args;
669
670
 
670
- var bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
671
- if (bus) {
672
- Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
671
+ if (isIE) {
672
+ var bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
673
+ if (bus) {
674
+ Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
675
+ } else {
676
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
677
+ }
673
678
  } else {
674
- win.parent.postMessage({ method: method, query: args }, '*');
679
+ var _bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
680
+ if (_bus) {
681
+ Array.isArray(args) ? _bus.$emit.apply(_bus, [method].concat(args)) : _bus.$emit(method, args);
682
+ } else {
683
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
684
+ }
675
685
  }
676
686
  };
677
687
 
@@ -3511,7 +3521,6 @@ var setCookie = function setCookie(name, value) {
3511
3521
  var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
3512
3522
  var time = arguments[3];
3513
3523
 
3514
- var isIE = /MSIE|Trident/.test(navigator.userAgent);
3515
3524
  try {
3516
3525
  var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
3517
3526
  ];
@@ -3598,6 +3607,20 @@ var removeCookie = function removeCookie(key) {
3598
3607
  }
3599
3608
  };
3600
3609
 
3610
+ var winTopOpen = function winTopOpen(config) {
3611
+ if (isIE) {
3612
+ if (win.top !== win.self) {
3613
+ try {
3614
+ win.top.windowOpen(config);
3615
+ } catch (error) {
3616
+ win.postMessage({ method: 'windowOpen', query: config }, '*');
3617
+ }
3618
+ }
3619
+ } else {
3620
+ busEmit('windowOpen', config);
3621
+ }
3622
+ };
3623
+
3601
3624
  /* harmony default export */ __webpack_exports__["a"] = ({
3602
3625
  ajax: ajax,
3603
3626
  ajaxStream: ajaxStream,
@@ -3651,6 +3674,7 @@ var removeCookie = function removeCookie(key) {
3651
3674
  isEmpty: isEmpty,
3652
3675
  isExist: isExist,
3653
3676
  isFunction: isFunction,
3677
+ isIE: isIE,
3654
3678
  isLogged: isLogged,
3655
3679
  isLogined: isLogined,
3656
3680
  isObject: isObject,
@@ -3690,7 +3714,8 @@ var removeCookie = function removeCookie(key) {
3690
3714
  urlJoinParams: urlJoinParams,
3691
3715
  uuid: uuid,
3692
3716
  watermark: watermark,
3693
- win: win
3717
+ win: win,
3718
+ winTopOpen: winTopOpen
3694
3719
  });
3695
3720
 
3696
3721
  /***/ }),
@@ -4136,14 +4161,14 @@ module.exports = require("ua-parser-js");
4136
4161
  /***/ 12:
4137
4162
  /***/ (function(module, exports) {
4138
4163
 
4139
- module.exports = require("sm-crypto");
4164
+ module.exports = require("lodash");
4140
4165
 
4141
4166
  /***/ }),
4142
4167
 
4143
4168
  /***/ 13:
4144
4169
  /***/ (function(module, exports) {
4145
4170
 
4146
- module.exports = require("lodash");
4171
+ module.exports = require("sm-crypto");
4147
4172
 
4148
4173
  /***/ }),
4149
4174
 
@@ -123,8 +123,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
123
123
  **/
124
124
 
125
125
  /* eslint-disable indent */
126
- var sm2 = __webpack_require__(12).sm2;
127
- var lodash = __webpack_require__(13);
126
+ var sm2 = __webpack_require__(13).sm2;
127
+ var lodash = __webpack_require__(12);
128
128
 
129
129
 
130
130
 
@@ -133,6 +133,7 @@ var lodash = __webpack_require__(13);
133
133
 
134
134
 
135
135
  var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
136
+ var isIE = /MSIE|Trident/.test(navigator.userAgent);
136
137
  var parser = new ua_parser_js__WEBPACK_IMPORTED_MODULE_6__["UAParser"]();
137
138
  var $hueStep = 2;
138
139
  var $saturationStep1 = 0.16;
@@ -667,11 +668,20 @@ var busEmit = function busEmit(that, _ref3) {
667
668
  var method = _ref3.method,
668
669
  args = _ref3.args;
669
670
 
670
- var bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
671
- if (bus) {
672
- Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
671
+ if (isIE) {
672
+ var bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
673
+ if (bus) {
674
+ Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
675
+ } else {
676
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
677
+ }
673
678
  } else {
674
- win.parent.postMessage({ method: method, query: args }, '*');
679
+ var _bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus || that.$root.$bus : null;
680
+ if (_bus) {
681
+ Array.isArray(args) ? _bus.$emit.apply(_bus, [method].concat(args)) : _bus.$emit(method, args);
682
+ } else {
683
+ win.parent.postMessage({ method: method, query: args, args: args }, '*');
684
+ }
675
685
  }
676
686
  };
677
687
 
@@ -3511,7 +3521,6 @@ var setCookie = function setCookie(name, value) {
3511
3521
  var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
3512
3522
  var time = arguments[3];
3513
3523
 
3514
- var isIE = /MSIE|Trident/.test(navigator.userAgent);
3515
3524
  try {
3516
3525
  var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
3517
3526
  ];
@@ -3598,6 +3607,20 @@ var removeCookie = function removeCookie(key) {
3598
3607
  }
3599
3608
  };
3600
3609
 
3610
+ var winTopOpen = function winTopOpen(config) {
3611
+ if (isIE) {
3612
+ if (win.top !== win.self) {
3613
+ try {
3614
+ win.top.windowOpen(config);
3615
+ } catch (error) {
3616
+ win.postMessage({ method: 'windowOpen', query: config }, '*');
3617
+ }
3618
+ }
3619
+ } else {
3620
+ busEmit('windowOpen', config);
3621
+ }
3622
+ };
3623
+
3601
3624
  /* harmony default export */ __webpack_exports__["a"] = ({
3602
3625
  ajax: ajax,
3603
3626
  ajaxStream: ajaxStream,
@@ -3651,6 +3674,7 @@ var removeCookie = function removeCookie(key) {
3651
3674
  isEmpty: isEmpty,
3652
3675
  isExist: isExist,
3653
3676
  isFunction: isFunction,
3677
+ isIE: isIE,
3654
3678
  isLogged: isLogged,
3655
3679
  isLogined: isLogined,
3656
3680
  isObject: isObject,
@@ -3690,7 +3714,8 @@ var removeCookie = function removeCookie(key) {
3690
3714
  urlJoinParams: urlJoinParams,
3691
3715
  uuid: uuid,
3692
3716
  watermark: watermark,
3693
- win: win
3717
+ win: win,
3718
+ winTopOpen: winTopOpen
3694
3719
  });
3695
3720
 
3696
3721
  /***/ }),
@@ -4136,14 +4161,14 @@ module.exports = require("ua-parser-js");
4136
4161
  /***/ 12:
4137
4162
  /***/ (function(module, exports) {
4138
4163
 
4139
- module.exports = require("sm-crypto");
4164
+ module.exports = require("lodash");
4140
4165
 
4141
4166
  /***/ }),
4142
4167
 
4143
4168
  /***/ 13:
4144
4169
  /***/ (function(module, exports) {
4145
4170
 
4146
- module.exports = require("lodash");
4171
+ module.exports = require("sm-crypto");
4147
4172
 
4148
4173
  /***/ }),
4149
4174