eoss-ui 0.5.11 → 0.5.12

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 (65) hide show
  1. package/lib/button-group.js +228 -124
  2. package/lib/button.js +167 -75
  3. package/lib/card.js +2 -2
  4. package/lib/cascader.js +2 -2
  5. package/lib/checkbox-group.js +166 -75
  6. package/lib/clients.js +2 -2
  7. package/lib/data-table-form.js +165 -74
  8. package/lib/data-table.js +185 -94
  9. package/lib/date-picker.js +172 -80
  10. package/lib/dialog.js +174 -83
  11. package/lib/enterprise.js +2 -2
  12. package/lib/eoss-ui.common.js +316 -183
  13. package/lib/error-page.js +2 -2
  14. package/lib/flow-group.js +165 -73
  15. package/lib/flow-list.js +200 -83
  16. package/lib/flow.js +200 -92
  17. package/lib/form.js +258 -151
  18. package/lib/handle-user.js +168 -76
  19. package/lib/handler.js +166 -74
  20. package/lib/icons.js +4 -4
  21. package/lib/index.js +1 -1
  22. package/lib/input-number.js +167 -75
  23. package/lib/input.js +169 -77
  24. package/lib/label.js +2 -2
  25. package/lib/layout.js +4 -4
  26. package/lib/login.js +168 -77
  27. package/lib/main.js +209 -118
  28. package/lib/menu.js +2 -2
  29. package/lib/nav.js +167 -75
  30. package/lib/notify.js +2 -2
  31. package/lib/page.js +167 -75
  32. package/lib/pagination.js +2 -2
  33. package/lib/player.js +173 -81
  34. package/lib/qr-code.js +169 -77
  35. package/lib/radio-group.js +167 -75
  36. package/lib/retrial-auth.js +167 -75
  37. package/lib/select-ganged.js +165 -73
  38. package/lib/select.js +166 -74
  39. package/lib/selector-panel.js +166 -75
  40. package/lib/selector.js +167 -75
  41. package/lib/sizer.js +169 -77
  42. package/lib/steps.js +167 -75
  43. package/lib/switch.js +167 -75
  44. package/lib/table-form.js +167 -75
  45. package/lib/tabs-panel.js +2 -2
  46. package/lib/tabs.js +170 -78
  47. package/lib/tips.js +167 -75
  48. package/lib/toolbar.js +2 -2
  49. package/lib/tree-group.js +165 -73
  50. package/lib/tree.js +165 -73
  51. package/lib/upload.js +168 -77
  52. package/lib/utils/util.js +17 -61
  53. package/lib/utils/webSocket.js +134 -0
  54. package/lib/wujie.js +167 -75
  55. package/lib/wxlogin.js +167 -75
  56. package/package.json +1 -1
  57. package/packages/data-table/src/main.vue +2 -2
  58. package/packages/data-table/src/sizer.vue +1 -1
  59. package/packages/flow/src/main.vue +2 -0
  60. package/packages/flow/src/processForm.vue +23 -9
  61. package/packages/flow-list/src/main.vue +25 -2
  62. package/packages/main/src/main.vue +13 -14
  63. package/src/index.js +1 -1
  64. package/src/utils/util.js +38 -81
  65. package/src/utils/webSocket.js +103 -0
package/lib/data-table.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 = 30);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 31);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -97,14 +97,9 @@ module.exports =
97
97
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
98
98
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
99
99
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
100
- /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
101
- /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_4__);
102
- /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8);
103
- /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_5__);
104
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2);
105
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_6__);
106
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
107
-
100
+ /* harmony import */ var _webSocket__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
101
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2);
102
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_5__);
108
103
  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; };
109
104
 
110
105
  /**
@@ -115,8 +110,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
115
110
  **/
116
111
 
117
112
  /* eslint-disable indent */
118
- var sm2 = __webpack_require__(9).sm2;
119
-
113
+ var sm2 = __webpack_require__(10).sm2;
120
114
 
121
115
 
122
116
 
