eoss-ui 0.5.93 → 0.5.95

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 (93) hide show
  1. package/lib/.DS_Store +0 -0
  2. package/lib/button-group.js +198 -210
  3. package/lib/button.js +2 -2
  4. package/lib/calendar.js +2 -2
  5. package/lib/card.js +2 -2
  6. package/lib/cascader.js +2 -2
  7. package/lib/checkbox-group.js +3 -2
  8. package/lib/clients.js +2 -2
  9. package/lib/config/image.js +3 -0
  10. package/lib/data-table-form.js +3 -2
  11. package/lib/data-table.js +31 -25
  12. package/lib/date-picker.js +2 -2
  13. package/lib/dialog.js +6 -5
  14. package/lib/enterprise.js +2 -2
  15. package/lib/eoss-ui.common.js +466 -327
  16. package/lib/error-page.js +2 -2
  17. package/lib/flow-group.js +2 -2
  18. package/lib/flow-list.js +4 -4
  19. package/lib/flow.js +6 -5
  20. package/lib/form.js +6 -5
  21. package/lib/handle-user.js +2 -2
  22. package/lib/handler.js +203 -200
  23. package/lib/icon.js +9 -9
  24. package/lib/icons.js +4 -4
  25. package/lib/index.js +1 -1
  26. package/lib/input-number.js +2 -2
  27. package/lib/input.js +2 -2
  28. package/lib/label.js +2 -2
  29. package/lib/layout.js +2 -2
  30. package/lib/login.js +132 -18
  31. package/lib/main.js +91 -54
  32. package/lib/menu.js +2 -2
  33. package/lib/nav.js +2 -2
  34. package/lib/notify.js +2 -2
  35. package/lib/page.js +2 -2
  36. package/lib/pagination.js +2 -2
  37. package/lib/player.js +8 -8
  38. package/lib/qr-code.js +4 -4
  39. package/lib/radio-group.js +2 -2
  40. package/lib/retrial-auth.js +2 -2
  41. package/lib/select-ganged.js +2 -2
  42. package/lib/select.js +2 -2
  43. package/lib/selector-panel.js +6 -5
  44. package/lib/selector.js +11 -11
  45. package/lib/sizer.js +2 -2
  46. package/lib/steps.js +2 -2
  47. package/lib/switch.js +9 -9
  48. package/lib/table-form.js +10 -7
  49. package/lib/tabs-panel.js +2 -2
  50. package/lib/tabs.js +2 -2
  51. package/lib/theme-chalk/base.css +1 -1
  52. package/lib/theme-chalk/index.css +1 -1
  53. package/lib/theme-chalk/main.css +1 -1
  54. package/lib/theme-chalk/menu.css +1 -1
  55. package/lib/theme-chalk/simplicity.css +1 -1
  56. package/lib/theme-chalk/sizer.css +1 -1
  57. package/lib/theme-chalk/upload.css +1 -1
  58. package/lib/tips.js +2 -2
  59. package/lib/toolbar.js +2 -2
  60. package/lib/tree-group.js +2 -2
  61. package/lib/tree.js +2 -2
  62. package/lib/upload.js +14 -13
  63. package/lib/wujie.js +2 -2
  64. package/lib/wxlogin.js +145 -145
  65. package/package.json +1 -1
  66. package/packages/.DS_Store +0 -0
  67. package/packages/data-table/src/main.vue +7 -4
  68. package/packages/form/src/main.vue +1 -1
  69. package/packages/form/src/table.vue +3 -0
  70. package/packages/handler/.DS_Store +0 -0
  71. package/packages/handler/src/main.vue +5 -6
  72. package/packages/login/.DS_Store +0 -0
  73. package/packages/login/src/main.vue +92 -14
  74. package/packages/main/.DS_Store +0 -0
  75. package/packages/main/src/.DS_Store +0 -0
  76. package/packages/main/src/default/index.vue +36 -36
  77. package/packages/main/src/main.vue +27 -4
  78. package/packages/main/src/simplicity/index.vue +2 -3
  79. package/packages/theme-chalk/lib/base.css +1 -1
  80. package/packages/theme-chalk/lib/index.css +1 -1
  81. package/packages/theme-chalk/lib/main.css +1 -1
  82. package/packages/theme-chalk/lib/menu.css +1 -1
  83. package/packages/theme-chalk/lib/simplicity.css +1 -1
  84. package/packages/theme-chalk/lib/sizer.css +1 -1
  85. package/packages/theme-chalk/lib/upload.css +1 -1
  86. package/packages/theme-chalk/src/.DS_Store +0 -0
  87. package/packages/theme-chalk/src/base.scss +41 -0
  88. package/packages/theme-chalk/src/main.scss +3 -0
  89. package/packages/theme-chalk/src/menu.scss +8 -0
  90. package/packages/upload/src/main.vue +8 -3
  91. package/src/.DS_Store +0 -0
  92. package/src/config/image.js +2 -0
  93. package/src/index.js +1 -1
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 = 80);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 81);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 80:
195
+ /***/ 81:
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 = 66);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 67);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3764,7 +3764,7 @@ module.exports = require("json-bigint");
3764
3764
 
