eoss-ui 0.5.12 → 0.5.14

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 (79) hide show
  1. package/lib/button-group.js +1 -13
  2. package/lib/button.js +3 -15
  3. package/lib/cascader.js +2 -2
  4. package/lib/checkbox-group.js +40 -34
  5. package/lib/data-table-form.js +4 -15
  6. package/lib/data-table.js +1219 -1529
  7. package/lib/date-picker.js +3 -15
  8. package/lib/dialog.js +10 -22
  9. package/lib/eoss-ui.common.js +1282 -1818
  10. package/lib/flow-group.js +1 -13
  11. package/lib/flow-list.js +3 -15
  12. package/lib/flow.js +43 -54
  13. package/lib/form.js +5 -22
  14. package/lib/handle-user.js +1 -13
  15. package/lib/handler.js +1 -13
  16. package/lib/icons.js +2 -2
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +3 -15
  19. package/lib/input.js +3 -15
  20. package/lib/label.js +5 -4
  21. package/lib/layout.js +166 -152
  22. package/lib/login.js +1 -13
  23. package/lib/main.js +15 -24
  24. package/lib/menu.js +2 -2
  25. package/lib/nav.js +10 -22
  26. package/lib/notify.js +2 -2
  27. package/lib/page.js +3 -15
  28. package/lib/pagination.js +2 -2
  29. package/lib/player.js +9 -21
  30. package/lib/qr-code.js +5 -17
  31. package/lib/radio-group.js +44 -34
  32. package/lib/retrial-auth.js +3 -15
  33. package/lib/select-ganged.js +26 -18
  34. package/lib/select.js +42 -31
  35. package/lib/selector-panel.js +7 -18
  36. package/lib/selector.js +5 -17
  37. package/lib/sizer.js +3 -15
  38. package/lib/steps.js +10 -22
  39. package/lib/switch.js +3 -15
  40. package/lib/table-form.js +3 -15
  41. package/lib/tabs-panel.js +2 -2
  42. package/lib/tabs.js +3 -15
  43. package/lib/theme-chalk/data-table.css +1 -1
  44. package/lib/theme-chalk/index.css +1 -1
  45. package/lib/theme-chalk/nav.css +1 -1
  46. package/lib/tips.js +3 -15
  47. package/lib/toolbar.js +2 -2
  48. package/lib/tree-group.js +3 -15
  49. package/lib/tree.js +3 -15
  50. package/lib/upload.js +4 -16
  51. package/lib/utils/util.js +1 -10
  52. package/lib/utils/webSocket.js +0 -3
  53. package/lib/wujie.js +3 -15
  54. package/lib/wxlogin.js +3 -15
  55. package/package.json +1 -1
  56. package/packages/checkbox-group/src/main.vue +20 -30
  57. package/packages/data-table/src/children.vue +4 -8
  58. package/packages/data-table/src/column.vue +522 -575
  59. package/packages/data-table/src/main.vue +123 -124
  60. package/packages/flow/src/component/taskUnionExamine.vue +1 -1
  61. package/packages/flow/src/main.vue +1 -1
  62. package/packages/flow/src/processForm.vue +1 -1
  63. package/packages/flow/src/processReject.vue +1 -1
  64. package/packages/flow/src/startTaskRead.vue +1 -1
  65. package/packages/form/src/main.vue +2 -7
  66. package/packages/label/src/main.vue +3 -2
  67. package/packages/main/src/main.vue +6 -4
  68. package/packages/radio-group/src/main.vue +20 -30
  69. package/packages/select/src/main.vue +20 -29
  70. package/packages/select-ganged/src/main.vue +1 -3
  71. package/packages/theme-chalk/lib/data-table.css +1 -1
  72. package/packages/theme-chalk/lib/index.css +1 -1
  73. package/packages/theme-chalk/lib/nav.css +1 -1
  74. package/packages/theme-chalk/src/data-table.scss +2 -1
  75. package/packages/theme-chalk/src/nav.scss +21 -2
  76. package/src/index.js +1 -1
  77. package/src/utils/util.js +1 -10
  78. package/src/utils/webSocket.js +0 -3
  79. package/packages/data-table/src/mixins/table.js +0 -12