@@ -264,7 +258,7 @@ var ajax = function ajax(_ref) {
264
258
  clearTimeout(loginMsg);
265
259
  loginMsg = setTimeout(function () {
266
260
  sessionStorage.setItem('remind', 1);
267
- eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
261
+ eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
268
262
  confirmButtonText: '确定',
269
263
  closeOnClickModal: false,
270
264
  type: 'warning'
@@ -311,7 +305,7 @@ var ajax = function ajax(_ref) {
311
305
  } else if (response.data.rCode === 61) {
312
306
  clearTimeout(initAuth);
313
307
  initAuth = setTimeout(function () {
314
- Object(eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"])({
308
+ Object(eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"])({
315
309
  title: '请进行二次鉴权',
316
310
  closeOnClickModal: false,
317
311
  closeOnPressEscape: false,
@@ -2012,7 +2006,7 @@ var isLogined = function isLogined(_ref8) {
2012
2006
  win.top.location.href = href;
2013
2007
  break;
2014
2008
  case 4:
2015
- eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2009
+ eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2016
2010
  confirmButtonText: '确定',
2017
2011
  type: 'error',
2018
2012
  callback: function callback() {
@@ -2032,7 +2026,7 @@ var isLogined = function isLogined(_ref8) {
2032
2026
  default:
2033
2027
  }
2034
2028
  } else {
2035
- eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(res.msg, '提示', {
2029
+ eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"].alert(res.msg, '提示', {
2036
2030
  confirmButtonText: '确定',
2037
2031
  type: 'error',
2038
2032
  callback: function callback() {
@@ -2163,7 +2157,7 @@ var loadJs = function loadJs(_ref10) {
2163
2157
  **/
2164
2158
  var loading = function loading($loading, res) {
2165
2159
  if (!$loading) {
2166
- $loading = eoss_element__WEBPACK_IMPORTED_MODULE_6__["Loading"].service;
2160
+ $loading = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service;
2167
2161
  }
2168
2162
  if (isObject(res)) {
2169
2163
  var config = extend({}, {
@@ -2528,63 +2522,25 @@ var setStorage = function setStorage(_ref14) {
2528
2522
  * @author huangbo
2529
2523
  * @date 2022年5月7日
2530
2524
  * @param {String} [url] - 连接地址
2525
+ * @param {String} [send] - 是否发送消息
2531
2526
  * @param {String} [take] - 订阅地址
2532
2527
  * @param {String} [debug] - 调试
2533
2528
  * @param {String} [interval] - 重连间隔时间
2529
+ * @param {Function} [success] - 调试
2530
+ * @param {Function} [error] - 重连间隔时间
2534
2531
  **/
2535
- function socket(options) {
2536
- var nextDate = 0;
2537
- var connect = 1;
2538
- return new Promise(function (resolve, reject) {
2539
- var wshost = getStorage('wshost') || '';
2540
- var option = {
2541
- url: wshost + _config_api__WEBPACK_IMPORTED_MODULE_0__[/* wss */ "Zb"],
2542
- take: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* topic */ "Qb"],
2543
- debug: true,
2544
- interval: 20
2545
- };
2546
- var websocket = win.websocket || {};
2547
- if (options && isObject(options)) {
2548
- option = _extends({}, option, options);
2549
- }
2550
- var key = window.btoa(option.url);
2551
- if (!websocket[key]) {
2552
- websocket[key] = { socket: new sockjs_client__WEBPACK_IMPORTED_MODULE_4___default.a(option.url) };
2553
- win.websocket = websocket;
2554
- }
2555
-
2556
- var client = websocket[key] ? websocket[key].client : null;
2557
- if (!client) {
2558
- client = websocket[key].client = stompjs__WEBPACK_IMPORTED_MODULE_5___default.a.over(websocket[key].socket);
2559
- !option.debug && (client.debug = null);
2532
+ 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];
2560
2539
  }
2561
- client.connect({}, function () {
2562
- client.subscribe(option.take, function (response) {
2563
- var res = JSON.parse(response.body);
2564
- resolve(res, function () {
2565
- client.disconnect();
2566
- win.top.websocket && win.top.websocket[key] && delete win.top.websocket[key];
2567
- }, client, websocket[key]);
2568
- });
2569
- }, function (error) {
2570
- var diffSecond = parseInt((new Date() - nextDate) / 1000, 10);
2571
- if (connect > 5 && diffSecond < option.interval) {
2572
- client.disconnect();
2573
- if (win.top.websocket) {
2574
- if (Object.keys(win.top.websocket).length > 1) {
2575
- delete win.top.websocket[key];
2576
- } else {
2577
- delete win.top.websocket;
2578
- }
2579
- }
2580
- } else {
2581
- win.top.websocket && win.top.websocket[key] && setTimeout(function () {
2582
- socket(options);
2583
- }, 5000);
2584
- }
2585
- reject(error);
2586
- });
2587
- });
2540
+ }
2541
+ var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
2542
+ socket.init(options, vm);
2543
+ return socket;
2588
2544
  }
2589
2545
  /**
2590
2546
  * sum
@@ -3492,51 +3448,185 @@ module.exports = require("json-bigint");
3492
3448
 
3493
3449
  /***/ }),
3494
3450
  /* 7 */
3451
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3452
+
3453
+ "use strict";
3454
+ /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
3455
+ /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
3456
+ /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
3457
+ /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
3458
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3459
+
3460
+
3461
+
3462
+
3463
+ var WebSocket = function () {
3464
+ // 构造函数
3465
+ function WebSocket() {
3466
+ _classCallCheck(this, WebSocket);
3467
+
3468
+ this.host = sessionStorage.getItem('wshost') || '';
3469
+ this.tryTimes = 1; // 重连次数
3470
+ this.callback = null; // 回调函数
3471
+ this.client = null; // stomp对象
3472
+ this.reconTimeout = null; // 重连延时器
3473
+ this.debug = true; // 调试
3474
+ this.interval = 20; // 重连间隔时间
3475
+ this.vm = null;
3476
+ this.nextDate = 0;
3477
+ this.connects = 1;
3478
+ this.recon = false;
3479
+ this.sendTimeout = null;
3480
+ this.isSend = false;
3481
+ }
3482
+
3483
+ /** socket连接 */
3484
+
3485
+
3486
+ WebSocket.prototype.connect = function connect() {
3487
+ var _this = this;
3488
+
3489
+ if (!this.client) {
3490
+ // 连接SockJS
3491
+ var socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url);
3492
+ // 获取STOMP子协议的客户端对象
3493
+ this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(socket);
3494
+ }
3495
+
3496
+ // 日志不打印
3497
+ if (!this.debug) {
3498
+ console.log(111);
3499
+ this.client.debug = function () {};
3500
+ }
3501
+
3502
+ // 向服务器发起websocket连接
3503
+ this.client.connect({}, function () {
3504
+ _this.recon = true;
3505
+ // tryTimes定义重置
3506
+ _this.connects = 1;
3507
+ // 订阅消息
3508
+ // if (!this.isSend) {
3509
+ _this.subscribe();
3510
+ // }
3511
+ }, function (error) {
3512
+ var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
3513
+ if (_this.connects > 5 && diffSecond < _this.interval) {
3514
+ _this.client.disconnect();
3515
+ _this.error && _this.error(error);
3516
+ } else {
3517
+ _this.reconTimeout = setTimeout(function () {
3518
+ _this.connect();
3519
+ _this.connects++;
3520
+ }, 5000);
3521
+ }
3522
+ });
3523
+ };
3524
+ /** 订阅服务端 */
3525
+
3526
+
3527
+ WebSocket.prototype.subscribe = function subscribe() {
3528
+ var _this2 = this;
3529
+
3530
+ // 订阅服务端提供的某个topic
3531
+ this.client.subscribe(this.take, function (response) {
3532
+ if (response && (_this2.callback || _this2.success)) {
3533
+ var callback = _this2.callback || _this2.success;
3534
+ callback(JSON.parse(response.body));
3535
+ }
3536
+ });
3537
+ };
3538
+
3539
+ /** 赋值、初始化socket */
3540
+
3541
+
3542
+ WebSocket.prototype.init = function init(option, vm) {
3543
+ for (var i in option) {
3544
+ this[i] = option[i];
3545
+ }
3546
+ this.vm = vm;
3547
+ // 初始化连接
3548
+ this.connect();
3549
+ };
3550
+
3551
+ /** 发送消息 */
3552
+
3553
+
3554
+ WebSocket.prototype.send = function send(data) {
3555
+ var _this3 = this;
3556
+
3557
+ if (this.recon) {
3558
+ clearTimeout(this.sendTimeout);
3559
+ this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
3560
+ } else {
3561
+ this.sendTimeout = setTimeout(function () {
3562
+ _this3.send(data);
3563
+ }, 1000);
3564
+ }
3565
+ };
3566
+
3567
+ /** 销毁 */
3568
+
3569
+
3570
+ WebSocket.prototype.destroy = function destroy() {
3571
+ // 断开连接,清除定时器
3572
+ if (this.client) {
3573
+ this.client.disconnect();
3574
+ };
3575
+ this.reconTimeout && clearTimeout(this.reconTimeout);
3576
+ this.sendTimeout && clearTimeout(this.sendTimeout);
3577
+ };
3578
+
3579
+ return WebSocket;
3580
+ }();
3581
+
3582
+ /* harmony default export */ __webpack_exports__["a"] = (WebSocket);
3583
+
3584
+ /***/ }),
3585
+ /* 8 */
3495
3586
  /***/ (function(module, exports) {
3496
3587
 
3497
3588
  module.exports = require("sockjs-client");
3498
3589
 
3499
3590
  /***/ }),
3500
- /* 8 */
3591
+ /* 9 */
3501
3592
  /***/ (function(module, exports) {
3502
3593
 
3503
3594
  module.exports = require("stompjs");
3504
3595
 
3505
3596
  /***/ }),
3506
- /* 9 */
3597
+ /* 10 */
3507
3598
  /***/ (function(module, exports) {
3508
3599
 
3509
3600
  module.exports = require("sm-crypto");
3510
3601
 
3511
3602
  /***/ }),
3512
- /* 10 */,
3513
- /* 11 */
3603
+ /* 11 */,
3604
+ /* 12 */
3514
3605
  /***/ (function(module, exports) {
3515
3606
 
3516
3607
  module.exports = require("babel-runtime/regenerator");
3517
3608
 
3518
3609
  /***/ }),
3519
- /* 12 */,
3520
3610
  /* 13 */,
3521
3611
  /* 14 */,
3522
- /* 15 */
3612
+ /* 15 */,
3613
+ /* 16 */
3523
3614
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3524
3615
 
3525
3616
  "use strict";
3526
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
3617
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
3527
3618
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
3528
3619
 
3529
3620
 
3530
3621
  /* harmony default export */ __webpack_exports__["a"] = (new vue__WEBPACK_IMPORTED_MODULE_0___default.a());
3531
3622
 
3532
3623
  /***/ }),
3533
- /* 16 */
3624
+ /* 17 */
3534
3625
  /***/ (function(module, exports) {
3535
3626
 
3536
3627
  module.exports = require("vue");
3537
3628
 
3538
3629
  /***/ }),
3539
- /* 17 */,
3540
3630
  /* 18 */,
3541
3631
  /* 19 */,
3542
3632
  /* 20 */,
@@ -3549,15 +3639,16 @@ module.exports = require("vue");
3549
3639
  /* 27 */,
3550
3640
  /* 28 */,
3551
3641
  /* 29 */,
3552
- /* 30 */
3642
+ /* 30 */,
3643
+ /* 31 */
3553
3644
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3554
3645
 
3555
3646
  "use strict";
3556
3647
  // ESM COMPAT FLAG
3557
3648
  __webpack_require__.r(__webpack_exports__);
3558
3649
 
3559
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=f3399f02&
3560
- var mainvue_type_template_id_f3399f02_render = function () {
3650
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=094be154&
3651
+ var mainvue_type_template_id_094be154_render = function () {
3561
3652
  var _vm = this
3562
3653
  var _h = _vm.$createElement
3563
3654
  var _c = _vm._self._c || _h
@@ -3894,10 +3985,10 @@ var mainvue_type_template_id_f3399f02_render = function () {
3894
3985
  )
3895
3986
  }
3896
3987
  var staticRenderFns = []
3897
- mainvue_type_template_id_f3399f02_render._withStripped = true
3988
+ mainvue_type_template_id_094be154_render._withStripped = true
3898
3989
 
3899
3990
 
3900
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=f3399f02&
3991
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=094be154&
3901
3992
 
3902
3993
  // EXTERNAL MODULE: ./src/config/api.js
3903
3994
  var api = __webpack_require__(1);
@@ -4946,7 +5037,7 @@ columnvue_type_template_id_00ff0a77_render._withStripped = true
4946
5037
  // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=00ff0a77&
4947
5038
 
4948
5039
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
4949
- var regenerator_ = __webpack_require__(11);
5040
+ var regenerator_ = __webpack_require__(12);
4950
5041
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
4951
5042
 
4952
5043
  // CONCATENATED MODULE: ./packages/data-table/src/mixins/table.js
@@ -5941,8 +6032,8 @@ var children_component = Object(componentNormalizer["a" /* default */])(
5941
6032
  )
5942
6033
 
5943
6034
  /* harmony default export */ var children = (children_component.exports);
5944
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/sizer.vue?vue&type=template&id=78be3abc&
5945
- var sizervue_type_template_id_78be3abc_render = function () {
6035
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/sizer.vue?vue&type=template&id=58e4111d&
6036
+ var sizervue_type_template_id_58e4111d_render = function () {
5946
6037
  var _vm = this
5947
6038
  var _h = _vm.$createElement
5948
6039
  var _c = _vm._self._c || _h
@@ -5993,11 +6084,11 @@ var sizervue_type_template_id_78be3abc_render = function () {
5993
6084
  )
5994
6085
  : _vm._e()
5995
6086
  }
5996
- var sizervue_type_template_id_78be3abc_staticRenderFns = []
5997
- sizervue_type_template_id_78be3abc_render._withStripped = true
6087
+ var sizervue_type_template_id_58e4111d_staticRenderFns = []
6088
+ sizervue_type_template_id_58e4111d_render._withStripped = true
5998
6089
 
5999
6090
 
6000
- // CONCATENATED MODULE: ./packages/data-table/src/sizer.vue?vue&type=template&id=78be3abc&
6091
+ // CONCATENATED MODULE: ./packages/data-table/src/sizer.vue?vue&type=template&id=58e4111d&
6001
6092
 
6002
6093
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/sizer.vue?vue&type=script&lang=js&
6003
6094
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -6167,8 +6258,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
6167
6258
 
6168
6259
  var sizer_component = Object(componentNormalizer["a" /* default */])(
6169
6260
  src_sizervue_type_script_lang_js_,
6170
- sizervue_type_template_id_78be3abc_render,
6171
- sizervue_type_template_id_78be3abc_staticRenderFns,
6261
+ sizervue_type_template_id_58e4111d_render,
6262
+ sizervue_type_template_id_58e4111d_staticRenderFns,
6172
6263
  false,
6173
6264
  null,
6174
6265
  null,
@@ -6178,7 +6269,7 @@ var sizer_component = Object(componentNormalizer["a" /* default */])(
6178
6269
 
6179
6270
  /* harmony default export */ var sizer = (sizer_component.exports);
6180
6271
  // EXTERNAL MODULE: ./src/utils/bus.js
6181
- var bus = __webpack_require__(15);
6272
+ var bus = __webpack_require__(16);
6182
6273
 
6183
6274
  // EXTERNAL MODULE: external "qs"
6184
6275
  var external_qs_ = __webpack_require__(4);
@@ -6642,8 +6733,8 @@ var mainvue_type_script_lang_js_components;
6642
6733
 
6643
6734
  theads: {
6644
6735
  get: function get() {
6645
- if (typeof this.thead === 'string') {
6646
- this.theadData.length && this.setMinWidth(this.theadData);
6736
+ if (this.theadData.length) {
6737
+ this.setMinWidth(this.theadData);
6647
6738
  return this.theadData;
6648
6739
  }
6649
6740
  this.setMinWidth(this.thead);
@@ -7479,7 +7570,7 @@ var mainvue_type_script_lang_js_components;
7479
7570
 
7480
7571
  var main_component = Object(componentNormalizer["a" /* default */])(
7481
7572
  src_mainvue_type_script_lang_js_,
7482
- mainvue_type_template_id_f3399f02_render,
7573
+ mainvue_type_template_id_094be154_render,
7483
7574
  staticRenderFns,
7484
7575
  false,
7485
7576
  null,