eoss-ui 0.5.28 → 0.5.29

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.
@@ -82,11 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 36);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 37);
86
86
  /******/ })
87
87
  /************************************************************************/
88
- /******/ ([
89
- /* 0 */
88
+ /******/ ({
89
+
90
+ /***/ 0:
90
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
91
92
 
92
93
  "use strict";
@@ -2971,7 +2972,8 @@ var watermark = function watermark(option) {
2971
2972
  });
2972
2973
 
2973
2974
  /***/ }),
2974
- /* 1 */
2975
+
2976
+ /***/ 1:
2975
2977
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2976
2978
 
2977
2979
  "use strict";
@@ -3312,13 +3314,22 @@ var sendBatch = '/notify2/sendRecord/reSendNotifyMessageBatch';
3312
3314
  var formContents = '/config/admin/online/onlineForm/render';
3313
3315
 
3314
3316
  /***/ }),
3315
- /* 2 */
3317
+
3318
+ /***/ 10:
3319
+ /***/ (function(module, exports) {
3320
+
3321
+ module.exports = require("sm-crypto");
3322
+
3323
+ /***/ }),
3324
+
3325
+ /***/ 2:
3316
3326
  /***/ (function(module, exports) {
3317
3327
 
3318
3328
  module.exports = require("eoss-element");
3319
3329
 
3320
3330
  /***/ }),
3321
- /* 3 */
3331
+
3332
+ /***/ 3:
3322
3333
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3323
3334
 
3324
3335
  "use strict";
@@ -3422,200 +3433,8 @@ function normalizeComponent(
3422
3433
 
3423
3434
 
3424
3435
  /***/ }),
