eoss-ui 0.5.73 → 0.5.75

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 (75) hide show
  1. package/lib/button-group.js +115 -29
  2. package/lib/button.js +115 -29
  3. package/lib/checkbox-group.js +115 -29
  4. package/lib/clients.js +16 -7
  5. package/lib/data-table-form.js +115 -29
  6. package/lib/data-table.js +130 -35
  7. package/lib/date-picker.js +115 -29
  8. package/lib/dialog.js +115 -29
  9. package/lib/eoss-ui.common.js +345 -133
  10. package/lib/flow-group.js +115 -29
  11. package/lib/flow-list.js +115 -29
  12. package/lib/flow.js +115 -29
  13. package/lib/form.js +115 -29
  14. package/lib/handle-user.js +115 -29
  15. package/lib/handler.js +115 -29
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +114 -28
  18. package/lib/input.js +131 -35
  19. package/lib/login.js +147 -40
  20. package/lib/main.js +197 -51
  21. package/lib/nav.js +163 -52
  22. package/lib/page.js +115 -29
  23. package/lib/player.js +115 -29
  24. package/lib/qr-code.js +115 -29
  25. package/lib/radio-group.js +115 -29
  26. package/lib/retrial-auth.js +115 -29
  27. package/lib/select-ganged.js +115 -29
  28. package/lib/select.js +130 -34
  29. package/lib/selector-panel.js +115 -29
  30. package/lib/selector.js +115 -29
  31. package/lib/sizer.js +115 -29
  32. package/lib/steps.js +115 -29
  33. package/lib/switch.js +114 -28
  34. package/lib/table-form.js +115 -29
  35. package/lib/tabs.js +115 -29
  36. package/lib/theme-chalk/base.css +1 -1
  37. package/lib/theme-chalk/index.css +1 -1
  38. package/lib/theme-chalk/login.css +1 -1
  39. package/lib/theme-chalk/main.css +1 -1
  40. package/lib/theme-chalk/menu.css +1 -1
  41. package/lib/theme-chalk/nav.css +1 -1
  42. package/lib/theme-chalk/sizer.css +1 -1
  43. package/lib/theme-chalk/upload.css +1 -1
  44. package/lib/tips.js +115 -29
  45. package/lib/tree-group.js +115 -29
  46. package/lib/tree.js +115 -29
  47. package/lib/upload.js +115 -29
  48. package/lib/utils/util.js +98 -22
  49. package/lib/utils/webSocket.js +16 -6
  50. package/lib/wujie.js +115 -29
  51. package/lib/wxlogin.js +114 -28
  52. package/package.json +2 -2
  53. package/packages/clients/src/main.vue +3 -1
  54. package/packages/data-table/src/main.vue +10 -1
  55. package/packages/input/src/main.vue +7 -6
  56. package/packages/login/src/main.vue +13 -0
  57. package/packages/login/src/resetPassword.vue +1 -1
  58. package/packages/main/src/main.vue +44 -10
  59. package/packages/nav/src/main.vue +25 -8
  60. package/packages/select/src/main.vue +6 -5
  61. package/packages/theme-chalk/lib/base.css +1 -1
  62. package/packages/theme-chalk/lib/index.css +1 -1
  63. package/packages/theme-chalk/lib/login.css +1 -1
  64. package/packages/theme-chalk/lib/main.css +1 -1
  65. package/packages/theme-chalk/lib/menu.css +1 -1
  66. package/packages/theme-chalk/lib/nav.css +1 -1
  67. package/packages/theme-chalk/lib/sizer.css +1 -1
  68. package/packages/theme-chalk/lib/upload.css +1 -1
  69. package/packages/theme-chalk/src/base.scss +3 -0
  70. package/packages/theme-chalk/src/login.scss +175 -171
  71. package/packages/theme-chalk/src/main.scss +5 -2
  72. package/packages/theme-chalk/src/nav.scss +4 -1
  73. package/src/index.js +1 -1
  74. package/src/utils/util.js +112 -23
  75. package/src/utils/webSocket.js +14 -7
@@ -620,6 +620,35 @@ var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
620
620
  return workdays;
621
621
  };
622
622
 