@@ -1 +1 @@
1
- @charset "UTF-8";.es-nav,.es-nav .es-nav-main{display:inline-block;overflow:hidden}.es-nav{transition:all .2s;-webkit-transition:all .2s}.es-nav .el-menu,.es-nav .es-menu{background-color:transparent}.es-nav .es-nav-main{position:relative;height:100%;background-color:#002766;border-right:1px solid #d9d9d9}.es-nav .es-nav-main .es-nav-title{width:100%;height:45px;font-size:16px;line-height:44px;text-align:center;overflow:hidden;padding-right:32px;background-color:#096dd9;color:#fff;position:relative;z-index:1;-webkit-box-shadow:0 4px 10px 0 rgba(0,0,0,.2);box-shadow:0 4px 10px 0 rgba(0,0,0,.2)}.es-nav .es-nav-main .es-nav-title .es-collapse-handle{font-size:20px;cursor:pointer;position:absolute;right:12px;top:50%;margin-top:-10px;color:#fff}.es-nav .es-nav-main .es-nav-title .es-collapse-handle.es-icon-zengjiasuojinliang{right:50%;margin-right:-10px}.es-nav .es-nav-initial{width:70px;-webkit-box-shadow:0 6px 30px 5px rgba(0,0,0,.05),0 16px 24px 2px rgba(0,0,0,.04),0 8px 10px -5px rgba(0,0,0,.08);box-shadow:0 6px 30px 5px rgba(0,0,0,.05),0 16px 24px 2px rgba(0,0,0,.04),0 8px 10px -5px rgba(0,0,0,.08);position:relative;z-index:2;height:100%;background:#003a8c}.es-nav .es-nav-initial .el-menu-item,.es-nav .es-nav-initial .es-menu-vertical{height:auto}.es-nav .es-nav-initial .el-menu-item.is-active,.es-nav .es-nav-initial .es-menu-vertical.is-active{background:#096dd9}.es-nav.es-nav-biserial{position:relative}.es-nav.es-nav-biserial .es-nav-main{position:absolute;left:70px;top:0;bottom:0}.es-nav.es-nav-biserial .es-menu-title-vertical{margin-right:0}
1
+ @charset "UTF-8";.es-nav,.es-nav .es-nav-main{display:inline-block;overflow:hidden}.es-nav{transition:all .2s;-webkit-transition:all .2s}.es-nav .el-menu,.es-nav .es-menu{background-color:transparent}.es-nav .es-nav-main{position:relative;height:100%;background-color:#002766;border-right:1px solid #d9d9d9}.es-nav .es-nav-main .es-nav-title{width:100%;height:45px;font-size:15px;line-height:30px;text-align:center;overflow:hidden;padding:7px 32px 7px 0;background-color:#096dd9;color:#fff;position:relative;z-index:1;-webkit-box-shadow:0 4px 10px 0 rgba(0,0,0,.2);box-shadow:0 4px 10px 0 rgba(0,0,0,.2)}.es-nav .es-nav-main .es-nav-title .es-collapse-handle{font-size:20px;cursor:pointer;position:absolute;right:12px;top:50%;margin-top:-10px;color:#fff}.es-nav .es-nav-main .es-nav-title .es-collapse-handle.es-icon-zengjiasuojinliang{right:50%;margin-right:-10px}.es-nav .es-nav-main .es-nav-title .el-tooltip{text-align:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:relative;padding:0 4px}.es-nav .es-nav-main .es-nav-title .el-tooltip.es-nav-title-filter{padding-right:10px;cursor:pointer}.es-nav .es-nav-main .es-nav-title .el-tooltip.es-nav-title-filter .el-icon--right{position:absolute;right:6px;top:50%;margin-top:-4px}.es-nav .es-nav-initial{width:70px;-webkit-box-shadow:0 6px 30px 5px rgba(0,0,0,.05),0 16px 24px 2px rgba(0,0,0,.04),0 8px 10px -5px rgba(0,0,0,.08);box-shadow:0 6px 30px 5px rgba(0,0,0,.05),0 16px 24px 2px rgba(0,0,0,.04),0 8px 10px -5px rgba(0,0,0,.08);position:relative;z-index:2;height:100%;background:#003a8c}.es-nav .es-nav-initial .el-menu-item,.es-nav .es-nav-initial .es-menu-vertical{height:auto}.es-nav .es-nav-initial .el-menu-item.is-active,.es-nav .es-nav-initial .es-menu-vertical.is-active{background:#096dd9}.es-nav.es-nav-biserial{position:relative}.es-nav.es-nav-biserial .es-nav-main{position:absolute;left:70px;top:0;bottom:0}.es-nav.es-nav-biserial .es-menu-title-vertical{margin-right:0}
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 = 62);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 63);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -2523,7 +2523,6 @@ var setStorage = function setStorage(_ref14) {
2523
2523
  * @author huangbo
2524
2524
  * @date 2022年5月7日
2525
2525
  * @param {String} [url] - 连接地址
2526
- * @param {String} [send] - 是否发送消息
2527
2526
  * @param {String} [take] - 订阅地址
2528
2527
  * @param {String} [debug] - 调试
2529
2528
  * @param {String} [interval] - 重连间隔时间
@@ -2531,16 +2530,8 @@ var setStorage = function setStorage(_ref14) {
2531
2530
  * @param {Function} [error] - 重连间隔时间
2532
2531
  **/
2533
2532
  function socket(option, vm) {
2534
- var options = {};
2535
- for (var i in option) {
2536
- if (i === 'send') {
2537
- options['isSend'] = option[i];
2538
- } else {
2539
- options[i] = option[i];
2540
- }
2541
- }
2542
2533
  var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
2543
- socket.init(options, vm);
2534
+ socket.init(option, vm);
2544
2535
  return socket;
2545
2536
  }
2546
2537
  /**
@@ -3462,7 +3453,7 @@ module.exports = require("json-bigint");
3462
3453
 
3463
3454
  /***/ }),