3425
- /* 4 */
3426
- /***/ (function(module, exports) {
3427
-
3428
- module.exports = require("qs");
3429
-
3430
- /***/ }),
3431
- /* 5 */
3432
- /***/ (function(module, exports) {
3433
-
3434
- module.exports = require("axios");
3435
-
3436
- /***/ }),
3437
- /* 6 */
3438
- /***/ (function(module, exports) {
3439
3436
 
3440
- module.exports = require("json-bigint");
3441
-
3442
- /***/ }),
3443
- /* 7 */
3444
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3445
-
3446
- "use strict";
3447
- /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
3448
- /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
3449
- /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
3450
- /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
3451
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3452
-
3453
-
3454
-
3455
-
3456
- var WebSocket = function () {
3457
- // 构造函数
3458
- function WebSocket() {
3459
- _classCallCheck(this, WebSocket);
3460
-
3461
- this.host = sessionStorage.getItem('wshost') || '';
3462
- this.tryTimes = 1; // 重连次数
3463
- this.callback = null; // 回调函数
3464
- this.client = null; // stomp对象
3465
- this.reconTimeout = null; // 重连延时器
3466
- this.debug = true; // 调试
3467
- this.interval = 20; // 重连间隔时间
3468
- this.vm = null;
3469
- this.nextDate = 0;
3470
- this.connects = 1;
3471
- this.recon = false;
3472
- this.sendTimeout = null;
3473
- }
3474
-
3475
- /** socket连接 */
3476
-
3477
-
3478
- WebSocket.prototype.connect = function connect() {
3479
- var _this = this;
3480
-
3481
- if (!this.client) {
3482
- // 连接SockJS
3483
- var socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url);
3484
- // 获取STOMP子协议的客户端对象
3485
- this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(socket);
3486
- }
3487
-
3488
- // 日志不打印
3489
- if (!this.debug) {
3490
- console.log(111);
3491
- this.client.debug = function () {};
3492
- }
3493
-
3494
- // 向服务器发起websocket连接
3495
- this.client.connect({}, function () {
3496
- _this.recon = true;
3497
- // tryTimes定义重置
3498
- _this.connects = 1;
3499
- // 订阅消息
3500
- _this.subscribe();
3501
- }, function (error) {
3502
- var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
3503
- if (_this.connects > 5 && diffSecond < _this.interval) {
3504
- _this.client.disconnect();
3505
- _this.error && _this.error(error);
3506
- } else {
3507
- _this.reconTimeout = setTimeout(function () {
3508
- _this.connect();
3509
- _this.connects++;
3510
- }, 5000);
3511
- }
3512
- });
3513
- };
3514
- /** 订阅服务端 */
3515
-
3516
-
3517
- WebSocket.prototype.subscribe = function subscribe() {
3518
- var _this2 = this;
3519
-
3520
- // 订阅服务端提供的某个topic
3521
- this.client.subscribe(this.take, function (response) {
3522
- if (response && (_this2.callback || _this2.success)) {
3523
- var callback = _this2.callback || _this2.success;
3524
- callback(JSON.parse(response.body));
3525
- }
3526
- });
3527
- };
3528
-
3529
- /** 赋值、初始化socket */
3530
-
3531
-
3532
- WebSocket.prototype.init = function init(option, vm) {
3533
- for (var i in option) {
3534
- this[i] = option[i];
3535
- }
3536
- this.vm = vm;
3537
- // 初始化连接
3538
- this.connect();
3539
- };
3540
-
3541
- /** 发送消息 */
3542
-
3543
-
3544
- WebSocket.prototype.send = function send(data) {
3545
- var _this3 = this;
3546
-
3547
- if (this.recon) {
3548
- clearTimeout(this.sendTimeout);
3549
- this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
3550
- } else {
3551
- this.sendTimeout = setTimeout(function () {
3552
- _this3.send(data);
3553
- }, 1000);
3554
- }
3555
- };
3556
-
3557
- /** 销毁 */
3558
-
3559
-
3560
- WebSocket.prototype.destroy = function destroy() {
3561
- // 断开连接,清除定时器
3562
- if (this.client) {
3563
- this.client.disconnect();
3564
- };
3565
- this.reconTimeout && clearTimeout(this.reconTimeout);
3566
- this.sendTimeout && clearTimeout(this.sendTimeout);
3567
- };
3568
-
3569
- return WebSocket;
3570
- }();
3571
-
3572
- /* harmony default export */ __webpack_exports__["a"] = (WebSocket);
3573
-
3574
- /***/ }),
3575
- /* 8 */
3576
- /***/ (function(module, exports) {
3577
-
3578
- module.exports = require("sockjs-client");
3579
-
3580
- /***/ }),
3581
- /* 9 */
3582
- /***/ (function(module, exports) {
3583
-
3584
- module.exports = require("stompjs");
3585
-
3586
- /***/ }),
3587
- /* 10 */
3588
- /***/ (function(module, exports) {
3589
-
3590
- module.exports = require("sm-crypto");
3591
-
3592
- /***/ }),
3593
- /* 11 */,
3594
- /* 12 */,
3595
- /* 13 */,
3596
- /* 14 */,
3597
- /* 15 */,
3598
- /* 16 */,
3599
- /* 17 */,
3600
- /* 18 */,
3601
- /* 19 */,
3602
- /* 20 */,
3603
- /* 21 */,
3604
- /* 22 */,
3605
- /* 23 */,
3606
- /* 24 */,
3607
- /* 25 */,
3608
- /* 26 */,
3609
- /* 27 */,
3610
- /* 28 */,
3611
- /* 29 */,
3612
- /* 30 */,
3613
- /* 31 */,
3614
- /* 32 */,
3615
- /* 33 */,
3616
- /* 34 */,
3617
- /* 35 */,
3618
- /* 36 */
3437
+ /***/ 37:
3619
3438
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3620
3439
 
3621
3440
  "use strict";