623
+ /**
624
+ * chunkToChinese
625
+ * @desc 将四位数的整数转换为中文大写
626
+ * @param {number} chunk - 数字
627
+ **/
628
+ function chunkToChinese(chunk) {
629
+ var numberToChinese = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
630
+ var capitalDigits = ['', '拾', '佰', '仟'];
631
+
632
+ var result = '';
633
+ var digitIndex = 0;
634
+
635
+ while (chunk > 0) {
636
+ var digit = chunk % 10;
637
+ if (digit > 0) {
638
+ result = numberToChinese[digit] + capitalDigits[digitIndex] + result;
639
+ } else {
640
+ // 当前数字是零,需要判断是否需要添加零
641
+ if (result.charAt(0) !== '零') {
642
+ result = '零' + result;
643
+ }
644
+ }
645
+ chunk = Math.floor(chunk / 10);
646
+ digitIndex++;
647
+ }
648
+
649
+ return result;
650
+ }
651
+
623
652
  /**
624
653
  * concatenate
625
654
  * @desc 指定连接符合并文本
@@ -1815,6 +1844,31 @@ var getWeekday = function getWeekday(date) {
1815
1844
  return adjustedDay === 0 ? 7 : adjustedDay;
1816
1845
  };
1817
1846
 
1847
+ /**
1848
+ * getZoom
1849
+ * @desc 获取缩放比
1850
+ * @param {number} n - 可选参数,表示星期的起始日,0 表示星期天,1 表示星期一,以此类推,默认为 0
1851
+ **/
1852
+ var getZoom = function getZoom() {
1853
+ var ratio = 0;
1854
+ var screen = window.screen;
1855
+ var ua = navigator.userAgent.toLowerCase();
1856
+ if (window.devicePixelRatio !== undefined) {
1857
+ ratio = window.devicePixelRatio;
1858
+ } else if (~ua.indexOf('msie')) {
1859
+ if (screen.deviceXDPI && screen.logicalXDPI) {
1860
+ ratio = screen.deviceXDPI / screen.logicalXDPI;
1861
+ }
1862
+ } else if (window.outerWidth !== undefined && window.innerWidth !== undefined) {
1863
+ ratio = window.outerWidth / window.innerWidth;
1864
+ }
1865
+
1866
+ if (ratio) {
1867
+ ratio = Math.round(ratio * 100);
1868
+ }
1869
+
1870
+ return ratio / 100;
1871
+ };
1818
1872
  /**
1819
1873
  * handlerUrl
1820
1874
  * @desc:更新url参数中的时间戳
@@ -2557,32 +2611,53 @@ var rmbToCapital = function rmbToCapital(number) {
2557
2611
 
2558
2612
  return result;
2559
2613
  };
2560
-
2561
- // 辅助函数,将四位数的整数转换为中文大写
2562
- function chunkToChinese(chunk) {
2563
- var numberToChinese = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
2564
- var capitalDigits = ['', '拾', '佰', '仟'];
2565
-
2566
- var result = '';
2567
- var digitIndex = 0;
2568
-
2569
- while (chunk > 0) {
2570
- var digit = chunk % 10;
2571
- if (digit > 0) {
2572
- result = numberToChinese[digit] + capitalDigits[digitIndex] + result;
2614
+ /**
2615
+ * setScale
2616
+ * @desc 设置缩放
2617
+ * @param {number} width - 分辨率宽度
2618
+ * @param {number} height - 分辨率高度
2619
+ **/
2620
+ var setScale = function setScale() {
2621
+ var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1920;
2622
+ var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1080;
2623
+
2624
+ var n = 1;
2625
+ var isMac = /macintosh|mac os x/i.test(navigator.userAgent);
2626
+ var zoom = getZoom();
2627
+ if (isMac) {
2628
+ n = 2;
2629
+ } else {
2630
+ n = 1;
2631
+ }
2632
+ if (zoom === 1) {
2633
+ document.body.style.removeProperty('transform');
2634
+ document.body.style.removeProperty('width');
2635
+ document.body.style.removeProperty('height');
2636
+ document.body.style.removeProperty('transform-origin');
2637
+ return;
2638
+ }
2639
+ if (Math.abs(parseInt(width - window.innerWidth * zoom / n, 10)) > 15 && window.innerWidth * zoom / n !== width) {
2640
+ var scale = 'scale(' + window.innerWidth * zoom / width / zoom + ',' + window.innerHeight * zoom / height / zoom + ')';
2641
+ document.body.style.transform = scale;
2642
+ document.body.style.width = width + 'px';
2643
+ document.body.style.height = height + 'px';
2644
+ document.body.style.transformOrigin = '0 0';
2645
+ } else {
2646
+ if (isMac) {
2647
+ var _scale = 'scale(' + 1 * n / zoom + ')';
2648
+ document.body.style.transform = _scale;
2649
+ document.body.style.width = parseInt(window.innerWidth * zoom / n, 10) + 'px';
2650
+ document.body.style.height = parseInt(window.innerHeight * zoom / n, 10) + 'px';
2651
+ document.body.style.transformOrigin = '0 0';
2573
2652
  } else {
2574
- // 当前数字是零,需要判断是否需要添加零
2575
- if (result.charAt(0) !== '零') {
2576
- result = '零' + result;
2577
- }
2653
+ var _scale2 = 'scale(' + 1 * n / zoom + ')';
2654
+ document.body.style.transform = _scale2;
2655
+ document.body.style.width = parseInt(window.innerWidth * zoom / n, 10) + 'px';
2656
+ document.body.style.height = parseInt(window.innerHeight * zoom / n, 10) + 'px';
2657
+ document.body.style.transformOrigin = '0 0';
2578
2658
  }
2579
- chunk = Math.floor(chunk / 10);
2580
- digitIndex++;
2581
2659
  }
2582
-
2583
- return result;
2584
- }
2585
-
2660
+ };
2586
2661
  /**
2587
2662
  * sendMessage
2588
2663
  * @desc:向iframe发送信息
@@ -3118,6 +3193,7 @@ var watermark = function watermark(option) {
3118
3193
  rmbToCapital: rmbToCapital,
3119
3194
  sendMessage: sendMessage,
3120
3195
  setFavicon: setFavicon,
3196
+ setScale: setScale,
3121
3197
  setStorage: setStorage,
3122
3198
  socket: socket,
3123
3199
  startWith: startWith,
@@ -3563,6 +3639,8 @@ var WebSocket = function () {
3563
3639
  this.connects = 1;
3564
3640
  this.recon = false;
3565
3641
  this.sendTimeout = null;
3642
+ this.socket = null;
3643
+ this.subscription = null;
3566
3644
  }
3567
3645
 
3568
3646
  /** socket连接 */
@@ -3573,14 +3651,12 @@ var WebSocket = function () {
3573
3651
 
3574
3652
  if (!this.client) {
3575
3653
  // 连接SockJS
3576
- var socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url);
3577
- // 获取STOMP子协议的客户端对象
3578
- this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(socket);
3654
+ this.socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url, { timeout: 60000 });
3655
+ this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(this.socket);
3579
3656
  }
3580
3657
 
3581
3658
  // 日志不打印
3582
3659
  if (!this.debug) {
3583
- console.log(111);
3584
3660
  this.client.debug = function () {};
3585
3661
  }
3586
3662
 
@@ -3592,9 +3668,10 @@ var WebSocket = function () {
3592
3668
  // 订阅消息
3593
3669
  _this.subscribe();
3594
3670
  }, function (error) {
3671
+ _this.unsubscribe();
3672
+ _this.client = null;
3595
3673
  var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
3596
3674
  if (_this.connects > 5 && diffSecond < _this.interval) {
3597
- _this.client.disconnect();
3598
3675
  _this.error && _this.error(error);
3599
3676
  } else {
3600
3677
  _this.reconTimeout = setTimeout(function () {
@@ -3603,6 +3680,14 @@ var WebSocket = function () {
3603
3680
  }, 5000);
3604
3681
  }
3605
3682
  });
3683
+ }; // 清除订阅
3684
+
3685
+
3686
+ WebSocket.prototype.unsubscribe = function unsubscribe() {
3687
+ if (this.subscription) {
3688
+ this.subscription.unsubscribe();
3689
+ this.subscription = null;
3690
+ }
3606
3691
  };
3607
3692
  /** 订阅服务端 */
3608
3693
 