3464
3455
 
3465
- /***/ 62:
3456
+ /***/ 63:
3466
3457
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3467
3458
 
3468
3459
  "use strict";
@@ -3723,7 +3714,6 @@ var WebSocket = function () {
3723
3714
  this.connects = 1;
3724
3715
  this.recon = false;
3725
3716
  this.sendTimeout = null;
3726
- this.isSend = false;
3727
3717
  }
3728
3718
 
3729
3719
  /** socket连接 */
@@ -3751,9 +3741,7 @@ var WebSocket = function () {
3751
3741
  // tryTimes定义重置
3752
3742
  _this.connects = 1;
3753
3743
  // 订阅消息
3754
- // if (!this.isSend) {
3755
3744
  _this.subscribe();
3756
- // }
3757
3745
  }, function (error) {
3758
3746
  var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
3759
3747
  if (_this.connects > 5 && diffSecond < _this.interval) {
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 = 78);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 79);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 78:
195
+ /***/ 79:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
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 = 64);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 65);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -2523,7 +2523,6 @@ var setStorage = function setStorage(_ref14) {
2523
2523
  * @author huangbo
2524
2524
  * @date 2022年5月7日
2525
2525
  * @param {String} [url] - 连接地址
2526
- * @param {String} [send] - 是否发送消息
2527
2526
  * @param {String} [take] - 订阅地址
2528
2527
  * @param {String} [debug] - 调试
2529
2528
  * @param {String} [interval] - 重连间隔时间
@@ -2531,16 +2530,8 @@ var setStorage = function setStorage(_ref14) {
2531
2530
  * @param {Function} [error] - 重连间隔时间
2532
2531
  **/
2533
2532
  function socket(option, vm) {
2534
- var options = {};
2535
- for (var i in option) {
2536
- if (i === 'send') {
2537
- options['isSend'] = option[i];
2538
- } else {
2539
- options[i] = option[i];
2540
- }
2541
- }
2542
2533
  var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
2543
- socket.init(options, vm);
2534
+ socket.init(option, vm);
2544
2535
  return socket;
2545
2536
  }
2546
2537
  /**
@@ -3462,7 +3453,7 @@ module.exports = require("json-bigint");
3462
3453
 
3463
3454
  /***/ }),