@@ -3884,5 +3703,174 @@ main.install = function (Vue) {
3884
3703
 
3885
3704
  /* harmony default export */ var button_group = __webpack_exports__["default"] = (main);
3886
3705
 
3706
+ /***/ }),
3707
+
3708
+ /***/ 4:
3709
+ /***/ (function(module, exports) {
3710
+
3711
+ module.exports = require("qs");
3712
+
3713
+ /***/ }),
3714
+
3715
+ /***/ 5:
3716
+ /***/ (function(module, exports) {
3717
+
3718
+ module.exports = require("axios");
3719
+
3720
+ /***/ }),
3721
+
3722
+ /***/ 6:
3723
+ /***/ (function(module, exports) {
3724
+
3725
+ module.exports = require("json-bigint");
3726
+
3727
+ /***/ }),
3728
+
3729
+ /***/ 7:
3730
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3731
+
3732
+ "use strict";
3733
+ /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
3734
+ /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
3735
+ /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
3736
+ /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
3737
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3738
+
3739
+
3740
+
3741
+
3742
+ var WebSocket = function () {
3743
+ // 构造函数
3744
+ function WebSocket() {
3745
+ _classCallCheck(this, WebSocket);
3746
+
3747
+ this.host = sessionStorage.getItem('wshost') || '';
3748
+ this.tryTimes = 1; // 重连次数
3749
+ this.callback = null; // 回调函数
3750
+ this.client = null; // stomp对象
3751
+ this.reconTimeout = null; // 重连延时器
3752
+ this.debug = true; // 调试
3753
+ this.interval = 20; // 重连间隔时间
3754
+ this.vm = null;
3755
+ this.nextDate = 0;
3756
+ this.connects = 1;
3757
+ this.recon = false;
3758
+ this.sendTimeout = null;
3759
+ }
3760
+
3761
+ /** socket连接 */
3762
+
3763
+
3764
+ WebSocket.prototype.connect = function connect() {
3765
+ var _this = this;
3766
+
3767
+ if (!this.client) {
3768
+ // 连接SockJS
3769
+ var socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url);
3770
+ // 获取STOMP子协议的客户端对象
3771
+ this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(socket);
3772
+ }
3773
+
3774
+ // 日志不打印
3775
+ if (!this.debug) {
3776
+ console.log(111);
3777
+ this.client.debug = function () {};
3778
+ }
3779
+
3780
+ // 向服务器发起websocket连接
3781
+ this.client.connect({}, function () {
3782
+ _this.recon = true;
3783
+ // tryTimes定义重置
3784
+ _this.connects = 1;
3785
+ // 订阅消息
3786
+ _this.subscribe();
3787
+ }, function (error) {
3788
+ var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
3789
+ if (_this.connects > 5 && diffSecond < _this.interval) {
3790
+ _this.client.disconnect();
3791
+ _this.error && _this.error(error);
3792
+ } else {
3793
+ _this.reconTimeout = setTimeout(function () {
3794
+ _this.connect();
3795
+ _this.connects++;
3796
+ }, 5000);
3797
+ }
3798
+ });
3799
+ };
3800
+ /** 订阅服务端 */
3801
+
3802
+
3803
+ WebSocket.prototype.subscribe = function subscribe() {
3804
+ var _this2 = this;
3805
+
3806
+ // 订阅服务端提供的某个topic
3807
+ this.client.subscribe(this.take, function (response) {
3808
+ if (response && (_this2.callback || _this2.success)) {
3809
+ var callback = _this2.callback || _this2.success;
3810
+ callback(JSON.parse(response.body));
3811
+ }
3812
+ });
3813
+ };
3814
+
3815
+ /** 赋值、初始化socket */
3816
+
3817
+
3818
+ WebSocket.prototype.init = function init(option, vm) {
3819
+ for (var i in option) {
3820
+ this[i] = option[i];
3821
+ }
3822
+ this.vm = vm;
3823
+ // 初始化连接
3824
+ this.connect();
3825
+ };
3826
+
3827
+ /** 发送消息 */
3828
+
3829
+
3830
+ WebSocket.prototype.send = function send(data) {
3831
+ var _this3 = this;
3832
+
3833
+ if (this.recon) {
3834
+ clearTimeout(this.sendTimeout);
3835
+ this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
3836
+ } else {
3837
+ this.sendTimeout = setTimeout(function () {
3838
+ _this3.send(data);
3839
+ }, 1000);
3840
+ }
3841
+ };
3842
+
3843
+ /** 销毁 */
3844
+
3845
+
3846
+ WebSocket.prototype.destroy = function destroy() {
3847
+ // 断开连接,清除定时器
3848
+ if (this.client) {
3849
+ this.client.disconnect();
3850
+ };
3851
+ this.reconTimeout && clearTimeout(this.reconTimeout);
3852
+ this.sendTimeout && clearTimeout(this.sendTimeout);
3853
+ };
3854
+
3855
+ return WebSocket;
3856
+ }();
3857
+
3858
+ /* harmony default export */ __webpack_exports__["a"] = (WebSocket);
3859
+
3860
+ /***/ }),
3861
+
3862
+ /***/ 8:
3863
+ /***/ (function(module, exports) {
3864
+
3865
+ module.exports = require("sockjs-client");
3866
+
3867
+ /***/ }),
3868
+
3869
+ /***/ 9:
3870
+ /***/ (function(module, exports) {
3871
+
3872
+ module.exports = require("stompjs");
3873
+
3887
3874
  /***/ })