@@ -3611,7 +3696,7 @@ var WebSocket = function () {
3611
3696
  var _this2 = this;
3612
3697
 
3613
3698
  // 订阅服务端提供的某个topic
3614
- this.client.subscribe(this.take, function (response) {
3699
+ this.subscription = this.client.subscribe(this.take, function (response) {
3615
3700
  if (response && (_this2.callback || _this2.success)) {
3616
3701
  var callback = _this2.callback || _this2.success;
3617
3702
  callback(JSON.parse(response.body));
@@ -3652,6 +3737,7 @@ var WebSocket = function () {
3652
3737
 
3653
3738
  WebSocket.prototype.destroy = function destroy() {
3654
3739
  // 断开连接,清除定时器
3740
+ this.unsubscribe();
3655
3741
  if (this.client) {
3656
3742
  this.client.disconnect();
3657
3743
  };
@@ -6430,8 +6516,8 @@ checkbox_group_src_main.install = function (Vue) {
6430
6516
  };
6431
6517
 
6432
6518
  /* harmony default export */ var checkbox_group = (checkbox_group_src_main);
6433
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/clients/src/main.vue?vue&type=template&id=2f0c03c7&
6434
- var mainvue_type_template_id_2f0c03c7_render = function () {
6519
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/clients/src/main.vue?vue&type=template&id=12fa73ca&
6520
+ var mainvue_type_template_id_12fa73ca_render = function () {
6435
6521
  var _vm = this
6436
6522
  var _h = _vm.$createElement
6437
6523
  var _c = _vm._self._c || _h
@@ -6439,11 +6525,18 @@ var mainvue_type_template_id_2f0c03c7_render = function () {
6439
6525
  _vm.logo
6440
6526
  ? _c("img", { staticClass: "es-clients-logo", attrs: { src: _vm.logo } })
6441
6527
  : _vm._e(),
6442
- _c("div", { staticClass: "es-clients-title" }, [
6443
- _vm._v(
6444
- "\n 请通过手机浏览器(iOS11版本以上的苹果手机使用照相功能)扫码下载安装\n "
6445
- ),
6446
- ]),
6528
+ _c(
6529
+ "div",
6530
+ { staticClass: "es-clients-title" },
6531
+ [
6532
+ _vm._v("\n 请通过手机浏览器\n "),
6533
+ _vm.ios
6534
+ ? [_vm._v(" (iOS11版本以上的苹果手机使用照相功能) ")]
6535
+ : _vm._e(),
6536
+ _vm._v("\n 扫码下载安装\n "),
6537
+ ],
6538
+ 2
6539
+ ),
6447
6540
  _c("ul", { staticClass: "es-clients-list" }, [
6448
6541
  _vm.ios
6449
6542
  ? _c(
@@ -6524,7 +6617,7 @@ var mainvue_type_template_id_2f0c03c7_render = function () {
6524
6617
  ]),
6525
6618
  ])
6526
6619
  }
6527
- var mainvue_type_template_id_2f0c03c7_staticRenderFns = [
6620
+ var mainvue_type_template_id_12fa73ca_staticRenderFns = [
6528
6621
  function () {
6529
6622
  var _vm = this
6530
6623
  var _h = _vm.$createElement
@@ -6553,10 +6646,10 @@ var mainvue_type_template_id_2f0c03c7_staticRenderFns = [
6553
6646
  ])
6554
6647
  },
6555
6648
  ]
6556
- mainvue_type_template_id_2f0c03c7_render._withStripped = true
6649
+ mainvue_type_template_id_12fa73ca_render._withStripped = true
6557
6650
 
6558
6651
 
6559
- // CONCATENATED MODULE: ./packages/clients/src/main.vue?vue&type=template&id=2f0c03c7&
6652
+ // CONCATENATED MODULE: ./packages/clients/src/main.vue?vue&type=template&id=12fa73ca&
6560
6653
 
6561
6654
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/clients/src/main.vue?vue&type=script&lang=js&
6562
6655
  var _props;
@@ -6604,6 +6697,8 @@ var _props;
6604
6697
  //
6605
6698
  //
6606
6699
  //
6700
+ //
6701
+ //
6607
6702
 
6608
6703
  //import util from 'eoss-ui/src/utils/util';
6609
6704
  /* harmony default export */ var clients_src_mainvue_type_script_lang_js_ = ({
@@ -6670,8 +6765,8 @@ var _props;
6670
6765
 
6671
6766
  var clients_src_main_component = normalizeComponent(
6672
6767
  packages_clients_src_mainvue_type_script_lang_js_,
6673
- mainvue_type_template_id_2f0c03c7_render,
6674
- mainvue_type_template_id_2f0c03c7_staticRenderFns,
6768
+ mainvue_type_template_id_12fa73ca_render,
6769
+ mainvue_type_template_id_12fa73ca_staticRenderFns,
6675
6770
  false,
6676
6771
  null,
6677
6772
  null,
@@ -6688,8 +6783,8 @@ clients_src_main.install = function (Vue) {
6688
6783
  };
6689
6784
 
6690
6785
  /* harmony default export */ var clients = (clients_src_main);
6691
- // 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=7b641b60&
6692
- var mainvue_type_template_id_7b641b60_render = function () {
6786
+ // 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=202d0a16&
6787
+ var mainvue_type_template_id_202d0a16_render = function () {
6693
6788
  var _vm = this
6694
6789
  var _h = _vm.$createElement
6695
6790
  var _c = _vm._self._c || _h
@@ -6999,11 +7094,11 @@ var mainvue_type_template_id_7b641b60_render = function () {
6999
7094
  1
7000
7095
  )
7001
7096
  }
7002
- var mainvue_type_template_id_7b641b60_staticRenderFns = []
7003
- mainvue_type_template_id_7b641b60_render._withStripped = true
7097
+ var mainvue_type_template_id_202d0a16_staticRenderFns = []
7098
+ mainvue_type_template_id_202d0a16_render._withStripped = true
7004
7099
 
7005
7100
 
7006
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=7b641b60&
7101
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=202d0a16&
7007
7102
 
7008
7103
  // 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/children.vue?vue&type=template&id=44b7ff61&
7009
7104
  var childrenvue_type_template_id_44b7ff61_render = function () {
@@ -9432,12 +9527,14 @@ var mainvue_type_script_lang_js_components, _watch;
9432
9527
  theads: {
9433
9528
  get: function get() {
9434
9529
  var thead = [];
9530
+ var addfilter = false;
9435
9531
  var types = this.theadData.filter(function (item) {
9436
9532
  return item.type == 'selection' || item.type == 'index' || item.type == 'sort';
9437
9533
  }).map(function (item) {
9438
9534
  return item.type;
9439
9535
  });
9440
9536
  if (this.dragSort && !types.includes('sort')) {
9537
+ addfilter = true;
9441
9538
  thead.push({
9442
9539
  type: 'sort',
9443
9540
  key: 'es-sort'
@@ -9451,8 +9548,12 @@ var mainvue_type_script_lang_js_components, _watch;
9451
9548
  fixed: 'left',
9452
9549
  selectable: this.selectable,
9453
9550
  reserveSelection: this.reserveSelection,
9551
+ filterIcon: this.filter && !addfilter ? 'es-icon-biao' : undefined,
9454
9552
  key: 'es-checkbox'
9455
9553
  });
9554
+ if (!addfilter) {
9555
+ addfilter = true;
9556
+ }
9456
9557
  }
9457
9558
  if (this.numbers && !types.includes('index')) {
9458
9559
  var index = 1;
@@ -9468,9 +9569,12 @@ var mainvue_type_script_lang_js_components, _watch;
9468
9569
  align: 'center',
9469
9570
  fixed: 'left',
9470
9571
  index: index,
9471
- filterIcon: this.filter ? 'es-icon-biao' : undefined,
9572
+ filterIcon: this.filter && !addfilter ? 'es-icon-biao' : undefined,
9472
9573
  key: 'es-index'
9473
9574
  });
9575
+ if (!addfilter) {
9576
+ addfilter = true;
9577
+ }
9474
9578
  }
9475
9579
  if (this.theadData.length) {
9476
9580
  thead = [].concat(thead, this.theadData);
@@ -10436,8 +10540,8 @@ var mainvue_type_script_lang_js_components, _watch;
10436
10540
 
10437
10541
  var data_table_src_main_component = normalizeComponent(
10438
10542
  packages_data_table_src_mainvue_type_script_lang_js_,
10439
- mainvue_type_template_id_7b641b60_render,
10440
- mainvue_type_template_id_7b641b60_staticRenderFns,
10543
+ mainvue_type_template_id_202d0a16_render,
10544
+ mainvue_type_template_id_202d0a16_staticRenderFns,
10441
10545
  false,
10442
10546
  null,
10443
10547
  null,
@@ -46321,6 +46425,8 @@ var input_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
46321
46425
 
46322
46426
  var input_src_mainvue_type_script_lang_js_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; };
46323
46427
 
46428
+ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
46429
+
46324
46430
 
46325
46431
 
46326
46432
 
@@ -46553,26 +46659,34 @@ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
46553
46659
  }, [content]);
46554
46660
  }
46555
46661
  }
46662
+
46663
+ var _$attrs = this.$attrs,
46664
+ prefix = _$attrs.prefix,
46665
+ suffix = _$attrs.suffix,
46666
+ prepend = _$attrs.prepend,
46667
+ append = _$attrs.append,
46668
+ attrs = mainvue_type_script_lang_js_objectWithoutProperties(_$attrs, ['prefix', 'suffix', 'prepend', 'append']);
46669
+
46556
46670
  if (this.$slots.prefix) {
46557
46671
  doms.push(h('template', { slot: 'prefix' }, this.$slots.prefix));
46558
- } else if (this.$attrs.prefix) {
46672
+ } else if (prefix) {
46559
46673
  this.renderd(doms, h, 'prefix');
46560
46674
  cls.push('es-input-button-prefix');
46561
46675
  }
46562
46676
  if (this.$slots.suffix) {
46563
46677
  doms.push(h('template', { slot: 'suffix' }, this.$slots.suffix));
46564
- } else if (this.$attrs.suffix) {
46678
+ } else if (suffix) {
46565
46679
  this.renderd(doms, h, 'suffix');
46566
46680
  cls.push('es-input-button-suffix');
46567
46681
  }
46568
46682
  if (this.$slots.prepend) {
46569
46683
  doms.push(h('template', { slot: 'prepend' }, this.$slots.prepend));
46570
- } else if (this.$attrs.prepend) {
46684
+ } else if (prepend) {
46571
46685
  this.renderd(doms, h, 'prepend');
46572
46686
  }
46573
46687
  if (this.$slots.append) {
46574
46688
  doms.push(h('template', { slot: 'append' }, this.$slots.append));
46575
- } else if (this.$attrs.append) {
46689
+ } else if (append) {
46576
46690
  this.renderd(doms, h, 'append');
46577
46691
  }
46578
46692
  if (this.fetchSuggestions || this.url || this.data.length > 0) {
@@ -46581,7 +46695,7 @@ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
46581
46695
  props: {
46582
46696
  rules: this.rule
46583
46697
  },
46584
- attrs: input_src_mainvue_type_script_lang_js_extends({}, this.$attrs, {
46698
+ attrs: input_src_mainvue_type_script_lang_js_extends({}, attrs, {
46585
46699
  fetchSuggestions: this.fetchSuggestions ? this.fetchSuggestions : this.getData,
46586
46700
  triggerOnFocus: this.focusShow,
46587
46701
  value: this.model
@@ -46599,7 +46713,7 @@ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
46599
46713
  domProps: {
46600
46714
  value: this.model
46601
46715
  },
46602
- attrs: input_src_mainvue_type_script_lang_js_extends({}, this.$attrs),
46716
+ attrs: input_src_mainvue_type_script_lang_js_extends({}, attrs),
46603
46717
  on: input_src_mainvue_type_script_lang_js_extends({}, this.$listeners),
46604
46718
  directives: [{
46605
46719
  name: 'show',
@@ -47460,8 +47574,8 @@ layout_src_main.install = function (Vue) {
47460
47574
  };
47461
47575
 
47462
47576
  /* harmony default export */ var layout = (layout_src_main);
47463
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=249fae96&
47464
- var mainvue_type_template_id_249fae96_render = function () {
47577
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=5f60346a&
47578
+ var mainvue_type_template_id_5f60346a_render = function () {
47465
47579
  var _vm = this
47466
47580
  var _h = _vm.$createElement
47467
47581
  var _c = _vm._self._c || _h
@@ -48391,14 +48505,14 @@ var mainvue_type_template_id_249fae96_render = function () {
48391
48505
  )
48392
48506
  : _vm._e()
48393
48507
  }
48394
- var mainvue_type_template_id_249fae96_staticRenderFns = []
48395
- mainvue_type_template_id_249fae96_render._withStripped = true
48508
+ var mainvue_type_template_id_5f60346a_staticRenderFns = []
48509
+ mainvue_type_template_id_5f60346a_render._withStripped = true
48396
48510
 
48397
48511
 
48398
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=249fae96&
48512
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=5f60346a&
48399
48513
 
48400
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=28f463b9&
48401
- var resetPasswordvue_type_template_id_28f463b9_render = function () {
48514
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=579bc87d&
48515
+ var resetPasswordvue_type_template_id_579bc87d_render = function () {
48402
48516
  var _vm = this
48403
48517
  var _h = _vm.$createElement
48404
48518
  var _c = _vm._self._c || _h
@@ -48458,11 +48572,11 @@ var resetPasswordvue_type_template_id_28f463b9_render = function () {
48458
48572
  1
48459
48573
  )
48460
48574
  }
48461
- var resetPasswordvue_type_template_id_28f463b9_staticRenderFns = []
48462
- resetPasswordvue_type_template_id_28f463b9_render._withStripped = true
48575
+ var resetPasswordvue_type_template_id_579bc87d_staticRenderFns = []
48576
+ resetPasswordvue_type_template_id_579bc87d_render._withStripped = true
48463
48577
 
48464
48578
 
48465
- // CONCATENATED MODULE: ./packages/login/src/resetPassword.vue?vue&type=template&id=28f463b9&
48579
+ // CONCATENATED MODULE: ./packages/login/src/resetPassword.vue?vue&type=template&id=579bc87d&
48466
48580
 
48467
48581
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=script&lang=js&
48468
48582
  var resetPasswordvue_type_script_lang_js_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; };
@@ -48706,7 +48820,7 @@ function resetPasswordvue_type_script_lang_js_objectWithoutProperties(obj, keys)
48706
48820
  trigger: 'blur'
48707
48821
  } : {}, {
48708
48822
  required: true,
48709
- message: '请输入新密码',
48823
+ message: '请确认新密码',
48710
48824
  trigger: 'blur'
48711
48825
  }, { validator: this.reregExpValidate, trigger: 'blur' }]
48712
48826
  }, {
@@ -48942,8 +49056,8 @@ function resetPasswordvue_type_script_lang_js_objectWithoutProperties(obj, keys)
48942
49056
 
48943
49057
  var resetPassword_component = normalizeComponent(
48944
49058
  src_resetPasswordvue_type_script_lang_js_,
48945
- resetPasswordvue_type_template_id_28f463b9_render,
48946
- resetPasswordvue_type_template_id_28f463b9_staticRenderFns,
49059
+ resetPasswordvue_type_template_id_579bc87d_render,
49060
+ resetPasswordvue_type_template_id_579bc87d_staticRenderFns,
48947
49061
  false,
48948
49062
  null,
48949
49063
  null,
@@ -49314,6 +49428,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49314
49428
 
49315
49429
 
49316
49430
 
49431
+
49317
49432
  /* harmony default export */ var login_src_mainvue_type_script_lang_js_ = ({
49318
49433
  name: 'EsLogin',
49319
49434
  inheritAttrs: false,
@@ -49502,6 +49617,10 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49502
49617
  scanIntervalTime: {
49503
49618
  type: Number,
49504
49619
  default: 1500
49620
+ },
49621
+ isScale: {
49622
+ type: Boolean,
49623
+ default: true
49505
49624
  }
49506
49625
  },
49507
49626
  computed: {
@@ -49695,9 +49814,16 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49695
49814
  };
49696
49815
  },
49697
49816
  beforeCreate: function beforeCreate() {
49817
+ this.setScale = Object(external_throttle_debounce_["debounce"])(300, function () {
49818
+ utils_util["a" /* default */].setScale();
49819
+ });
49698
49820
  utils_util["a" /* default */].removeStorage(['remind', 'ssId', 'token', 'Authorization', 'deviceUnique', 'userId', 'userName', 'useCaseCodes']);
49699
49821
  },
49700
49822
  created: function created() {
49823
+ if (this.isScale) {
49824
+ utils_util["a" /* default */].setScale();
49825
+ window.addEventListener('resize', this.setScale);
49826
+ }
49701
49827
  this.code = utils_util["a" /* default */].getParams('code');
49702
49828
  if (this.code) {
49703
49829
  this.doWechatLogin(this.code);
@@ -50416,6 +50542,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50416
50542
  }
50417
50543
  },
50418
50544
  beforeDestroy: function beforeDestroy() {
50545
+ window.removeEventListener('resize', this.setScale);
50419
50546
  document.removeEventListener('keyup', this.doLogin);
50420
50547
  document.removeEventListener('keydown', this.forbiddenTab);
50421
50548
  }
@@ -50432,8 +50559,8 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50432
50559
 
50433
50560
  var login_src_main_component = normalizeComponent(
50434
50561
  packages_login_src_mainvue_type_script_lang_js_,
50435
- mainvue_type_template_id_249fae96_render,
50436
- mainvue_type_template_id_249fae96_staticRenderFns,
50562
+ mainvue_type_template_id_5f60346a_render,
50563
+ mainvue_type_template_id_5f60346a_staticRenderFns,
50437
50564
  false,
50438
50565
  null,
50439
50566
  null,
@@ -50450,8 +50577,8 @@ login_src_main.install = function (Vue) {
50450
50577
  };
50451
50578
 
50452
50579
  /* harmony default export */ var login = (login_src_main);
50453
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=a08554be&
50454
- var mainvue_type_template_id_a08554be_render = function () {
50580
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=572765ea&
50581
+ var mainvue_type_template_id_572765ea_render = function () {
50455
50582
  var _vm = this
50456
50583
  var _h = _vm.$createElement
50457
50584
  var _c = _vm._self._c || _h
@@ -50656,6 +50783,7 @@ var mainvue_type_template_id_a08554be_render = function () {
50656
50783
  _vm.showMenu && _vm.showDefault
50657
50784
  ? _c("es-nav", {
50658
50785
  attrs: {
50786
+ "hide-sub-menu": _vm.hideSubMenu,
50659
50787
  "is-top": _vm.layout == "topside",
50660
50788
  overlap: _vm.layout == "side",
50661
50789
  data: _vm.menu,
@@ -50898,15 +51026,42 @@ var mainvue_type_template_id_a08554be_render = function () {
50898
51026
  attrs: { data: _vm.sysMsg, winopen: _vm.winopen },
50899
51027
  on: { opened: _vm.handleOpened },
50900
51028
  }),
51029
+ _c(
51030
+ "es-dialog",
51031
+ {
51032
+ attrs: {
51033
+ title: _vm.dialog.title,
51034
+ visible: _vm.dialog.show,
51035
+ size: "md",
51036
+ },
51037
+ on: {
51038
+ "update:visible": function ($event) {
51039
+ _vm.$set(_vm.dialog, "show", $event)
51040
+ },
51041
+ },
51042
+ },
51043
+ [
51044
+ _vm.dialog.show
51045
+ ? _c("iframe", {
51046
+ attrs: {
51047
+ width: "100%",
51048
+ height: "100%",
51049
+ frameborder: "0",
51050
+ src: _vm.dialog.src,
51051
+ },
51052
+ })
51053
+ : _vm._e(),
51054
+ ]
51055
+ ),
50901
51056
  ],
50902
51057
  1
50903
51058
  )
50904
51059
  }
50905
- var mainvue_type_template_id_a08554be_staticRenderFns = []
50906
- mainvue_type_template_id_a08554be_render._withStripped = true
51060
+ var mainvue_type_template_id_572765ea_staticRenderFns = []
51061
+ mainvue_type_template_id_572765ea_render._withStripped = true
50907
51062
 
50908
51063
 
50909
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=a08554be&
51064
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=572765ea&
50910
51065
 
50911
51066
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=75d533de&
50912
51067
  var userinfovue_type_template_id_75d533de_render = function () {
@@ -53036,6 +53191,16 @@ var main_src_mainvue_type_script_lang_js_extends = Object.assign || function (ta
53036
53191
  //
53037
53192
  //
53038
53193
  //
53194
+ //
53195
+ //
53196
+ //
53197
+ //
53198
+ //
53199
+ //
53200
+ //
53201
+ //
53202
+ //
53203
+ //
53039
53204
 
53040
53205
 
53041
53206
 
@@ -53211,6 +53376,10 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53211
53376
  showCollapse: {
53212
53377
  type: Boolean,
53213
53378
  default: true
53379
+ },
53380
+ onlineView: {
53381
+ type: [String, Boolean],
53382
+ default: true
53214
53383
  }
53215
53384
  },
53216
53385
  computed: {
@@ -53333,6 +53502,12 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53333
53502
  },
53334
53503
  menuCode: function menuCode() {
53335
53504
  return appCode || this.appCode;
53505
+ },
53506
+ onlineUrl: function onlineUrl() {
53507
+ if (this.onlineView) {
53508
+ return typeof this.onlineView == 'string' ? this.onlineView : '/main/sysuseronline/list.dhtml';
53509
+ }
53510
+ return false;
53336
53511
  }
53337
53512
  },
53338
53513
  watch: {
@@ -53450,7 +53625,9 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53450
53625
  timer: null,
53451
53626
  pid: null,
53452
53627
  showPage: false,
53453
- webSocket: null
53628
+ webSocket: null,
53629
+ dialog: {},
53630
+ hideSubMenu: false
53454
53631
  };
53455
53632
  },
53456
53633
  created: function created() {
@@ -53798,10 +53975,16 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53798
53975
  * @param {Boolean} [isUrl] - res是否是url地址
53799
53976
  * @param {Object} [param] - 拼接地址后的参数
53800
53977
  */
53801
- jumpMenu: function jumpMenu(res, isUrl, path) {
53978
+ jumpMenu: function jumpMenu(res, isUrl, param, hide) {
53802
53979
  var _this5 = this;
53803
53980
 
53804
- var option = { url: res, isUrl: isUrl, path: path };
53981
+ if (this.showSide === false) {
53982
+ this.isSide = true;
53983
+ }
53984
+ if (hide !== undefined && hide !== null && hide !== '') {
53985
+ this.hideSubMenu = hide;
53986
+ }
53987
+ var option = { url: res, isUrl: isUrl, param: param };
53805
53988
  if (utils_util["a" /* default */].isObject(res)) {
53806
53989
  if (res.urlopenmode == 1) {
53807
53990
  utils_util["a" /* default */].win.open(res.url);
@@ -53827,11 +54010,11 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
53827
54010
  this.method = 'router';
53828
54011
  var routes = this.$router.options.routes;
53829
54012
  if (routes) {
53830
- var _path = this.hasRouter(routes, option.url);
53831
- if (_path) {
54013
+ var path = this.hasRouter(routes, option.url);
54014
+ if (path) {
53832
54015
  var params = utils_util["a" /* default */].getParams({ url: option.url });
53833
54016
  this.$router.push({
53834
- path: _path,
54017
+ path: path,
53835
54018
  query: params
53836
54019
  });
53837
54020
  } else {
@@ -54297,6 +54480,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
54297
54480
  }
54298
54481
  break;
54299
54482
  case 'sub':
54483
+ this.hideSubMenu = false;
54300
54484
  this.navIds = [node.id];
54301
54485
  if (node.url) {
54302
54486
  this.tabs = [];
@@ -54393,19 +54577,19 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
54393
54577
  }
54394
54578
  }
54395
54579
  } else {
54396
- var _path2 = res.path;
54397
- if (_path2 !== '/' && _path2 !== '/404') {
54398
- _path2 = _path2.replace(_path2[1], _path2[1].toLowerCase());
54580
+ var _path = res.path;
54581
+ if (_path !== '/' && _path !== '/404') {
54582
+ _path = _path.replace(_path[1], _path[1].toLowerCase());
54399
54583
  }
54400
54584
  var pathname = url.substring(url.indexOf('#/') + 1);
54401
54585
  pathname = pathname.replace(pathname[1], pathname[1].toLowerCase()).split('?')[0];
54402
- if (res.path !== '/' && pathname == _path2) {
54586
+ if (res.path !== '/' && pathname == _path) {
54403
54587
  return pathname;
54404
54588
  }
54405
54589
  if (res && Object.prototype.hasOwnProperty.call(res, 'children')) {
54406
- var _path3 = this.hasRouter(res.children, url);
54407
- if (_path3) {
54408
- return _path3;
54590
+ var _path2 = this.hasRouter(res.children, url);
54591
+ if (_path2) {
54592
+ return _path2;
54409
54593
  }
54410
54594
  }
54411
54595
  }
@@ -54417,6 +54601,7 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
54417
54601
  handleClick: function handleClick(res) {
54418
54602
  var _this8 = this;
54419
54603
 
54604
+ console.log(res);
54420
54605
  var type = res.type;
54421
54606
 
54422
54607
  switch (type) {
@@ -54442,13 +54627,15 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
54442
54627
  case 'user':
54443
54628
  this.showUserInfo = true;
54444
54629
  break;
54445
- // case 'online':
54446
- // this.dialog = {
54447
- // title: '查看在线人员',
54448
- // show: true,
54449
- // url: '/main/sysuseronline/list.dhtml'
54450
- // };
54451
- // break;
54630
+ case 'online':
54631
+ if (this.onlineUrl) {
54632
+ this.dialog = {
54633
+ title: '查看在线人员',
54634
+ show: true,
54635
+ src: this.onlineUrl
54636
+ };
54637
+ }
54638
+ break;
54452
54639
  case 'notice':
54453
54640
  this.showMsg = !this.showMsg;
54454
54641
  break;
@@ -54891,8 +55078,8 @@ var appCode = utils_util["a" /* default */].getParams('appCode') || utils_util["
54891
55078
 
54892
55079
  var main_src_main_component = normalizeComponent(
54893
55080
  packages_main_src_mainvue_type_script_lang_js_,
54894
- mainvue_type_template_id_a08554be_render,
54895
- mainvue_type_template_id_a08554be_staticRenderFns,
55081
+ mainvue_type_template_id_572765ea_render,
55082
+ mainvue_type_template_id_572765ea_staticRenderFns,
54896
55083
  false,
54897
55084
  null,
54898
55085
  null,
@@ -55330,8 +55517,8 @@ menu_src_main.install = function (Vue) {
55330
55517
  };
55331
55518
 
55332
55519
  /* harmony default export */ var menu = (menu_src_main);
55333
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/nav/src/main.vue?vue&type=template&id=7b4319fb&
55334
- var mainvue_type_template_id_7b4319fb_render = function () {
55520
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/nav/src/main.vue?vue&type=template&id=ccb38c80&
55521
+ var mainvue_type_template_id_ccb38c80_render = function () {
55335
55522
  var _vm = this
55336
55523
  var _h = _vm.$createElement
55337
55524
  var _c = _vm._self._c || _h
@@ -55394,15 +55581,15 @@ var mainvue_type_template_id_7b4319fb_render = function () {
55394
55581
  {
55395
55582
  name: "show",
55396
55583
  rawName: "v-show",
55397
- value: _vm.biserial ? _vm.subMenu.length : _vm.menu.length,
55398
- expression: "biserial ? subMenu.length : menu.length",
55584
+ value: _vm.showMenu,
55585
+ expression: "showMenu",
55399
55586
  },
55400
55587
  ],
55401
55588
  staticClass: "es-nav-main",
55402
55589
  class: { "es-nav-overlap": _vm.overlap },
55403
55590
  style: {
55404
55591
  width: _vm.biserial ? _vm.width : _vm.boxWidth,
55405
- left: _vm.show ? "15px" : _vm.navWidth,
55592
+ left: _vm.biserial ? (_vm.show ? "15px" : _vm.navWidth) : "",
55406
55593
  },
55407
55594
  attrs: { biserial: _vm.biserial },
55408
55595
  },
@@ -55517,11 +55704,11 @@ var mainvue_type_template_id_7b4319fb_render = function () {
55517
55704
  ]
55518
55705
  )
55519
55706
  }
55520
- var mainvue_type_template_id_7b4319fb_staticRenderFns = []
55521
- mainvue_type_template_id_7b4319fb_render._withStripped = true
55707
+ var mainvue_type_template_id_ccb38c80_staticRenderFns = []
55708
+ mainvue_type_template_id_ccb38c80_render._withStripped = true
55522
55709
 
55523
55710
 
55524
- // CONCATENATED MODULE: ./packages/nav/src/main.vue?vue&type=template&id=7b4319fb&
55711
+ // CONCATENATED MODULE: ./packages/nav/src/main.vue?vue&type=template&id=ccb38c80&
55525
55712
 
55526
55713
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/nav/src/main.vue?vue&type=script&lang=js&
55527
55714
  //
@@ -55617,6 +55804,7 @@ mainvue_type_template_id_7b4319fb_render._withStripped = true
55617
55804
  //
55618
55805
 
55619
55806
 
55807
+
55620
55808
  /* harmony default export */ var nav_src_mainvue_type_script_lang_js_ = ({
55621
55809
  name: 'EsNav',
55622
55810
  inheritAttrs: false,
@@ -55657,7 +55845,9 @@ mainvue_type_template_id_7b4319fb_render._withStripped = true
55657
55845
  type: Boolean,
55658
55846
  default: true
55659
55847
  },
55660
- overlap: Boolean
55848
+ overlap: Boolean,
55849
+ //隐藏菜单
55850
+ hideSubMenu: Boolean
55661
55851
  },
55662
55852
  computed: {
55663
55853
  show: function show() {
@@ -55694,7 +55884,7 @@ mainvue_type_template_id_7b4319fb_render._withStripped = true
55694
55884
  return this.navWidth;
55695
55885
  }
55696
55886
  }
55697
- return this.subMenu && this.subMenu.length && this.isShow && !this.overlap ? parseInt(this.width, 10) + parseInt(this.navWidth, 10) + 'px' : this.navWidth;
55887
+ return this.subMenu && this.subMenu.length && this.isShow && !this.overlap && !this.hideSubMenu ? parseInt(this.width, 10) + parseInt(this.navWidth, 10) + 'px' : this.navWidth;
55698
55888
  },
55699
55889
  _navWidth: function _navWidth() {
55700
55890
  return this.overlap ? parseInt(this.navWidth, 10) - 30 + 'px' : this.navWidth;
@@ -55709,11 +55899,14 @@ mainvue_type_template_id_7b4319fb_render._withStripped = true
55709
55899
  this.headline = val;
55710
55900
  }
55711
55901
  },
55902
+ boxWidth: function boxWidth() {
55903
+ this.getHeight();
55904
+ },
55712
55905
 
55713
55906
  biserial: {
55714
55907
  handler: function handler(val) {
55715
55908
  this.isShow = !val;
55716
- this.resetHeight();
55909
+ this.getHeight();
55717
55910
  }
55718
55911
  },
55719
55912
  defaultActive: {
@@ -55764,8 +55957,10 @@ mainvue_type_template_id_7b4319fb_render._withStripped = true
55764
55957
  this.subMenu = [];
55765
55958
  }
55766
55959
  },
55767
- showMenu: function showMenu() {
55768
- this.resetHeight();
55960
+ showMenu: function showMenu(val) {
55961
+ if (val) {
55962
+ this.getHeight();
55963
+ }
55769
55964
  }
55770
55965
  },
55771
55966
  data: function data() {
@@ -55780,15 +55975,22 @@ mainvue_type_template_id_7b4319fb_render._withStripped = true
55780
55975
  subMenu: []
55781
55976
  };
55782
55977
  },
55978
+ beforeCreate: function beforeCreate() {
55979
+ var _this3 = this;
55980
+
55981
+ this.getHeight = Object(external_throttle_debounce_["debounce"])(500, function () {
55982
+ _this3.resetHeight();
55983
+ });
55984
+ },
55783
55985
  mounted: function mounted() {
55784
- this.resetHeight();
55986
+ this.getHeight();
55785
55987
  this.move();
55786
55988
  },
55787
55989
 
55788
55990
  methods: {
55789
55991
  //设置按钮拖动
55790
55992
  move: function move() {
55791
- var _this3 = this;
55993
+ var _this4 = this;
55792
55994
 
55793
55995
  var area = this.$refs.area.$el;
55794
55996
  var box = this.$refs.box;
@@ -55840,7 +56042,7 @@ mainvue_type_template_id_7b4319fb_render._withStripped = true
55840
56042
  var isClick = eTime - sTime < 200;
55841
56043
  if (isClick) {
55842
56044
  var onArea = function onArea() {
55843
- _this3.subMenu = [];
56045
+ _this4.subMenu = [];
55844
56046
  area.removeEventListener('click', onArea);
55845
56047
  };
55846
56048
  area.addEventListener('click', onArea);
@@ -55886,12 +56088,12 @@ mainvue_type_template_id_7b4319fb_render._withStripped = true
55886
56088
  this.$emit('close', res);
55887
56089
  },
55888
56090
  resetHeight: function resetHeight() {
55889
- var _this4 = this;
56091
+ var _this5 = this;
55890
56092
 
55891
56093
  this.$nextTick(function () {
55892
- var height = _this4.$refs.esNav.parentNode.offsetHeight;
55893
- Array.from(_this4.$refs.esNav.parentNode.children).forEach(function (item) {
55894
- if (item !== _this4.$refs.esNav) {
56094
+ var height = _this5.$refs.esNav.parentNode.offsetHeight;
56095
+ Array.from(_this5.$refs.esNav.parentNode.children).forEach(function (item) {
56096
+ if (item !== _this5.$refs.esNav) {
55895
56097
  var mt = utils_util["a" /* default */].getStyle(item, 'margin-top');
55896
56098
  var mb = utils_util["a" /* default */].getStyle(item, 'margin-bottom');
55897
56099
  mt = mt ? parseInt(mt, 10) : 0;
@@ -55899,15 +56101,15 @@ mainvue_type_template_id_7b4319fb_render._withStripped = true
55899
56101
  height -= item.offsetHeight + mt + mb;
55900
56102
  }
55901
56103
  });
55902
- if (_this4.overlap) {
56104
+ if (_this5.overlap) {
55903
56105
  height -= 15;
55904
56106
  }
55905
- _this4.height = height + 'px';
55906
- if (_this4.showTitle) {
55907
- var theight = _this4.$refs.navTitle.offsetHeight;
55908
- _this4.menuHeight = height - theight + 'px';
56107
+ _this5.height = height + 'px';
56108
+ if (_this5.showTitle) {
56109
+ var theight = _this5.$refs.navTitle.offsetHeight;
56110
+ _this5.menuHeight = height - theight + 'px';
55909
56111
  } else {
55910
- _this4.menuHeight = height + 'px';
56112
+ _this5.menuHeight = height + 'px';
55911
56113
  }
55912
56114
  });
55913
56115
  }
@@ -55925,8 +56127,8 @@ mainvue_type_template_id_7b4319fb_render._withStripped = true
55925
56127
 
55926
56128
  var nav_src_main_component = normalizeComponent(
55927
56129
  packages_nav_src_mainvue_type_script_lang_js_,
55928
- mainvue_type_template_id_7b4319fb_render,
55929
- mainvue_type_template_id_7b4319fb_staticRenderFns,
56130
+ mainvue_type_template_id_ccb38c80_render,
56131
+ mainvue_type_template_id_ccb38c80_staticRenderFns,
55930
56132
  false,
55931
56133
  null,
55932
56134
  null,
@@ -58473,6 +58675,8 @@ var select_src_mainvue_type_script_lang_js_extends = Object.assign || function (
58473
58675
 
58474
58676
  var select_src_mainvue_type_script_lang_js_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; };
58475
58677
 
58678
+ function src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
58679
+
58476
58680
 
58477
58681
 
58478
58682
 
@@ -59064,26 +59268,34 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
59064
59268
  });
59065
59269
  }
59066
59270
  }
59271
+
59272
+ var _$attrs = this.$attrs,
59273
+ prefix = _$attrs.prefix,
59274
+ suffix = _$attrs.suffix,
59275
+ prepend = _$attrs.prepend,
59276
+ append = _$attrs.append,
59277
+ attrs = src_mainvue_type_script_lang_js_objectWithoutProperties(_$attrs, ['prefix', 'suffix', 'prepend', 'append']);
59278
+
59067
59279
  if (this.$slots.prefix) {
59068
59280
  doms.push(h('template', { slot: 'prefix' }, this.$slots.prefix));
59069
- } else if (this.$attrs.prefix) {
59281
+ } else if (prefix) {
59070
59282
  this.renderd(doms, h, 'prefix');
59071
59283
  cls.push('es-select-button-prefix');
59072
59284
  }
59073
59285
  if (this.$slots.suffix) {
59074
59286
  doms.push(h('template', { slot: 'suffix' }, this.$slots.suffix));
59075
- } else if (this.$attrs.suffix) {
59287
+ } else if (suffix) {
59076
59288
  this.renderd(doms, h, 'suffix');
59077
59289
  cls.push('es-select-button-suffix');
59078
59290
  }
59079
59291
  if (this.$slots.prepend) {
59080
59292
  doms.push(h('template', { slot: 'prepend' }, this.$slots.prepend));
59081
- } else if (this.$attrs.prepend) {
59293
+ } else if (prepend) {
59082
59294
  this.renderd(doms, h, 'prepend');
59083
59295
  }
59084
59296
  if (this.$slots.append) {
59085
59297
  doms.push(h('template', { slot: 'append' }, this.$slots.append));
59086
- } else if (this.$attrs.append) {
59298
+ } else if (append) {
59087
59299
  this.renderd(doms, h, 'append');
59088
59300
  }
59089
59301
  if (!this.models && this.results.length && this.defaultValue) {
@@ -59103,7 +59315,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
59103
59315
  name: 'show',
59104
59316
  value: this.display
59105
59317
  }],
59106
- props: select_src_mainvue_type_script_lang_js_extends({}, this.$attrs, {
59318
+ props: select_src_mainvue_type_script_lang_js_extends({}, attrs, {
59107
59319
  multiple: this.multiple,
59108
59320
  valueType: this.valueType,
59109
59321
  valueKey: this.valKey,
@@ -68428,7 +68640,7 @@ tree_group_src_main.install = function (Vue) {
68428
68640
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/toolbar/src/main.vue?vue&type=script&lang=js&
68429
68641
  var toolbar_src_mainvue_type_script_lang_js_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; };
68430
68642
 
68431
- function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
68643
+ function toolbar_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
68432
68644
 
68433
68645
  /* harmony default export */ var toolbar_src_mainvue_type_script_lang_js_ = ({
68434
68646
  name: 'EsToolbar',
@@ -68579,7 +68791,7 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
68579
68791
  multiCondition = items.multiCondition,
68580
68792
  contents = items.contents,
68581
68793
  group = items.group,
68582
- other = mainvue_type_script_lang_js_objectWithoutProperties(items, ['config', 'type', 'reset', 'multiCondition', 'contents', 'group']);
68794
+ other = toolbar_src_mainvue_type_script_lang_js_objectWithoutProperties(items, ['config', 'type', 'reset', 'multiCondition', 'contents', 'group']);
68583
68795
 
68584
68796
  if (type === 'text') {
68585
68797
  text = [h('div', { class: 'es-toolbar-text' }, Array.isArray(contents) ? contents.map(function (item) {
@@ -74979,7 +75191,7 @@ if (typeof window !== 'undefined' && window.Vue) {
74979
75191
  }
74980
75192
 
74981
75193
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
74982
- version: '0.5.73',
75194
+ version: '0.5.75',
74983
75195
  install: install,
74984
75196
  Button: packages_button,
74985
75197
  ButtonGroup: button_group,