eoss-ui 0.5.44 → 0.5.46
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 +16 -0
- package/lib/button.js +157 -144
- package/lib/calendar.js +769 -0
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +20 -2
- package/lib/clients.js +2 -2
- package/lib/data-table-form.js +52 -13
- package/lib/data-table.js +33 -7
- package/lib/date-picker.js +18 -2
- package/lib/dialog.js +30 -13
- package/lib/enterprise.js +2 -2
- package/lib/eoss-ui.common.js +1324 -730
- package/lib/error-page.js +2 -2
- package/lib/flow-group.js +32 -19
- package/lib/flow-list.js +18 -2
- package/lib/flow.js +16 -0
- package/lib/form.js +231 -231
- package/lib/handle-user.js +25 -10
- package/lib/handler.js +24 -5
- package/lib/icons.js +2 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +18 -2
- package/lib/input.js +18 -2
- package/lib/label.js +2 -2
- package/lib/login.js +16 -0
- package/lib/main.js +27 -4
- package/lib/menu.js +2 -2
- package/lib/nav.js +21 -5
- package/lib/notify.js +2 -2
- package/lib/page.js +18 -2
- package/lib/pagination.js +2 -2
- package/lib/player.js +18 -2
- package/lib/qr-code.js +18 -2
- package/lib/radio-group.js +18 -2
- package/lib/retrial-auth.js +22 -8
- package/lib/select-ganged.js +18 -2
- package/lib/select.js +18 -2
- package/lib/selector-panel.js +16 -0
- package/lib/selector.js +18 -2
- package/lib/sizer.js +25 -9
- package/lib/steps.js +18 -2
- package/lib/switch.js +18 -2
- package/lib/table-form.js +18 -2
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +18 -2
- package/lib/theme-chalk/calendar.css +0 -0
- package/lib/theme-chalk/cascader.css +1 -0
- package/lib/theme-chalk/data-table-form.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/toolbar.css +1 -1
- package/lib/tips.js +18 -2
- package/lib/toolbar.js +24 -34
- package/lib/tree-group.js +18 -2
- package/lib/tree.js +18 -2
- package/lib/upload.js +22 -15
- package/lib/utils/util.js +16 -0
- package/lib/wujie.js +18 -2
- package/lib/wxlogin.js +18 -2
- package/package.json +2 -2
- package/packages/button/src/main.vue +6 -9
- package/packages/calendar/index.js +5 -0
- package/packages/calendar/src/main.vue +386 -0
- package/packages/data-table/src/main.vue +12 -2
- package/packages/data-table-form/src/main.vue +30 -23
- package/packages/data-table-form/src/table.vue +16 -3
- package/packages/dialog/src/main.vue +9 -9
- package/packages/flow-group/src/main.vue +12 -15
- package/packages/handle-user/src/main.vue +5 -6
- package/packages/handler/src/main.vue +4 -1
- package/packages/main/src/main.vue +9 -2
- package/packages/nav/src/main.vue +1 -1
- package/packages/retrial-auth/src/main.vue +2 -4
- package/packages/theme-chalk/lib/calendar.css +0 -0
- package/packages/theme-chalk/lib/cascader.css +1 -0
- package/packages/theme-chalk/lib/data-table-form.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/toolbar.css +1 -1
- package/packages/theme-chalk/src/calendar.scss +0 -0
- package/packages/theme-chalk/src/cascader.scss +93 -0
- package/packages/theme-chalk/src/data-table-form.scss +11 -0
- package/packages/theme-chalk/src/index.scss +2 -1
- package/packages/theme-chalk/src/toolbar.scss +16 -11
- package/packages/toolbar/src/main.vue +44 -49
- package/packages/upload/src/main.vue +1 -10
- package/src/index.js +7 -4
- package/src/utils/util.js +16 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.es-toolbar{padding:6px 12px;border-bottom:1px solid #d9d9d9;position:relative;background-color:#fff}.es-toolbar .es-toolbar-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-toolbar .es-toolbar-content .es-button-content{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-toolbar .es-toolbar-content .es-button-content .el-button{padding:4px 8px}.es-toolbar .es-toolbar-content .es-button-content .el-button+.el-button,.es-toolbar .es-toolbar-content .es-button-content .el-button+.es-button-badge,.es-toolbar .es-toolbar-content .es-button-content .es-button-badge+.el-button{margin-left:6px}.es-toolbar .es-toolbar-content .es-form{background:0 0}.es-toolbar .es-toolbar-content .es-form .es-form-content{padding:0}.es-toolbar .es-toolbar-content .es-form .el-form-item{margin-bottom:0}.es-toolbar .es-toolbar-content .es-advanced-btn{margin-left:6px;height:32px}.es-toolbar .es-toolbar-content .es-toolbar-text{line-height:32px}.es-toolbar .es-toolbar-content .es-toolbar-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-toolbar .es-toolbar-content .es-toolbar-info .es-info{font-size:13px;margin-left:20px}.es-toolbar .es-toolbar-content .el-menu--horizontal{border-bottom:0;position:relative;bottom:-6px}.es-toolbar .es-toolbar-content .el-menu-item{height:32px;line-height:24px}.es-toolbar .es-toolbar-content .el-input__inner,.es-toolbar .es-toolbar-content .es-checkbox-group{height:32px;line-height:32px}.es-toolbar .es-toolbar-content .es-radio-group,.es-toolbar .es-toolbar-content .es-switch-content{line-height:32px}.es-toolbar .es-toolbar-content .el-switch{top:-2px}.es-toolbar .es-toolbar-content .el-button span{line-height:14px}.es-toolbar .es-toolbar-content .el-checkbox:not(:last-child),.es-toolbar .es-toolbar-content .el-radio:not(:last-child){margin-right:8px}.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-checkbox+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-radio+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-switch+.el-form-item{margin-left:16px}.es-toolbar .es-toolbar-content .el-form-item .el-input__icon{line-height:32px;vertical-align:top}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner{width:100%;max-width:156px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange{max-width:300px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-input__icon,.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-range-separator{line-height:24px}.es-toolbar .es-advanced-filter{margin-top:20px;z-index:9}.es-toolbar .es-advanced-filter.es-absolute{position:absolute;left:0;top:45px;right:0;margin-top:0;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.es-toolbar .es-advanced-filter.es-absolute .es-form{background-color:#fff;border:1px solid #d9d9d9;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:0;padding:20px 20px 20px 10px}
|
|
1
|
+
@charset "UTF-8";.es-toolbar{padding:6px 12px;border-bottom:1px solid #d9d9d9;position:relative;background-color:#fff}.es-toolbar .es-toolbar-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-toolbar .es-toolbar-content .es-button-content{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-toolbar .es-toolbar-content .es-button-content .el-button{padding:4px 8px}.es-toolbar .es-toolbar-content .es-button-content .el-button+.el-button,.es-toolbar .es-toolbar-content .es-button-content .el-button+.es-button-badge,.es-toolbar .es-toolbar-content .es-button-content .es-button-badge+.el-button{margin-left:6px}.es-toolbar .es-toolbar-content .es-form{background:0 0}.es-toolbar .es-toolbar-content .es-form .es-form-content{padding:0}.es-toolbar .es-toolbar-content .es-form .el-form-item{margin-bottom:0}.es-toolbar .es-toolbar-content .es-advanced-btn{margin-left:6px;height:32px}.es-toolbar .es-toolbar-content .es-advanced-btn .es-advanced-icon{margin-right:-8px}.es-toolbar .es-toolbar-content .es-toolbar-text{line-height:32px}.es-toolbar .es-toolbar-content .es-toolbar-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-toolbar .es-toolbar-content .es-toolbar-info .es-info{font-size:13px;margin-left:20px}.es-toolbar .es-toolbar-content .el-menu--horizontal{border-bottom:0;position:relative;bottom:-6px}.es-toolbar .es-toolbar-content .el-menu-item{height:32px;line-height:24px}.es-toolbar .es-toolbar-content .el-input__inner,.es-toolbar .es-toolbar-content .es-checkbox-group{height:32px;line-height:32px}.es-toolbar .es-toolbar-content .es-radio-group,.es-toolbar .es-toolbar-content .es-switch-content{line-height:32px}.es-toolbar .es-toolbar-content .el-switch{top:-2px}.es-toolbar .es-toolbar-content .el-button span{line-height:14px}.es-toolbar .es-toolbar-content .el-checkbox:not(:last-child),.es-toolbar .es-toolbar-content .el-radio:not(:last-child){margin-right:8px}.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-checkbox+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-radio+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-switch+.el-form-item{margin-left:16px}.es-toolbar .es-toolbar-content .el-form-item .el-input__icon{line-height:32px;vertical-align:top}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner{width:100%;max-width:156px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange{max-width:300px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-input__icon,.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-range-separator{line-height:24px}.es-toolbar .es-form-search-small .el-form-item__content{line-height:32px!important}.es-toolbar .es-form-search-small .el-form-item__label{line-height:32px!important;height:32px}.es-toolbar .el-button.es-upload{padding:0!important;border:0!important}.es-toolbar .es-advanced-filter{margin-top:20px;z-index:9}.es-toolbar .es-advanced-filter.es-absolute{position:absolute;left:0;top:45px;right:0;margin-top:0;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.es-toolbar .es-advanced-filter.es-absolute .es-form{background-color:#fff;border:1px solid #d9d9d9;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:0;padding:20px 20px 20px 10px}
|
package/lib/tips.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 64);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -1250,6 +1250,21 @@ var getHour = function getHour(datetime) {
|
|
|
1250
1250
|
return datetimeObj.getHours();
|
|
1251
1251
|
};
|
|
1252
1252
|
|
|
1253
|
+
/**
|
|
1254
|
+
* getMyWinTop
|
|
1255
|
+
* @desc 获取同域的top窗口
|
|
1256
|
+
* @param {object} wind - window对象
|
|
1257
|
+
**/
|
|
1258
|
+
var getMyWinTop = function getMyWinTop(wind) {
|
|
1259
|
+
wind = wind ? wind : win;
|
|
1260
|
+
try {
|
|
1261
|
+
wind.parent.document;
|
|
1262
|
+
return getMyWinTop(wind.parent);
|
|
1263
|
+
} catch (error) {
|
|
1264
|
+
return wind;
|
|
1265
|
+
}
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1253
1268
|
/**
|
|
1254
1269
|
* getWeekNumber
|
|
1255
1270
|
* @desc 当年第几周
|
|
@@ -3003,6 +3018,7 @@ var watermark = function watermark(option) {
|
|
|
3003
3018
|
getCurrentDate: getCurrentDate,
|
|
3004
3019
|
getCurrentDateTime: getCurrentDateTime,
|
|
3005
3020
|
getHour: getHour,
|
|
3021
|
+
getMyWinTop: getMyWinTop,
|
|
3006
3022
|
getWeekNumber: getWeekNumber,
|
|
3007
3023
|
getLength: getLength,
|
|
3008
3024
|
getMainConfig: getMainConfig,
|
|
@@ -3549,7 +3565,7 @@ module.exports = require("json-bigint");
|
|
|
3549
3565
|
|
|
3550
3566
|
/***/ }),
|
|
3551
3567
|
|
|
3552
|
-
/***/
|
|
3568
|
+
/***/ 64:
|
|
3553
3569
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3554
3570
|
|
|
3555
3571
|
"use strict";
|
package/lib/toolbar.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 80);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,7 +192,7 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 80:
|
|
196
196
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
197
|
|
|
198
198
|
"use strict";
|
|
@@ -256,41 +256,25 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
256
256
|
default: 'auto'
|
|
257
257
|
}
|
|
258
258
|
},
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
if (this.contents[i].type === 'search') {
|
|
265
|
-
value = this.contents[i].value || this.contents[i].searchValue;
|
|
266
|
-
break;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
return value ? value : this.searchValue;
|
|
270
|
-
},
|
|
271
|
-
set: function set(val) {
|
|
272
|
-
return val;
|
|
259
|
+
watch: {
|
|
260
|
+
searchValue: {
|
|
261
|
+
deep: true,
|
|
262
|
+
handler: function handler(val) {
|
|
263
|
+
this.searchData = val;
|
|
273
264
|
}
|
|
274
265
|
},
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
if (this.contents[i].type === 'filter') {
|
|
280
|
-
value = this.contents[i].value || this.contents[i].searchValue;
|
|
281
|
-
break;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
return value ? value : this.advanceValue;
|
|
285
|
-
},
|
|
286
|
-
set: function set(val) {
|
|
287
|
-
return val;
|
|
266
|
+
advanceValue: {
|
|
267
|
+
deep: true,
|
|
268
|
+
handler: function handler(val) {
|
|
269
|
+
this.advancedData = val;
|
|
288
270
|
}
|
|
289
271
|
}
|
|
290
272
|
},
|
|
291
273
|
data: function data() {
|
|
292
274
|
return {
|
|
293
|
-
show: false
|
|
275
|
+
show: false,
|
|
276
|
+
searchData: this.searchValue,
|
|
277
|
+
advancedData: this.advanceValue
|
|
294
278
|
};
|
|
295
279
|
},
|
|
296
280
|
created: function created() {
|
|
@@ -463,7 +447,13 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
463
447
|
_this2.show = !_this2.show;
|
|
464
448
|
}
|
|
465
449
|
}
|
|
466
|
-
}, '高级搜索'
|
|
450
|
+
}, ['高级搜索', h('i', {
|
|
451
|
+
class: {
|
|
452
|
+
'el-icon-arrow-down': !_this2.show,
|
|
453
|
+
'el-icon-arrow-up': _this2.show,
|
|
454
|
+
'es-advanced-icon': 1
|
|
455
|
+
}
|
|
456
|
+
})]));
|
|
467
457
|
filter = h('transition', {
|
|
468
458
|
props: {
|
|
469
459
|
name: 'el-zoom-in-top'
|
|
@@ -477,8 +467,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
477
467
|
name: 'show',
|
|
478
468
|
value: _this2.show
|
|
479
469
|
}]
|
|
480
|
-
}, [h('es-form', {
|
|
481
|
-
class: 'es-form-
|
|
470
|
+
}, [_this2.show ? h('es-form', {
|
|
471
|
+
class: 'es-form-advanced-filter',
|
|
482
472
|
ref: 'filter',
|
|
483
473
|
props: _extends({}, other, config || {}, {
|
|
484
474
|
size: 'medium',
|
|
@@ -490,7 +480,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
490
480
|
submit: _this2.hanleSubmit,
|
|
491
481
|
reset: _this2.hanleCancel
|
|
492
482
|
}
|
|
493
|
-
}, [])])]);
|
|
483
|
+
}, []) : ''])]);
|
|
494
484
|
}
|
|
495
485
|
});
|
|
496
486
|
var box = [h('div', {
|
package/lib/tree-group.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 66);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -1250,6 +1250,21 @@ var getHour = function getHour(datetime) {
|
|
|
1250
1250
|
return datetimeObj.getHours();
|
|
1251
1251
|
};
|
|
1252
1252
|
|
|
1253
|
+
/**
|
|
1254
|
+
* getMyWinTop
|
|
1255
|
+
* @desc 获取同域的top窗口
|
|
1256
|
+
* @param {object} wind - window对象
|
|
1257
|
+
**/
|
|
1258
|
+
var getMyWinTop = function getMyWinTop(wind) {
|
|
1259
|
+
wind = wind ? wind : win;
|
|
1260
|
+
try {
|
|
1261
|
+
wind.parent.document;
|
|
1262
|
+
return getMyWinTop(wind.parent);
|
|
1263
|
+
} catch (error) {
|
|
1264
|
+
return wind;
|
|
1265
|
+
}
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1253
1268
|
/**
|
|
1254
1269
|
* getWeekNumber
|
|
1255
1270
|
* @desc 当年第几周
|
|
@@ -3003,6 +3018,7 @@ var watermark = function watermark(option) {
|
|
|
3003
3018
|
getCurrentDate: getCurrentDate,
|
|
3004
3019
|
getCurrentDateTime: getCurrentDateTime,
|
|
3005
3020
|
getHour: getHour,
|
|
3021
|
+
getMyWinTop: getMyWinTop,
|
|
3006
3022
|
getWeekNumber: getWeekNumber,
|
|
3007
3023
|
getLength: getLength,
|
|
3008
3024
|
getMainConfig: getMainConfig,
|
|
@@ -3549,7 +3565,7 @@ module.exports = require("json-bigint");
|
|
|
3549
3565
|
|
|
3550
3566
|
/***/ }),
|
|
3551
3567
|
|
|
3552
|
-
/***/
|
|
3568
|
+
/***/ 66:
|
|
3553
3569
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3554
3570
|
|
|
3555
3571
|
"use strict";
|
package/lib/tree.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 65);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -1250,6 +1250,21 @@ var getHour = function getHour(datetime) {
|
|
|
1250
1250
|
return datetimeObj.getHours();
|
|
1251
1251
|
};
|
|
1252
1252
|
|
|
1253
|
+
/**
|
|
1254
|
+
* getMyWinTop
|
|
1255
|
+
* @desc 获取同域的top窗口
|
|
1256
|
+
* @param {object} wind - window对象
|
|
1257
|
+
**/
|
|
1258
|
+
var getMyWinTop = function getMyWinTop(wind) {
|
|
1259
|
+
wind = wind ? wind : win;
|
|
1260
|
+
try {
|
|
1261
|
+
wind.parent.document;
|
|
1262
|
+
return getMyWinTop(wind.parent);
|
|
1263
|
+
} catch (error) {
|
|
1264
|
+
return wind;
|
|
1265
|
+
}
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1253
1268
|
/**
|
|
1254
1269
|
* getWeekNumber
|
|
1255
1270
|
* @desc 当年第几周
|
|
@@ -3003,6 +3018,7 @@ var watermark = function watermark(option) {
|
|
|
3003
3018
|
getCurrentDate: getCurrentDate,
|
|
3004
3019
|
getCurrentDateTime: getCurrentDateTime,
|
|
3005
3020
|
getHour: getHour,
|
|
3021
|
+
getMyWinTop: getMyWinTop,
|
|
3006
3022
|
getWeekNumber: getWeekNumber,
|
|
3007
3023
|
getLength: getLength,
|
|
3008
3024
|
getMainConfig: getMainConfig,
|
|
@@ -3549,7 +3565,7 @@ module.exports = require("json-bigint");
|
|
|
3549
3565
|
|
|
3550
3566
|
/***/ }),
|
|
3551
3567
|
|
|
3552
|
-
/***/
|
|
3568
|
+
/***/ 65:
|
|
3553
3569
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3554
3570
|
|
|
3555
3571
|
"use strict";
|
package/lib/upload.js
CHANGED
|
@@ -1249,6 +1249,21 @@ var getHour = function getHour(datetime) {
|
|
|
1249
1249
|
return datetimeObj.getHours();
|
|
1250
1250
|
};
|
|
1251
1251
|
|
|
1252
|
+
/**
|
|
1253
|
+
* getMyWinTop
|
|
1254
|
+
* @desc 获取同域的top窗口
|
|
1255
|
+
* @param {object} wind - window对象
|
|
1256
|
+
**/
|
|
1257
|
+
var getMyWinTop = function getMyWinTop(wind) {
|
|
1258
|
+
wind = wind ? wind : win;
|
|
1259
|
+
try {
|
|
1260
|
+
wind.parent.document;
|
|
1261
|
+
return getMyWinTop(wind.parent);
|
|
1262
|
+
} catch (error) {
|
|
1263
|
+
return wind;
|
|
1264
|
+
}
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1252
1267
|
/**
|
|
1253
1268
|
* getWeekNumber
|
|
1254
1269
|
* @desc 当年第几周
|
|
@@ -3002,6 +3017,7 @@ var watermark = function watermark(option) {
|
|
|
3002
3017
|
getCurrentDate: getCurrentDate,
|
|
3003
3018
|
getCurrentDateTime: getCurrentDateTime,
|
|
3004
3019
|
getHour: getHour,
|
|
3020
|
+
getMyWinTop: getMyWinTop,
|
|
3005
3021
|
getWeekNumber: getWeekNumber,
|
|
3006
3022
|
getLength: getLength,
|
|
3007
3023
|
getMainConfig: getMainConfig,
|
|
@@ -3747,8 +3763,8 @@ module.exports = require("js-base64");
|
|
|
3747
3763
|
// ESM COMPAT FLAG
|
|
3748
3764
|
__webpack_require__.r(__webpack_exports__);
|
|
3749
3765
|
|
|
3750
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=
|
|
3751
|
-
var
|
|
3766
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=3d54363f&
|
|
3767
|
+
var mainvue_type_template_id_3d54363f_render = function () {
|
|
3752
3768
|
var _vm = this
|
|
3753
3769
|
var _h = _vm.$createElement
|
|
3754
3770
|
var _c = _vm._self._c || _h
|
|
@@ -4128,10 +4144,10 @@ var mainvue_type_template_id_4eac4348_render = function () {
|
|
|
4128
4144
|
: _vm._e()
|
|
4129
4145
|
}
|
|
4130
4146
|
var staticRenderFns = []
|
|
4131
|
-
|
|
4147
|
+
mainvue_type_template_id_3d54363f_render._withStripped = true
|
|
4132
4148
|
|
|
4133
4149
|
|
|
4134
|
-
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=
|
|
4150
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=3d54363f&
|
|
4135
4151
|
|
|
4136
4152
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4137
4153
|
var api = __webpack_require__(1);
|
|
@@ -4892,16 +4908,7 @@ var _props;
|
|
|
4892
4908
|
this.$refs.upload.submit();
|
|
4893
4909
|
},
|
|
4894
4910
|
openKkfileview: function openKkfileview(file) {
|
|
4895
|
-
var host =
|
|
4896
|
-
try {
|
|
4897
|
-
host = util["a" /* default */].win.top.location.origin;
|
|
4898
|
-
} catch (error) {
|
|
4899
|
-
try {
|
|
4900
|
-
host = util["a" /* default */].win.parent.location.origin;
|
|
4901
|
-
} catch (error) {
|
|
4902
|
-
host = util["a" /* default */].win.location.origin;
|
|
4903
|
-
}
|
|
4904
|
-
}
|
|
4911
|
+
var host = util["a" /* default */].win.location.origin;
|
|
4905
4912
|
if (this.host) {
|
|
4906
4913
|
if (util["a" /* default */].startWith(this.host, 'http')) {
|
|
4907
4914
|
host = this.host;
|
|
@@ -5238,7 +5245,7 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
5238
5245
|
|
|
5239
5246
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
5240
5247
|
src_mainvue_type_script_lang_js_,
|
|
5241
|
-
|
|
5248
|
+
mainvue_type_template_id_3d54363f_render,
|
|
5242
5249
|
staticRenderFns,
|
|
5243
5250
|
false,
|
|
5244
5251
|
null,
|
package/lib/utils/util.js
CHANGED
|
@@ -1167,6 +1167,21 @@ var getHour = function getHour(datetime) {
|
|
|
1167
1167
|
return datetimeObj.getHours();
|
|
1168
1168
|
};
|
|
1169
1169
|
|
|
1170
|
+
/**
|
|
1171
|
+
* getMyWinTop
|
|
1172
|
+
* @desc 获取同域的top窗口
|
|
1173
|
+
* @param {object} wind - window对象
|
|
1174
|
+
**/
|
|
1175
|
+
var getMyWinTop = function getMyWinTop(wind) {
|
|
1176
|
+
wind = wind ? wind : win;
|
|
1177
|
+
try {
|
|
1178
|
+
wind.parent.document;
|
|
1179
|
+
return getMyWinTop(wind.parent);
|
|
1180
|
+
} catch (error) {
|
|
1181
|
+
return wind;
|
|
1182
|
+
}
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1170
1185
|
/**
|
|
1171
1186
|
* getWeekNumber
|
|
1172
1187
|
* @desc 当年第几周
|
|
@@ -2920,6 +2935,7 @@ exports.default = {
|
|
|
2920
2935
|
getCurrentDate: getCurrentDate,
|
|
2921
2936
|
getCurrentDateTime: getCurrentDateTime,
|
|
2922
2937
|
getHour: getHour,
|
|
2938
|
+
getMyWinTop: getMyWinTop,
|
|
2923
2939
|
getWeekNumber: getWeekNumber,
|
|
2924
2940
|
getLength: getLength,
|
|
2925
2941
|
getMainConfig: getMainConfig,
|
package/lib/wujie.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 68);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -1250,6 +1250,21 @@ var getHour = function getHour(datetime) {
|
|
|
1250
1250
|
return datetimeObj.getHours();
|
|
1251
1251
|
};
|
|
1252
1252
|
|
|
1253
|
+
/**
|
|
1254
|
+
* getMyWinTop
|
|
1255
|
+
* @desc 获取同域的top窗口
|
|
1256
|
+
* @param {object} wind - window对象
|
|
1257
|
+
**/
|
|
1258
|
+
var getMyWinTop = function getMyWinTop(wind) {
|
|
1259
|
+
wind = wind ? wind : win;
|
|
1260
|
+
try {
|
|
1261
|
+
wind.parent.document;
|
|
1262
|
+
return getMyWinTop(wind.parent);
|
|
1263
|
+
} catch (error) {
|
|
1264
|
+
return wind;
|
|
1265
|
+
}
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1253
1268
|
/**
|
|
1254
1269
|
* getWeekNumber
|
|
1255
1270
|
* @desc 当年第几周
|
|
@@ -3003,6 +3018,7 @@ var watermark = function watermark(option) {
|
|
|
3003
3018
|
getCurrentDate: getCurrentDate,
|
|
3004
3019
|
getCurrentDateTime: getCurrentDateTime,
|
|
3005
3020
|
getHour: getHour,
|
|
3021
|
+
getMyWinTop: getMyWinTop,
|
|
3006
3022
|
getWeekNumber: getWeekNumber,
|
|
3007
3023
|
getLength: getLength,
|
|
3008
3024
|
getMainConfig: getMainConfig,
|
|
@@ -3549,7 +3565,7 @@ module.exports = require("json-bigint");
|
|
|
3549
3565
|
|
|
3550
3566
|
/***/ }),
|
|
3551
3567
|
|
|
3552
|
-
/***/
|
|
3568
|
+
/***/ 68:
|
|
3553
3569
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3554
3570
|
|
|
3555
3571
|
"use strict";
|
package/lib/wxlogin.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 69);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -1250,6 +1250,21 @@ var getHour = function getHour(datetime) {
|
|
|
1250
1250
|
return datetimeObj.getHours();
|
|
1251
1251
|
};
|
|
1252
1252
|
|
|
1253
|
+
/**
|
|
1254
|
+
* getMyWinTop
|
|
1255
|
+
* @desc 获取同域的top窗口
|
|
1256
|
+
* @param {object} wind - window对象
|
|
1257
|
+
**/
|
|
1258
|
+
var getMyWinTop = function getMyWinTop(wind) {
|
|
1259
|
+
wind = wind ? wind : win;
|
|
1260
|
+
try {
|
|
1261
|
+
wind.parent.document;
|
|
1262
|
+
return getMyWinTop(wind.parent);
|
|
1263
|
+
} catch (error) {
|
|
1264
|
+
return wind;
|
|
1265
|
+
}
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1253
1268
|
/**
|
|
1254
1269
|
* getWeekNumber
|
|
1255
1270
|
* @desc 当年第几周
|
|
@@ -3003,6 +3018,7 @@ var watermark = function watermark(option) {
|
|
|
3003
3018
|
getCurrentDate: getCurrentDate,
|
|
3004
3019
|
getCurrentDateTime: getCurrentDateTime,
|
|
3005
3020
|
getHour: getHour,
|
|
3021
|
+
getMyWinTop: getMyWinTop,
|
|
3006
3022
|
getWeekNumber: getWeekNumber,
|
|
3007
3023
|
getLength: getLength,
|
|
3008
3024
|
getMainConfig: getMainConfig,
|
|
@@ -3549,7 +3565,7 @@ module.exports = require("json-bigint");
|
|
|
3549
3565
|
|
|
3550
3566
|
/***/ }),
|
|
3551
3567
|
|
|
3552
|
-
/***/
|
|
3568
|
+
/***/ 69:
|
|
3553
3569
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3554
3570
|
|
|
3555
3571
|
"use strict";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eoss-ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.46",
|
|
4
4
|
"description": "eoss内部业务组件",
|
|
5
5
|
"main": "lib/eoss-ui.common.js",
|
|
6
6
|
"files": [
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"cp-cli": "^1.0.2",
|
|
97
97
|
"cross-env": "^3.1.3",
|
|
98
98
|
"css-loader": "^2.1.0",
|
|
99
|
-
"eoss-element": "^0.2.
|
|
99
|
+
"eoss-element": "^0.2.86",
|
|
100
100
|
"es6-promise": "^4.0.5",
|
|
101
101
|
"eslint": "4.18.2",
|
|
102
102
|
"eslint-config-elemefe": "0.1.1",
|
|
@@ -70,18 +70,15 @@ export default {
|
|
|
70
70
|
evt.preventDefault();
|
|
71
71
|
let width = 0;
|
|
72
72
|
let height = 0;
|
|
73
|
+
let win;
|
|
73
74
|
try {
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
util.win.top.document;
|
|
76
|
+
win = util.win.top;
|
|
76
77
|
} catch (error) {
|
|
77
|
-
|
|
78
|
-
width = util.win.parent.screen.availWidth - 10;
|
|
79
|
-
height = util.win.parent.screen.availHeight - 60;
|
|
80
|
-
} catch (error) {
|
|
81
|
-
width = util.win.screen.availWidth - 10;
|
|
82
|
-
height = util.win.screen.availHeight - 60;
|
|
83
|
-
}
|
|
78
|
+
win = util.getMyWinTop();
|
|
84
79
|
}
|
|
80
|
+
width = win.screen.availWidth - 10;
|
|
81
|
+
height = win.screen.availHeight - 60;
|
|
85
82
|
let flag = true;
|
|
86
83
|
if (this.esForm) {
|
|
87
84
|
let params = util.getParams({ url: this.link });
|