3888
- /******/ ]);
3875
+
3876
+ /******/ });
package/lib/button.js CHANGED
@@ -3517,7 +3517,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3517
3517
  syncKeys: Object,
3518
3518
  text: String,
3519
3519
  onClick: Function,
3520
- badge: [Object, Number]
3520
+ badge: [Object, Number],
3521
+ float: String
3521
3522
  },
3522
3523
  computed: {
3523
3524
  _type: function _type() {
@@ -3707,7 +3708,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3707
3708
  var link = this.param ? util["a" /* default */].urlJoinParams({ url: this.link, param: this.param }) : this.link;
3708
3709
  attrs = { href: link };
3709
3710
  tag = 'a';
3710
- clas = clas.concat(['el-button', this._type ? 'el-button--' + this._type : 'el-button--default', this.size ? 'el-button--' + this.size : '']);
3711
+ clas = clas.concat(['el-button', this._type ? 'el-button--' + this._type : 'el-button--default', this.size ? 'el-button--' + this.size : '', this.float ? 'es-button--' + this.float : '']);
3711
3712
  }
3712
3713
  if (this.badge) {
3713
3714
  var config = {};
package/lib/card.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 = 38);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 39);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 38:
195
+ /***/ 39:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
@@ -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 = 37);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 38);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -3623,20 +3623,20 @@ window.__store = store;
3623
3623
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3624
3624
 
3625
3625
  "use strict";
3626
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
3626
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
3627
3627
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
3628
3628
 
3629
3629
 
3630
3630
  /* harmony default export */ __webpack_exports__["a"] = (new vue__WEBPACK_IMPORTED_MODULE_0___default.a());
3631
3631
 
3632
3632
  /***/ }),
3633
- /* 15 */,
3634
- /* 16 */
3633
+ /* 15 */
3635
3634
  /***/ (function(module, exports) {
3636
3635
 
3637
3636
  module.exports = require("vue");
3638
3637
 
3639
3638
  /***/ }),
3639
+ /* 16 */,
3640
3640
  /* 17 */,
3641
3641
  /* 18 */,
3642
3642
  /* 19 */,
@@ -3657,7 +3657,8 @@ module.exports = require("vue");
3657
3657
  /* 34 */,
3658
3658
  /* 35 */,
3659
3659
  /* 36 */,
3660
- /* 37 */
3660
+ /* 37 */,
3661
+ /* 38 */
3661
3662
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3662
3663
 
3663
3664
  "use strict";
package/lib/clients.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 = 39);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 40);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 39:
195
+ /***/ 40:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";