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/steps.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/switch.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/table-form.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/tabs.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/tips.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/tree-group.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