3765
3765
  /***/ }),
3766
3766
 
3767
- /***/ 66:
3767
+ /***/ 67:
3768
3768
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3769
3769
 
3770
3770
  "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 = 65);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 66);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3771,7 +3771,7 @@ module.exports = require("json-bigint");
3771
3771
 
3772
3772
  /***/ }),
3773
3773
 
3774
- /***/ 65:
3774
+ /***/ 66:
3775
3775
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3776
3776
 
3777
3777
  "use strict";
package/lib/upload.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 = 35);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 36);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -3954,13 +3954,13 @@ window.__store = store;
3954
3954
  /* 22 */,
3955
3955
  /* 23 */,
3956
3956
  /* 24 */,
3957
- /* 25 */
3957
+ /* 25 */,
3958
+ /* 26 */
3958
3959
  /***/ (function(module, exports) {
3959
3960
 
3960
3961
  module.exports = require("js-base64");
3961
3962
 
3962
3963
  /***/ }),
3963
- /* 26 */,
3964
3964
  /* 27 */,
3965
3965
  /* 28 */,
3966
3966
  /* 29 */,
@@ -3969,15 +3969,16 @@ module.exports = require("js-base64");
3969
3969
  /* 32 */,
3970
3970
  /* 33 */,
3971
3971
  /* 34 */,
3972
- /* 35 */
3972
+ /* 35 */,
3973
+ /* 36 */
3973
3974
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3974
3975
 
3975
3976
  "use strict";
3976
3977
  // ESM COMPAT FLAG
3977
3978
  __webpack_require__.r(__webpack_exports__);
3978
3979
 
3979
- // 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=12134e47&
3980
- var mainvue_type_template_id_12134e47_render = function () {
3980
+ // 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=2842c2fa&
3981
+ var mainvue_type_template_id_2842c2fa_render = function () {
3981
3982
  var _vm = this
3982
3983
  var _h = _vm.$createElement
3983
3984
  var _c = _vm._self._c || _h
@@ -4358,10 +4359,10 @@ var mainvue_type_template_id_12134e47_render = function () {
4358
4359
  : _vm._e()
4359
4360
  }
4360
4361
  var staticRenderFns = []
4361
- mainvue_type_template_id_12134e47_render._withStripped = true
4362
+ mainvue_type_template_id_2842c2fa_render._withStripped = true
4362
4363
 
4363
4364
 
4364
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=12134e47&
4365
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=2842c2fa&
4365
4366
 
4366
4367
  // EXTERNAL MODULE: ./src/config/api.js
4367
4368
  var api = __webpack_require__(1);
@@ -4392,7 +4393,7 @@ var util = __webpack_require__(0);
4392
4393
  var store = __webpack_require__(12);
4393
4394
 
4394
4395
  // EXTERNAL MODULE: external "js-base64"
4395
- var external_js_base64_ = __webpack_require__(25);
4396
+ var external_js_base64_ = __webpack_require__(26);
4396
4397
 
4397
4398
  // 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&
4398
4399
  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; };
@@ -4984,8 +4985,6 @@ var _props;
4984
4985
  });
4985
4986
  this.filesTotalSize = filesTotalSize;
4986
4987
  this.$emit('input', val);
4987
- } else {
4988
- this.getFiles(this.params);
4989
4988
  }
4990
4989
  }
4991
4990
  },
@@ -5094,6 +5093,7 @@ var _props;
5094
5093
  dochubConfig: _this3.dochubConfig
5095
5094
  });
5096
5095
  }
5096
+ _this3.getFiles(_this3.params);
5097
5097
  }