3464
3455
 
3465
- /***/ 64:
3456
+ /***/ 65:
3466
3457
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3467
3458
 
3468
3459
  "use strict";
@@ -4342,7 +4333,6 @@ var WebSocket = function () {
4342
4333
  this.connects = 1;
4343
4334
  this.recon = false;
4344
4335
  this.sendTimeout = null;
4345
- this.isSend = false;
4346
4336
  }
4347
4337
 
4348
4338
  /** socket连接 */
@@ -4370,9 +4360,7 @@ var WebSocket = function () {
4370
4360
  // tryTimes定义重置
4371
4361
  _this.connects = 1;
4372
4362
  // 订阅消息
4373
- // if (!this.isSend) {
4374
4363
  _this.subscribe();
4375
- // }
4376
4364
  }, function (error) {
4377
4365
  var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
4378
4366
  if (_this.connects > 5 && diffSecond < _this.interval) {
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 = 63);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 64);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -2523,7 +2523,6 @@ var setStorage = function setStorage(_ref14) {
2523
2523
  * @author huangbo
2524
2524
  * @date 2022年5月7日
2525
2525
  * @param {String} [url] - 连接地址
2526
- * @param {String} [send] - 是否发送消息
2527
2526
  * @param {String} [take] - 订阅地址
2528
2527
  * @param {String} [debug] - 调试
2529
2528
  * @param {String} [interval] - 重连间隔时间
@@ -2531,16 +2530,8 @@ var setStorage = function setStorage(_ref14) {
2531
2530
  * @param {Function} [error] - 重连间隔时间
2532
2531
  **/
2533
2532
  function socket(option, vm) {
2534
- var options = {};
2535
- for (var i in option) {
2536
- if (i === 'send') {
2537
- options['isSend'] = option[i];
2538
- } else {
2539
- options[i] = option[i];
2540
- }
2541
- }
2542
2533
  var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
2543
- socket.init(options, vm);
2534
+ socket.init(option, vm);
2544
2535
  return socket;
2545
2536
  }
2546
2537
  /**
@@ -3462,7 +3453,7 @@ module.exports = require("json-bigint");
3462
3453
 
3463
3454
  /***/ }),
3464
3455
 
3465
- /***/ 63:
3456
+ /***/ 64:
3466
3457
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3467
3458
 
3468
3459
  "use strict";
@@ -4411,7 +4402,6 @@ var WebSocket = function () {
4411
4402
  this.connects = 1;
4412
4403
  this.recon = false;
4413
4404
  this.sendTimeout = null;
4414
- this.isSend = false;
4415
4405
  }
4416
4406
 
4417
4407
  /** socket连接 */
