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.
- package/lib/button-group.js +35 -10
- package/lib/button.js +35 -10
- package/lib/calogin.js +35 -10
- package/lib/checkbox-group.js +35 -10
- package/lib/data-table-form.js +35 -10
- package/lib/data-table.js +35 -10
- package/lib/date-picker.js +35 -10
- package/lib/dialog.js +35 -10
- package/lib/eoss-ui.common.js +580 -325
- package/lib/flow-group.js +35 -10
- package/lib/flow-list.js +35 -10
- package/lib/flow.js +198 -128
- package/lib/form.js +35 -10
- package/lib/handle-user.js +35 -10
- package/lib/handler.js +35 -10
- package/lib/icon.js +35 -10
- package/lib/index.js +1 -1
- package/lib/input-number.js +35 -10
- package/lib/input.js +35 -10
- package/lib/login.js +41 -16
- package/lib/main.js +367 -156
- package/lib/menu.js +0 -1
- package/lib/nav.js +35 -10
- package/lib/page.js +35 -10
- package/lib/pagination.js +35 -10
- package/lib/player.js +35 -10
- package/lib/qr-code.js +35 -10
- package/lib/radio-group.js +35 -10
- package/lib/retrial-auth.js +35 -10
- package/lib/select-ganged.js +35 -10
- package/lib/select.js +35 -10
- package/lib/selector-panel.js +35 -10
- package/lib/selector.js +35 -10
- package/lib/sizer.js +35 -10
- package/lib/steps.js +35 -10
- package/lib/switch.js +35 -10
- package/lib/table-form.js +35 -10
- package/lib/tabs.js +35 -10
- package/lib/tips.js +35 -10
- package/lib/tree-group.js +35 -10
- package/lib/tree.js +35 -10
- package/lib/upload.js +35 -10
- package/lib/utils/util.js +31 -6
- package/lib/wujie.js +35 -10
- package/lib/wxlogin.js +35 -10
- package/package.json +1 -1
- package/packages/.DS_Store +0 -0
- package/packages/date-picker/.DS_Store +0 -0
- package/packages/flow/.DS_Store +0 -0
- package/packages/flow/src/.DS_Store +0 -0
- package/packages/flow/src/component/taskUnionExamine.vue +8 -8
- package/packages/flow/src/main.vue +6 -4
- package/packages/flow/src/processForm.vue +6 -4
- package/packages/flow-list/.DS_Store +0 -0
- package/packages/login/.DS_Store +0 -0
- package/packages/login/src/main.vue +4 -4
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/.DS_Store +0 -0
- package/packages/main/src/default/index.vue +2 -2
- package/packages/main/src/main.vue +165 -69
- package/packages/main/src/simplicity/index.vue +49 -6
- package/packages/main/src/simplicity/sub-menu.vue +3 -1
- package/packages/menu/.DS_Store +0 -0
- package/packages/menu/src/main.vue +0 -1
- package/src/.DS_Store +0 -0
- package/src/index.js +1 -1
- package/src/utils/util.js +31 -6
package/lib/button-group.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__(
|
|
126
|
-
var lodash = __webpack_require__(
|
|
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
|
-
|
|
670
|
-
|
|
671
|
-
|
|
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.
|
|
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("
|
|
4441
|
+
module.exports = require("lodash");
|
|
4417
4442
|
|
|
4418
4443
|
/***/ }),
|
|
4419
4444
|
/* 13 */
|
|
4420
4445
|
/***/ (function(module, exports) {
|
|
4421
4446
|
|
|
4422
|
-
module.exports = require("
|
|
4447
|
+
module.exports = require("sm-crypto");
|
|
4423
4448
|
|
|
4424
4449
|
/***/ }),
|
|
4425
4450
|
/* 14 */,
|
package/lib/button.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__(
|
|
127
|
-
var lodash = __webpack_require__(
|
|
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
|
-
|
|
671
|
-
|
|
672
|
-
|
|
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.
|
|
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("
|
|
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("
|
|
4171
|
+
module.exports = require("sm-crypto");
|
|
4147
4172
|
|
|
4148
4173
|
/***/ }),
|
|
4149
4174
|
|
package/lib/calogin.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__(
|
|
126
|
-
var lodash = __webpack_require__(
|
|
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
|
-
|
|
670
|
-
|
|
671
|
-
|
|
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.
|
|
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("
|
|
4441
|
+
module.exports = require("lodash");
|
|
4417
4442
|
|
|
4418
4443
|
/***/ }),
|
|
4419
4444
|
/* 13 */
|
|
4420
4445
|
/***/ (function(module, exports) {
|
|
4421
4446
|
|
|
4422
|
-
module.exports = require("
|
|
4447
|
+
module.exports = require("sm-crypto");
|
|
4423
4448
|
|
|
4424
4449
|
/***/ }),
|
|
4425
4450
|
/* 14 */,
|
package/lib/checkbox-group.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__(
|
|
126
|
-
var lodash = __webpack_require__(
|
|
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
|
-
|
|
670
|
-
|
|
671
|
-
|
|
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.
|
|
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("
|
|
4441
|
+
module.exports = require("lodash");
|
|
4417
4442
|
|
|
4418
4443
|
/***/ }),
|
|
4419
4444
|
/* 13 */
|
|
4420
4445
|
/***/ (function(module, exports) {
|
|
4421
4446
|
|
|
4422
|
-
module.exports = require("
|
|
4447
|
+
module.exports = require("sm-crypto");
|
|
4423
4448
|
|
|
4424
4449
|
/***/ }),
|
|
4425
4450
|
/* 14 */
|
package/lib/data-table-form.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__(
|
|
126
|
-
var lodash = __webpack_require__(
|
|
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
|
-
|
|
670
|
-
|
|
671
|
-
|
|
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.
|
|
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("
|
|
4441
|
+
module.exports = require("lodash");
|
|
4417
4442
|
|
|
4418
4443
|
/***/ }),
|
|
4419
4444
|
/* 13 */
|
|
4420
4445
|
/***/ (function(module, exports) {
|
|
4421
4446
|
|
|
4422
|
-
module.exports = require("
|
|
4447
|
+
module.exports = require("sm-crypto");
|
|
4423
4448
|
|
|
4424
4449
|
/***/ }),
|
|
4425
4450
|
/* 14 */,
|
package/lib/data-table.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__(
|
|
126
|
-
var lodash = __webpack_require__(
|
|
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
|
-
|
|
670
|
-
|
|
671
|
-
|
|
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.
|
|
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("
|
|
4441
|
+
module.exports = require("lodash");
|
|
4417
4442
|
|
|
4418
4443
|
/***/ }),
|
|
4419
4444
|
/* 13 */
|
|
4420
4445
|
/***/ (function(module, exports) {
|
|
4421
4446
|
|
|
4422
|
-
module.exports = require("
|
|
4447
|
+
module.exports = require("sm-crypto");
|
|
4423
4448
|
|
|
4424
4449
|
/***/ }),
|
|
4425
4450
|
/* 14 */
|