5098
5098
  }).catch(function (err) {
5099
5099
  if (err.message && err.message !== 'canceled') {
@@ -5109,9 +5109,10 @@ var _props;
5109
5109
  if (!this.show || this.fileList && Array.isArray(this.fileList) && this.fileList.length || this.requiredOwnId && !Object.prototype.hasOwnProperty.call(params, 'ownId')) {
5110
5110
  return false;
5111
5111
  }
5112
+ var url = typeof this.fileList === 'string' ? this.fileList : this.dochubConfig.getDocumentList ? this.dochubConfig.getDocumentList : api["z" /* getAdjunctFileInfos */];
5112
5113
  util["a" /* default */].ajax({
5113
5114
  method: this.method,
5114
- url: this.getAdjunctFileInfos,
5115
+ url: url,
5115
5116
  data: params,
5116
5117
  params: params,
5117
5118
  format: false
@@ -5506,7 +5507,7 @@ var componentNormalizer = __webpack_require__(3);
5506
5507
 
5507
5508
  var component = Object(componentNormalizer["a" /* default */])(
5508
5509
  src_mainvue_type_script_lang_js_,
5509
- mainvue_type_template_id_12134e47_render,
5510
+ mainvue_type_template_id_2842c2fa_render,
5510
5511
  staticRenderFns,
5511
5512
  false,
5512
5513
  null,
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 = 68);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 69);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3764,7 +3764,7 @@ module.exports = require("json-bigint");
3764
3764
 
3765
3765
  /***/ }),
3766
3766
 
3767
- /***/ 68:
3767
+ /***/ 69:
3768
3768
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3769
3769
 
3770
3770
  "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 = 69);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 70);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3764,7 +3764,150 @@ module.exports = require("json-bigint");
3764
3764
 
3765
3765
  /***/ }),
3766
3766
 
3767
- /***/ 69:
3767
+ /***/ 7:
3768
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3769
+
3770
+ "use strict";
3771
+ /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
3772
+ /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
3773
+ /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
3774
+ /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
3775
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3776
+
3777
+
3778
+
3779
+
3780
+ var WebSocket = function () {
3781
+ // 构造函数
3782
+ function WebSocket() {
3783
+ _classCallCheck(this, WebSocket);
3784
+
3785
+ this.host = sessionStorage.getItem('wshost') || '';
3786
+ this.tryTimes = 1; // 重连次数
3787
+ this.callback = null; // 回调函数
3788
+ this.client = null; // stomp对象
3789
+ this.reconTimeout = null; // 重连延时器
3790
+ this.debug = true; // 调试
3791
+ this.interval = 20; // 重连间隔时间
3792
+ this.vm = null;
3793
+ this.nextDate = 0;
3794
+ this.connects = 1;
3795
+ this.recon = false;
3796
+ this.sendTimeout = null;
3797
+ this.socket = null;
3798
+ this.subscription = null;
3799
+ }
3800
+
3801
+ /** socket连接 */
3802
+
3803
+
3804
+ WebSocket.prototype.connect = function connect() {
3805
+ var _this = this;
3806
+
3807
+ if (!this.client) {
3808
+ // 连接SockJS
3809
+ this.socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url, { timeout: 60000 });
3810
+ this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(this.socket);
3811
+ }
3812
+
3813
+ // 日志不打印
3814
+ if (!this.debug) {
3815
+ this.client.debug = function () {};
3816
+ }
3817
+
3818
+ // 向服务器发起websocket连接
3819
+ this.client.connect({}, function () {
3820
+ _this.recon = true;
3821
+ // tryTimes定义重置
3822
+ _this.connects = 1;
3823
+ // 订阅消息
3824
+ _this.subscribe();
3825
+ }, function (error) {
3826
+ _this.unsubscribe();
3827
+ _this.client = null;
3828
+ var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
3829
+ if (_this.connects > 5 && diffSecond < _this.interval) {
3830
+ _this.error && _this.error(error);
3831
+ } else {
3832
+ _this.reconTimeout = setTimeout(function () {
3833
+ _this.connect();
3834
+ _this.connects++;
3835
+ }, 5000);
3836
+ }
3837
+ });
3838
+ }; // 清除订阅
3839
+
3840
+
3841
+ WebSocket.prototype.unsubscribe = function unsubscribe() {
3842
+ if (this.subscription) {
3843
+ this.subscription.unsubscribe();
3844
+ this.subscription = null;
3845
+ }
3846
+ };
3847
+ /** 订阅服务端 */
3848
+
3849
+
3850
+ WebSocket.prototype.subscribe = function subscribe() {
3851
+ var _this2 = this;
3852
+
3853
+ // 订阅服务端提供的某个topic
3854
+ this.subscription = this.client.subscribe(this.take, function (response) {
3855
+ if (response && (_this2.callback || _this2.success)) {
3856
+ var callback = _this2.callback || _this2.success;
3857
+ callback(JSON.parse(response.body));
3858
+ }
3859
+ });
3860
+ };
3861
+
3862
+ /** 赋值、初始化socket */
3863
+
3864
+
3865
+ WebSocket.prototype.init = function init(option, vm) {
3866
+ for (var i in option) {
3867
+ this[i] = option[i];
3868
+ }
3869
+ this.vm = vm;
3870
+ // 初始化连接
3871
+ this.connect();
3872
+ };
3873
+
3874
+ /** 发送消息 */
3875
+
3876
+
3877
+ WebSocket.prototype.send = function send(data) {
3878
+ var _this3 = this;
3879
+
3880
+ if (this.recon) {
3881
+ clearTimeout(this.sendTimeout);
3882
+ this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
3883
+ } else {
3884
+ this.sendTimeout = setTimeout(function () {
3885
+ _this3.send(data);
3886
+ }, 1000);
3887
+ }
3888
+ };
3889
+
3890
+ /** 销毁 */
3891
+
3892
+
3893
+ WebSocket.prototype.destroy = function destroy() {
3894
+ // 断开连接,清除定时器
3895
+ this.unsubscribe();
3896
+ if (this.client) {
3897
+ this.client.disconnect();
3898
+ };
3899
+ this.reconTimeout && clearTimeout(this.reconTimeout);
3900
+ this.sendTimeout && clearTimeout(this.sendTimeout);
3901
+ };
3902
+
3903
+ return WebSocket;
3904
+ }();
3905
+
3906
+ /* harmony default export */ __webpack_exports__["a"] = (WebSocket);
3907
+
3908
+ /***/ }),
3909
+
3910
+ /***/ 70:
3768
3911
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3769
3912
 