@@ -4439,9 +4429,7 @@ var WebSocket = function () {
4439
4429
  // tryTimes定义重置
4440
4430
  _this.connects = 1;
4441
4431
  // 订阅消息
4442
- // if (!this.isSend) {
4443
4432
  _this.subscribe();
4444
- // }
4445
4433
  }, function (error) {
4446
4434
  var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
4447
4435
  if (_this.connects > 5 && diffSecond < _this.interval) {
package/lib/upload.js CHANGED
@@ -2522,7 +2522,6 @@ var setStorage = function setStorage(_ref14) {
2522
2522
  * @author huangbo
2523
2523
  * @date 2022年5月7日
2524
2524
  * @param {String} [url] - 连接地址
2525
- * @param {String} [send] - 是否发送消息
2526
2525
  * @param {String} [take] - 订阅地址
2527
2526
  * @param {String} [debug] - 调试
2528
2527
  * @param {String} [interval] - 重连间隔时间
@@ -2530,16 +2529,8 @@ var setStorage = function setStorage(_ref14) {
2530
2529
  * @param {Function} [error] - 重连间隔时间
2531
2530
  **/
2532
2531
  function socket(option, vm) {
2533
- var options = {};
2534
- for (var i in option) {
2535
- if (i === 'send') {
2536
- options['isSend'] = option[i];
2537
- } else {
2538
- options[i] = option[i];
2539
- }
2540
- }
2541
2532
  var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
2542
- socket.init(options, vm);
2533
+ socket.init(option, vm);
2543
2534
  return socket;
2544
2535
  }
2545
2536
  /**
@@ -3477,7 +3468,6 @@ var WebSocket = function () {
3477
3468
  this.connects = 1;
3478
3469
  this.recon = false;
3479
3470
  this.sendTimeout = null;
3480
- this.isSend = false;
3481
3471
  }
3482
3472
 
3483
3473
  /** socket连接 */
@@ -3505,9 +3495,7 @@ var WebSocket = function () {
3505
3495
  // tryTimes定义重置
3506
3496
  _this.connects = 1;
3507
3497
  // 订阅消息
3508
- // if (!this.isSend) {
3509
3498
  _this.subscribe();
3510
- // }
3511
3499
  }, function (error) {
3512
3500
  var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
3513
3501
  if (_this.connects > 5 && diffSecond < _this.interval) {
@@ -3640,13 +3628,13 @@ window.__store = store;
3640
3628
  /* 22 */,
3641
3629
  /* 23 */,
3642
3630
  /* 24 */,
3643
- /* 25 */
3631
+ /* 25 */,
3632
+ /* 26 */
3644
3633
  /***/ (function(module, exports) {
3645
3634
 
3646
3635
  module.exports = require("js-base64");
3647
3636
 
3648
3637
  /***/ }),
3649
- /* 26 */,
3650
3638
  /* 27 */,
3651
3639
  /* 28 */,
3652
3640
  /* 29 */,
@@ -4074,7 +4062,7 @@ var util = __webpack_require__(0);
4074
4062
  var store = __webpack_require__(11);
4075
4063
 
4076
4064
  // EXTERNAL MODULE: external "js-base64"
4077
- var external_js_base64_ = __webpack_require__(25);
4065
+ var external_js_base64_ = __webpack_require__(26);
4078
4066
 
4079
4067
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=script&lang=js&
4080
4068
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
package/lib/utils/util.js CHANGED
@@ -2440,7 +2440,6 @@ var setStorage = function setStorage(_ref14) {
2440
2440
  * @author huangbo
2441
2441
  * @date 2022年5月7日
2442
2442
  * @param {String} [url] - 连接地址
2443
- * @param {String} [send] - 是否发送消息
2444
2443
  * @param {String} [take] - 订阅地址
2445
2444
  * @param {String} [debug] - 调试
2446
2445
  * @param {String} [interval] - 重连间隔时间
@@ -2448,16 +2447,8 @@ var setStorage = function setStorage(_ref14) {
2448
2447
  * @param {Function} [error] - 重连间隔时间
2449
2448
  **/
2450
2449
  function socket(option, vm) {
2451
- var options = {};
2452
- for (var i in option) {
2453
- if (i === 'send') {
2454
- options['isSend'] = option[i];
2455
- } else {
2456
- options[i] = option[i];
2457
- }
2458
- }
2459
2450
  var socket = new _webSocket2.default();
2460
- socket.init(options, vm);
2451
+ socket.init(option, vm);
2461
2452
  return socket;
2462
2453
  }
2463
2454
  /**
@@ -29,7 +29,6 @@ var WebSocket = function () {
29
29
  this.connects = 1;
30
30
  this.recon = false;
31
31
  this.sendTimeout = null;
32
- this.isSend = false;
33
32
  }
34
33
 
35
34
  /** socket连接 */
@@ -57,9 +56,7 @@ var WebSocket = function () {
57
56
  // tryTimes定义重置
58
57
  _this.connects = 1;
59
58
  // 订阅消息
60
- // if (!this.isSend) {
61
59
  _this.subscribe();
62
- // }
63
60
  }, function (error) {
64
61
  var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
65
62
  if (_this.connects > 5 && diffSecond < _this.interval) {
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 = 66);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 67);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -2523,7 +2523,6 @@ var setStorage = function setStorage(_ref14) {
2523
2523
  * @author huangbo
2524
2524
  * @date 2022年5月7日
2525
2525
  * @param {String} [url] - 连接地址
2526
- * @param {String} [send] - 是否发送消息
2527
2526
  * @param {String} [take] - 订阅地址
2528
2527
  * @param {String} [debug] - 调试
2529
2528
  * @param {String} [interval] - 重连间隔时间
@@ -2531,16 +2530,8 @@ var setStorage = function setStorage(_ref14) {
2531
2530
  * @param {Function} [error] - 重连间隔时间
2532
2531
  **/
2533
2532
  function socket(option, vm) {
2534
- var options = {};
2535
- for (var i in option) {
2536
- if (i === 'send') {
2537
- options['isSend'] = option[i];
2538
- } else {
2539
- options[i] = option[i];
2540
- }
2541
- }
2542
2533
  var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
2543
- socket.init(options, vm);
2534
+ socket.init(option, vm);
2544
2535
  return socket;
2545
2536
  }
2546
2537
  /**
@@ -3462,7 +3453,7 @@ module.exports = require("json-bigint");
3462
3453
 
3463
3454
  /***/ }),
3464
3455
 
3465
- /***/ 66:
3456
+ /***/ 67:
3466
3457
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3467
3458
 
3468
3459
  "use strict";
@@ -3727,7 +3718,6 @@ var WebSocket = function () {
3727
3718
  this.connects = 1;
3728
3719
  this.recon = false;
3729
3720
  this.sendTimeout = null;
3730
- this.isSend = false;
3731
3721
  }
3732
3722
 
3733
3723
  /** socket连接 */
@@ -3755,9 +3745,7 @@ var WebSocket = function () {
3755
3745
  // tryTimes定义重置
3756
3746
  _this.connects = 1;
3757
3747
  // 订阅消息
3758
- // if (!this.isSend) {
3759
3748
  _this.subscribe();
3760
- // }
3761
3749
  }, function (error) {
3762
3750
  var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
3763
3751
  if (_this.connects > 5 && diffSecond < _this.interval) {
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 = 67);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 68);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -2523,7 +2523,6 @@ var setStorage = function setStorage(_ref14) {
2523
2523
  * @author huangbo
2524
2524
  * @date 2022年5月7日
2525
2525
  * @param {String} [url] - 连接地址
2526
- * @param {String} [send] - 是否发送消息
2527
2526
  * @param {String} [take] - 订阅地址
2528
2527
  * @param {String} [debug] - 调试
2529
2528
  * @param {String} [interval] - 重连间隔时间
@@ -2531,16 +2530,8 @@ var setStorage = function setStorage(_ref14) {
2531
2530
  * @param {Function} [error] - 重连间隔时间
2532
2531
  **/
2533
2532
  function socket(option, vm) {
2534
- var options = {};
2535
- for (var i in option) {
2536
- if (i === 'send') {
2537
- options['isSend'] = option[i];
2538
- } else {
2539
- options[i] = option[i];
2540
- }
2541
- }
2542
2533
  var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
2543
- socket.init(options, vm);
2534
+ socket.init(option, vm);
2544
2535
  return socket;
2545
2536
  }
2546
2537
  /**
@@ -3462,7 +3453,7 @@ module.exports = require("json-bigint");
3462
3453
 
3463
3454
  /***/ }),
3464
3455
 
3465
- /***/ 67:
3456
+ /***/ 68:
3466
3457
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3467
3458
 
3468
3459
  "use strict";
@@ -3681,7 +3672,6 @@ var WebSocket = function () {
3681
3672
  this.connects = 1;
3682
3673
  this.recon = false;
3683
3674
  this.sendTimeout = null;
3684
- this.isSend = false;
3685
3675
  }
3686
3676
 
3687
3677
  /** socket连接 */
@@ -3709,9 +3699,7 @@ var WebSocket = function () {
3709
3699
  // tryTimes定义重置
3710
3700
  _this.connects = 1;
3711
3701
  // 订阅消息
3712
- // if (!this.isSend) {
3713
3702
  _this.subscribe();
3714
- // }
3715
3703
  }, function (error) {
3716
3704
  var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
3717
3705
  if (_this.connects > 5 && diffSecond < _this.interval) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.12",
3
+ "version": "0.5.14",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -57,15 +57,13 @@
57
57
  import { findSysCode } from 'eoss-ui/src/config/api.js';
58
58
  import store from 'eoss-ui/src/utils/store';
59
59
  import util from 'eoss-ui/src/utils/util';
60
+ import bus from 'eoss-ui/src/utils/bus';
60
61
  export default {
61
62
  name: 'EsCheckboxGroup',
62
63
  inheritAttrs: false,
63
64
  inject: {
64
65
  esForm: {
65
66
  default: ''
66
- },
67
- sysCodes: {
68
- default: ''
69
67
  }
70
68
  },
71
69
  props: {
@@ -226,30 +224,11 @@ export default {
226
224
  handler() {
227
225
  this.url && this.getData(this.url);
228
226
  }
229
- },
230
- sysCodes: {
231
- deep: true,
232
- handler(val) {
233
- if (
234
- this.canceled &&
235
- val &&
236
- ((this.sysCode && val[this.sysCode]) ||
237
- (this.dataKey && val[this.dataKey]))
238
- ) {
239
- if (this.parseData) {
240
- this.options = this.parseData(
241
- JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey]))
242
- );
243
- } else {
244
- this.options = JSON.parse(
245
- JSON.stringify(val[this.sysCode || this.dataKey])
246
- );
247
- }
248
- }
249
- }
250
227
  }
251
228
  },
252
- created() {},
229
+ created() {
230
+ this.bindEventBus();
231
+ },
253
232
  mounted() {},
254
233
  methods: {
255
234
  getData(url, sysCode) {
@@ -283,11 +262,10 @@ export default {
283
262
  if (res.rCode === 0) {
284
263
  this.options = JSON.parse(JSON.stringify(res.results));
285
264
  if (sysCode || this.dataKey) {
286
- this.esForm &&
287
- this.esForm.setSysCodes(
288
- sysCode || this.dataKey,
289
- JSON.parse(JSON.stringify(this.options))
290
- );
265
+ bus.$emit(
266
+ sysCode || this.dataKey,
267
+ JSON.parse(JSON.stringify(this.options))
268
+ );
291
269
  store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
292
270
  }
293
271
  } else {
@@ -315,7 +293,19 @@ export default {
315
293
  );
316
294
  }
317
295
  return util.isObject(res) ? { ...attrs, ...res } : attrs;
296
+ },
297
+ setOptions(val) {
298
+ this.options = val;
299
+ },
300
+ bindEventBus() {
301
+ bus.$on(this.sysCode || this.dataKey, this.setOptions);
302
+ },
303
+ unbindEventBus() {
304
+ bus.$off(this.sysCode || this.dataKey, this.setOptions);
318
305
  }
306
+ },
307
+ beforeDestroy() {
308
+ this.unbindEventBus();
319
309
  }
320
310
  };
321
311
  </script>
@@ -1,18 +1,14 @@
1
1
  <template>
2
2
  <column v-bind="$attrs" v-on="$listeners">
3
- <template v-if="childrens && childrens.length">
3
+ <template v-if="childrens.length">
4
4
  <template v-for="(item, index) in childrens">
5
5
  <children
6
6
  v-if="item.hide !== true"
7
7
  :key="index"
8
8
  v-bind="{
9
9
  ...$attrs,
10
- filterIcon: false,
11
- item: item,
12
- width: item.width,
13
- index: index,
14
- children: item.children,
15
- childHead: item.childHead
10
+ ...item,
11
+ indexs: index
16
12
  }"
17
13
  v-on="$listeners"
18
14
  ></children
@@ -33,7 +29,7 @@ export default {
33
29
  },
34
30
  computed: {
35
31
  childrens() {
36
- return this.children || this.childHead;
32
+ return this.children || this.childHead || [];
37
33
  }
38
34
  }
39
35
  };