3770
3913
  "use strict";
@@ -3969,149 +4112,6 @@ main.install = function (Vue) {
3969
4112
 
3970
4113
  /***/ }),
3971
4114
 
3972
- /***/ 7:
3973
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3974
-
3975
- "use strict";
3976
- /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
3977
- /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
3978
- /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
3979
- /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
3980
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3981
-
3982
-
3983
-
3984
-
3985
- var WebSocket = function () {
3986
- // 构造函数
3987
- function WebSocket() {
3988
- _classCallCheck(this, WebSocket);
3989
-
3990
- this.host = sessionStorage.getItem('wshost') || '';
3991
- this.tryTimes = 1; // 重连次数
3992
- this.callback = null; // 回调函数
3993
- this.client = null; // stomp对象
3994
- this.reconTimeout = null; // 重连延时器
3995
- this.debug = true; // 调试
3996
- this.interval = 20; // 重连间隔时间
3997
- this.vm = null;
3998
- this.nextDate = 0;
3999
- this.connects = 1;
4000
- this.recon = false;
4001
- this.sendTimeout = null;
4002
- this.socket = null;
4003
- this.subscription = null;
4004
- }
4005
-
4006
- /** socket连接 */
4007
-
4008
-
4009
- WebSocket.prototype.connect = function connect() {
4010
- var _this = this;
4011
-
4012
- if (!this.client) {
4013
- // 连接SockJS
4014
- this.socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url, { timeout: 60000 });
4015
- this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(this.socket);
4016
- }
4017
-
4018
- // 日志不打印
4019
- if (!this.debug) {
4020
- this.client.debug = function () {};
4021
- }
4022
-
4023
- // 向服务器发起websocket连接
4024
- this.client.connect({}, function () {
4025
- _this.recon = true;
4026
- // tryTimes定义重置
4027
- _this.connects = 1;
4028
- // 订阅消息
4029
- _this.subscribe();
4030
- }, function (error) {
4031
- _this.unsubscribe();
4032
- _this.client = null;
4033
- var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
4034
- if (_this.connects > 5 && diffSecond < _this.interval) {
4035
- _this.error && _this.error(error);
4036
- } else {
4037
- _this.reconTimeout = setTimeout(function () {
4038
- _this.connect();
4039
- _this.connects++;
4040
- }, 5000);
4041
- }
4042
- });
4043
- }; // 清除订阅
4044
-
4045
-
4046
- WebSocket.prototype.unsubscribe = function unsubscribe() {
4047
- if (this.subscription) {
4048
- this.subscription.unsubscribe();
4049
- this.subscription = null;
4050
- }
4051
- };
4052
- /** 订阅服务端 */
4053
-
4054
-
4055
- WebSocket.prototype.subscribe = function subscribe() {
4056
- var _this2 = this;
4057
-
4058
- // 订阅服务端提供的某个topic
4059
- this.subscription = this.client.subscribe(this.take, function (response) {
4060
- if (response && (_this2.callback || _this2.success)) {
4061
- var callback = _this2.callback || _this2.success;
4062
- callback(JSON.parse(response.body));
4063
- }
4064
- });
4065
- };
4066
-
4067
- /** 赋值、初始化socket */
4068
-
4069
-
4070
- WebSocket.prototype.init = function init(option, vm) {
4071
- for (var i in option) {
4072
- this[i] = option[i];
4073
- }
4074
- this.vm = vm;
4075
- // 初始化连接
4076
- this.connect();
4077
- };
4078
-
4079
- /** 发送消息 */
4080
-
4081
-
4082
- WebSocket.prototype.send = function send(data) {
4083
- var _this3 = this;
4084
-
4085
- if (this.recon) {
4086
- clearTimeout(this.sendTimeout);
4087
- this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
4088
- } else {
4089
- this.sendTimeout = setTimeout(function () {
4090
- _this3.send(data);
4091
- }, 1000);
4092
- }
4093
- };
4094
-
4095
- /** 销毁 */
4096
-
4097
-
4098
- WebSocket.prototype.destroy = function destroy() {
4099
- // 断开连接,清除定时器
4100
- this.unsubscribe();
4101
- if (this.client) {
4102
- this.client.disconnect();
4103
- };
4104
- this.reconTimeout && clearTimeout(this.reconTimeout);
4105
- this.sendTimeout && clearTimeout(this.sendTimeout);
4106
- };
4107
-
4108
- return WebSocket;
4109
- }();
4110
-
4111
- /* harmony default export */ __webpack_exports__["a"] = (WebSocket);
4112
-
4113
- /***/ }),
4114
-
4115
4115
  /***/ 8:
4116
4116
  /***/ (function(module, exports) {
4117
4117
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.93",
3
+ "version": "0.5.95",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
Binary file
@@ -97,11 +97,14 @@
97
97
  ></es-icon>
98
98
  </template>
99
99
  </el-table-column>
100
- <el-table-column
100
+ <template
101
101
  v-else-if="item.type === 'index' || item.type === 'selection'"
102
- :key="item.key || item.label || item.title || index"
103
- v-bind="dragSort ? { ...item, fixed: false } : item"
104
- ></el-table-column>
102
+ >
103
+ <el-table-column
104
+ :key="item.key || item.label || item.title || index"
105
+ v-bind="dragSort ? { ...item, fixed: false } : item"
106
+ ></el-table-column>
107
+ </template>
105
108
  <template v-else>
106
109
  <children
107
110
  :tag="item.tag"
@@ -2731,7 +2731,7 @@ export default {
2731
2731
  this.$refs.esForm &&
2732
2732
  this.$refs.esForm.$el.addEventListener('keyup', this.handleEnter);
2733
2733
  setTimeout(() => {
2734
- this.$refs.scrollbar.update();
2734
+ this.$refs.scrollbar && this.$refs.scrollbar.update();
2735
2735
  }, 3000);
2736
2736
  });
2737
2737
  },
@@ -1368,6 +1368,9 @@ export default {
1368
1368
  this.cols = widths;
1369
1369
  },
1370
1370
  handleClick(res) {
1371
+ if (res.event && typeof res.event === 'function') {
1372
+ res.event(res);
1373
+ }
1371
1374
  this.$emit('btnClick', res, this.models);
1372
1375
  this.$emit('btn-click', res, this.models);
1373
1376
  },
Binary file
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <ul class="es-handler">
3
- <li v-for="(item, index) in lists" :key="index" class="es-handler-item">
4
- <template v-if="!item.hide">
3
+ <template v-for="(item, index) in lists">
4
+ <li v-if="!item.hide" :key="index" class="es-handler-item">
5
5
  <es-handle-user
6
6
  v-if="item.type === 'user'"
7
7
  class="es-handler-user"
@@ -99,8 +99,8 @@
99
99
  :class="item.icon"
100
100
  @click.stop="handleClick(item)"
101
101
  ></div>
102
- </template>
103
- </li>
102
+ </li>
103
+ </template>
104
104
  </ul>
105
105
  </template>
106
106
  <script>
@@ -314,8 +314,7 @@ export default {
314
314
  'menus',
315
315
  'useCaseCodes',
316
316
  'mainConfig',
317
- 'jump',
318
- 'showLaunch'
317
+ 'jump'
319
318
  ]);
320
319
  if (this.onQuit && typeof this.onQuit === 'function') {
321
320
  this.onQuit();
Binary file