eoss-ui 0.5.61 → 0.5.63

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 (87) hide show
  1. package/lib/button-group.js +147 -129
  2. package/lib/button.js +14 -8
  3. package/lib/checkbox-group.js +14 -8
  4. package/lib/data-table-form.js +14 -8
  5. package/lib/data-table.js +129 -104
  6. package/lib/date-picker.js +14 -8
  7. package/lib/dialog.js +17 -11
  8. package/lib/eoss-ui.common.js +688 -545
  9. package/lib/flow-group.js +14 -8
  10. package/lib/flow-list.js +14 -8
  11. package/lib/flow.js +17 -11
  12. package/lib/form.js +14 -8
  13. package/lib/handle-user.js +14 -8
  14. package/lib/handler.js +17 -11
  15. package/lib/icon.js +19 -15
  16. package/lib/icons.js +2 -2
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +14 -8
  19. package/lib/input.js +14 -8
  20. package/lib/label.js +2 -2
  21. package/lib/login.js +139 -68
  22. package/lib/main.js +208 -164
  23. package/lib/menu.js +2 -2
  24. package/lib/nav.js +14 -8
  25. package/lib/page.js +14 -8
  26. package/lib/player.js +18 -12
  27. package/lib/qr-code.js +16 -10
  28. package/lib/radio-group.js +14 -8
  29. package/lib/retrial-auth.js +14 -8
  30. package/lib/select-ganged.js +14 -8
  31. package/lib/select.js +14 -8
  32. package/lib/selector-panel.js +17 -11
  33. package/lib/selector.js +18 -23
  34. package/lib/sizer.js +14 -8
  35. package/lib/steps.js +14 -8
  36. package/lib/switch.js +14 -8
  37. package/lib/table-form.js +14 -8
  38. package/lib/tabs.js +14 -8
  39. package/lib/theme-chalk/base.css +1 -1
  40. package/lib/theme-chalk/card.css +1 -1
  41. package/lib/theme-chalk/form.css +1 -1
  42. package/lib/theme-chalk/icon.css +1 -1
  43. package/lib/theme-chalk/index.css +1 -1
  44. package/lib/theme-chalk/login.css +1 -1
  45. package/lib/theme-chalk/main.css +1 -1
  46. package/lib/theme-chalk/menu.css +1 -1
  47. package/lib/theme-chalk/sizer.css +1 -1
  48. package/lib/theme-chalk/upload.css +1 -1
  49. package/lib/tips.js +14 -8
  50. package/lib/toolbar.js +4 -1
  51. package/lib/tree-group.js +28 -11
  52. package/lib/tree.js +14 -8
  53. package/lib/upload.js +17 -11
  54. package/lib/utils/util.js +14 -8
  55. package/lib/wujie.js +14 -8
  56. package/lib/wxlogin.js +14 -8
  57. package/package.json +3 -2
  58. package/packages/button-group/src/main.vue +71 -58
  59. package/packages/data-table/src/main.vue +11 -2
  60. package/packages/flow/src/main.vue +1 -1
  61. package/packages/handler/src/main.vue +1 -1
  62. package/packages/icon/src/main.vue +2 -2
  63. package/packages/label/src/main.vue +2 -2
  64. package/packages/login/src/main.vue +63 -35
  65. package/packages/main/src/main.vue +19 -11
  66. package/packages/main/src/userinfo.vue +165 -150
  67. package/packages/menu/src/main.vue +2 -2
  68. package/packages/selector/src/main.vue +0 -1
  69. package/packages/theme-chalk/lib/base.css +1 -1
  70. package/packages/theme-chalk/lib/card.css +1 -1
  71. package/packages/theme-chalk/lib/form.css +1 -1
  72. package/packages/theme-chalk/lib/icon.css +1 -1
  73. package/packages/theme-chalk/lib/index.css +1 -1
  74. package/packages/theme-chalk/lib/login.css +1 -1
  75. package/packages/theme-chalk/lib/main.css +1 -1
  76. package/packages/theme-chalk/lib/menu.css +1 -1
  77. package/packages/theme-chalk/lib/sizer.css +1 -1
  78. package/packages/theme-chalk/lib/upload.css +1 -1
  79. package/packages/theme-chalk/src/card.scss +2 -2
  80. package/packages/theme-chalk/src/form.scss +5 -3
  81. package/packages/theme-chalk/src/icon.scss +3 -3
  82. package/packages/theme-chalk/src/login.scss +6 -0
  83. package/packages/theme-chalk/src/menu.scss +1 -1
  84. package/packages/toolbar/src/main.vue +4 -1
  85. package/packages/tree-group/src/main.vue +12 -1
  86. package/src/index.js +1 -1
  87. package/src/utils/util.js +14 -9
@@ -370,7 +370,7 @@ var ajax = function ajax(_ref) {
370
370
  error.message = '未授权,请重新登录';
371
371
  break;
372
372
  case 403:
373
- error.message = '登录过期,请重新登录';
373
+ error.message = '服务器错误';
374
374
  break;
375
375
  case 404:
376
376
  error.message = '网络请求不存在';
@@ -382,7 +382,7 @@ var ajax = function ajax(_ref) {
382
382
  error.message = '请求超时';
383
383
  break;
384
384
  case 500:
385
- error.message = '服务器端出错';
385
+ error.message = '服务器错误';
386
386
  break;
387
387
  case 501:
388
388
  error.message = '网络未实现';
@@ -738,18 +738,23 @@ var dayOfMonth = function dayOfMonth(date) {
738
738
  * @desc:添加js内容
739
739
  * @author huangbo
740
740
  * @date 2022年5月7日
741
- * @param {Function} [fn] - 函数
741
+ * @param {Function} [callback] - 函数
742
742
  * @param {Number} [wait] - 延迟毫秒数
743
743
  * @param {Boolean} [immediate] - 是否首次触发执行
744
744
  **/
745
745
 
746
- var debounce = function debounce(callback, delay) {
747
- var timeout = null;
746
+ var debounce = function debounce(callback, wait) {
747
+ var timeout = void 0;
748
748
  return function () {
749
- clearTimeout(timeout);
750
- timeout = setTimeout(callback, delay ? delay : 500);
749
+ var context = this;
750
+ var args = arguments;
751
+ if (timeout) clearTimeout(timeout);
752
+ timeout = setTimeout(function () {
753
+ callback.apply(context, args);
754
+ }, wait || 500);
751
755
  };
752
756
  };
757
+
753
758
  /**
754
759
  * delUrlParam
755
760
  * @desc:删除url指定参数
@@ -2886,7 +2891,8 @@ var toFunction = function toFunction(str) {
2886
2891
  * @param {string} [$color] - 颜色值
2887
2892
  **/
2888
2893
  var updateTheme = function updateTheme(color, send) {
2889
- color = color ? color : '#409eff';
2894
+ color = color && startWith(color, '#') ? color : '#409eff';
2895
+
2890
2896
  if (send === undefined) {
2891
2897
  send = true;
2892
2898
  }
@@ -3608,7 +3614,7 @@ function normalizeComponent(
3608
3614
  // ESM COMPAT FLAG
3609
3615
  __webpack_require__.r(__webpack_exports__);
3610
3616
 
3611
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=template&id=262bd5a6&
3617
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=template&id=a336a590&
3612
3618
  var render = function () {
3613
3619
  var _vm = this
3614
3620
  var _h = _vm.$createElement
@@ -3617,129 +3623,131 @@ var render = function () {
3617
3623
  "el-button-group",
3618
3624
  { staticClass: "es-button-group" },
3619
3625
  [
3620
- _vm._l(_vm.btns, function (item, index) {
3621
- return [
3622
- item && !item.hide
3623
- ? [
3624
- item.upload || (item.code && item.ownId)
3625
- ? _c(
3626
- "es-upload",
3627
- _vm._b(
3628
- { staticClass: "el-button" },
3629
- "es-upload",
3630
- Object.assign({}, item, {
3631
- method: "post",
3632
- size: _vm.size,
3633
- showFileList: false,
3634
- selectType: item.type ? item.type : "",
3635
- }),
3636
- false
3637
- )
3638
- )
3639
- : _c(
3640
- "es-button",
3641
- _vm._b(
3642
- {
3643
- key: index,
3644
- attrs: {
3645
- stop: _vm.stop,
3646
- size: _vm.size,
3647
- type: item.type,
3648
- },
3649
- on: {
3650
- click: function ($event) {
3651
- _vm.handleClick(
3652
- Object.assign({}, _vm.data, { handle: item })
3653
- )
3654
- },
3655
- },
3656
- },
3657
- "es-button",
3658
- item,
3659
- false
3660
- ),
3661
- [
3626
+ _vm.length > 1
3627
+ ? [
3628
+ _vm._l(_vm.showBtns, function (item, index) {
3629
+ return [
3630
+ item && !item.hide
3631
+ ? [
3632
+ item.upload || (item.code && item.ownId)
3633
+ ? _c(
3634
+ "es-upload",
3635
+ _vm._b(
3636
+ { staticClass: "el-button" },
3637
+ "es-upload",
3638
+ Object.assign({}, item, {
3639
+ method: "post",
3640
+ btnSize: _vm.size,
3641
+ showFileList: false,
3642
+ selectType: item.type ? item.type : "",
3643
+ }),
3644
+ false
3645
+ )
3646
+ )
3647
+ : _c(
3648
+ "es-button",
3649
+ _vm._b(
3650
+ {
3651
+ key: index,
3652
+ attrs: {
3653
+ stop: _vm.stop,
3654
+ size: _vm.size,
3655
+ type: item.type,
3656
+ },
3657
+ on: {
3658
+ click: function ($event) {
3659
+ _vm.handleClick(
3660
+ Object.assign({}, _vm.data, {
3661
+ handle: item,
3662
+ })
3663
+ )
3664
+ },
3665
+ },
3666
+ },
3667
+ "es-button",
3668
+ item,
3669
+ false
3670
+ ),
3671
+ [
3672
+ _vm._v(
3673
+ "\n " +
3674
+ _vm._s(
3675
+ item.template
3676
+ ? item.template(
3677
+ Object.assign({}, _vm.data, {
3678
+ config: item,
3679
+ })
3680
+ )
3681
+ : item.text
3682
+ ) +
3683
+ "\n "
3684
+ ),
3685
+ ]
3686
+ ),
3687
+ ]
3688
+ : _vm._e(),
3689
+ ]
3690
+ }),
3691
+ ]
3692
+ : _vm._e(),
3693
+ _vm.other.length > 0
3694
+ ? _c(
3695
+ "el-dropdown",
3696
+ {
3697
+ attrs: { trigger: _vm.trigger },
3698
+ on: {
3699
+ command: _vm.handleCommand,
3700
+ "visible-change": _vm.handleChange,
3701
+ },
3702
+ },
3703
+ [
3704
+ _c(
3705
+ "el-button",
3706
+ { attrs: { size: _vm.size } },
3707
+ [
3708
+ _vm.moreText
3709
+ ? [
3662
3710
  _vm._v(
3663
- "\n " +
3664
- _vm._s(
3665
- item.template
3666
- ? item.template(
3667
- Object.assign({}, _vm.data, {
3668
- config: item,
3669
- })
3670
- )
3671
- : item.text
3672
- ) +
3673
- "\n "
3711
+ "\n " + _vm._s(_vm.moreText) + "\n "
3674
3712
  ),
3713
+ _c("i", {
3714
+ class: {
3715
+ "el-icon-arrow-down": !_vm.show,
3716
+ "el-icon-arrow-up": _vm.show,
3717
+ },
3718
+ }),
3675
3719
  ]
3676
- ),
3677
- ]
3678
- : _vm._e(),
3679
- _vm.other.length > 0 && index == _vm.btns.length - 1
3680
- ? _c(
3681
- "el-dropdown",
3682
- {
3683
- attrs: { trigger: _vm.trigger },
3684
- on: {
3685
- command: _vm.handleCommand,
3686
- "visible-change": _vm.handleChange,
3687
- },
3688
- },
3689
- [
3690
- _c(
3691
- "el-button",
3692
- { attrs: { size: _vm.size } },
3693
- [
3694
- _vm.moreText
3695
- ? [
3696
- _vm._v(
3697
- "\n " +
3698
- _vm._s(_vm.moreText) +
3699
- "\n "
3700
- ),
3701
- _c("i", {
3702
- class: {
3703
- "el-icon-arrow-down": !_vm.show,
3704
- "el-icon-arrow-up": _vm.show,
3705
- },
3706
- }),
3707
- ]
3708
- : _c("i", { staticClass: "es-icon-omit" }),
3709
- ],
3710
- 2
3711
- ),
3712
- _c(
3713
- "el-dropdown-menu",
3714
- { attrs: { slot: "dropdown" }, slot: "dropdown" },
3715
- _vm._l(_vm.other, function (item, index) {
3716
- return _c(
3717
- "el-dropdown-item",
3718
- { key: index, attrs: { command: item } },
3719
- [
3720
- item.icon ? _c("i", { class: item.icon }) : _vm._e(),
3721
- _vm._v(
3722
- _vm._s(
3723
- item.template
3724
- ? item.template(
3725
- Object.assign({}, _vm.data, {
3726
- config: item,
3727
- })
3728
- )
3729
- : item.text
3730
- )
3731
- ),
3732
- ]
3733
- )
3734
- }),
3735
- 1
3736
- ),
3720
+ : _c("i", { staticClass: "es-icon-omit" }),
3737
3721
  ],
3722
+ 2
3723
+ ),
3724
+ _c(
3725
+ "el-dropdown-menu",
3726
+ { attrs: { slot: "dropdown" }, slot: "dropdown" },
3727
+ _vm._l(_vm.other, function (item, index) {
3728
+ return _c(
3729
+ "el-dropdown-item",
3730
+ { key: index, attrs: { command: item } },
3731
+ [
3732
+ item.icon ? _c("i", { class: item.icon }) : _vm._e(),
3733
+ _vm._v(
3734
+ _vm._s(
3735
+ item.template
3736
+ ? item.template(
3737
+ Object.assign({}, _vm.data, { config: item })
3738
+ )
3739
+ : item.text
3740
+ )
3741
+ ),
3742
+ ]
3743
+ )
3744
+ }),
3738
3745
  1
3739
- )
3740
- : _vm._e(),
3741
- ]
3742
- }),
3746
+ ),
3747
+ ],
3748
+ 1
3749
+ )
3750
+ : _vm._e(),
3743
3751
  ],
3744
3752
  2
3745
3753
  )
@@ -3748,7 +3756,7 @@ var staticRenderFns = []
3748
3756
  render._withStripped = true
3749
3757
 
3750
3758
 
3751
- // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=262bd5a6&
3759
+ // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=a336a590&
3752
3760
 
3753
3761
  // EXTERNAL MODULE: ./src/utils/util.js
3754
3762
  var util = __webpack_require__(0);
@@ -3821,6 +3829,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3821
3829
  //
3822
3830
  //
3823
3831
  //
3832
+ //
3833
+ //
3824
3834
 
3825
3835
 
3826
3836
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
@@ -3850,14 +3860,22 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3850
3860
  size: {
3851
3861
  type: String,
3852
3862
  default: 'mini'
3863
+ },
3864
+ placement: {
3865
+ type: String,
3866
+ default: 'bottom'
3853
3867
  }
3854
3868
  },
3855
3869
  computed: {
3856
3870
  btns: function btns() {
3857
3871
  return this.getBtns();
3858
3872
  },
3873
+ showBtns: function showBtns() {
3874
+ return this.btns.length > this.length ? this.btns.slice(0, this.length - 1) : this.btns;
3875
+ },
3859
3876
  other: function other() {
3860
- return this.length > 0 && this.btns.length > this.length ? this.btns.splice(this.length - 1, this.btns.length) : [];
3877
+ var btns = this.length > 0 && (this.btns.length > this.length || this.length == 1) ? this.btns.slice(this.length - 1, this.btns.length) : [];
3878
+ return btns;
3861
3879
  }
3862
3880
  },
3863
3881
  watch: {},
package/lib/button.js CHANGED
@@ -370,7 +370,7 @@ var ajax = function ajax(_ref) {
370
370
  error.message = '未授权,请重新登录';
371
371
  break;
372
372
  case 403:
373
- error.message = '登录过期,请重新登录';
373
+ error.message = '服务器错误';
374
374
  break;
375
375
  case 404:
376
376
  error.message = '网络请求不存在';
@@ -382,7 +382,7 @@ var ajax = function ajax(_ref) {
382
382
  error.message = '请求超时';
383
383
  break;
384
384
  case 500:
385
- error.message = '服务器端出错';
385
+ error.message = '服务器错误';
386
386
  break;
387
387
  case 501:
388
388
  error.message = '网络未实现';
@@ -738,18 +738,23 @@ var dayOfMonth = function dayOfMonth(date) {
738
738
  * @desc:添加js内容
739
739
  * @author huangbo
740
740
  * @date 2022年5月7日
741
- * @param {Function} [fn] - 函数
741
+ * @param {Function} [callback] - 函数
742
742
  * @param {Number} [wait] - 延迟毫秒数
743
743
  * @param {Boolean} [immediate] - 是否首次触发执行
744
744
  **/
745
745
 
746
- var debounce = function debounce(callback, delay) {
747
- var timeout = null;
746
+ var debounce = function debounce(callback, wait) {
747
+ var timeout = void 0;
748
748
  return function () {
749
- clearTimeout(timeout);
750
- timeout = setTimeout(callback, delay ? delay : 500);
749
+ var context = this;
750
+ var args = arguments;
751
+ if (timeout) clearTimeout(timeout);
752
+ timeout = setTimeout(function () {
753
+ callback.apply(context, args);
754
+ }, wait || 500);
751
755
  };
752
756
  };
757
+
753
758
  /**
754
759
  * delUrlParam
755
760
  * @desc:删除url指定参数
@@ -2886,7 +2891,8 @@ var toFunction = function toFunction(str) {
2886
2891
  * @param {string} [$color] - 颜色值
2887
2892
  **/
2888
2893
  var updateTheme = function updateTheme(color, send) {
2889
- color = color ? color : '#409eff';
2894
+ color = color && startWith(color, '#') ? color : '#409eff';
2895
+
2890
2896
  if (send === undefined) {
2891
2897
  send = true;
2892
2898
  }
@@ -369,7 +369,7 @@ var ajax = function ajax(_ref) {
369
369
  error.message = '未授权,请重新登录';
370
370
  break;
371
371
  case 403:
372
- error.message = '登录过期,请重新登录';
372
+ error.message = '服务器错误';
373
373
  break;
374
374
  case 404:
375
375
  error.message = '网络请求不存在';
@@ -381,7 +381,7 @@ var ajax = function ajax(_ref) {
381
381
  error.message = '请求超时';
382
382
  break;
383
383
  case 500:
384
- error.message = '服务器端出错';
384
+ error.message = '服务器错误';
385
385
  break;
386
386
  case 501:
387
387
  error.message = '网络未实现';
@@ -737,18 +737,23 @@ var dayOfMonth = function dayOfMonth(date) {
737
737
  * @desc:添加js内容
738
738
  * @author huangbo
739
739
  * @date 2022年5月7日
740
- * @param {Function} [fn] - 函数
740
+ * @param {Function} [callback] - 函数
741
741
  * @param {Number} [wait] - 延迟毫秒数
742
742
  * @param {Boolean} [immediate] - 是否首次触发执行
743
743
  **/
744
744
 
745
- var debounce = function debounce(callback, delay) {
746
- var timeout = null;
745
+ var debounce = function debounce(callback, wait) {
746
+ var timeout = void 0;
747
747
  return function () {
748
- clearTimeout(timeout);
749
- timeout = setTimeout(callback, delay ? delay : 500);
748
+ var context = this;
749
+ var args = arguments;
750
+ if (timeout) clearTimeout(timeout);
751
+ timeout = setTimeout(function () {
752
+ callback.apply(context, args);
753
+ }, wait || 500);
750
754
  };
751
755
  };
756
+
752
757
  /**
753
758
  * delUrlParam
754
759
  * @desc:删除url指定参数
@@ -2885,7 +2890,8 @@ var toFunction = function toFunction(str) {
2885
2890
  * @param {string} [$color] - 颜色值
2886
2891
  **/
2887
2892
  var updateTheme = function updateTheme(color, send) {
2888
- color = color ? color : '#409eff';
2893
+ color = color && startWith(color, '#') ? color : '#409eff';
2894
+
2889
2895
  if (send === undefined) {
2890
2896
  send = true;
2891
2897
  }
@@ -369,7 +369,7 @@ var ajax = function ajax(_ref) {
369
369
  error.message = '未授权,请重新登录';
370
370
  break;
371
371
  case 403:
372
- error.message = '登录过期,请重新登录';
372
+ error.message = '服务器错误';
373
373
  break;
374
374
  case 404:
375
375
  error.message = '网络请求不存在';
@@ -381,7 +381,7 @@ var ajax = function ajax(_ref) {
381
381
  error.message = '请求超时';
382
382
  break;
383
383
  case 500:
384
- error.message = '服务器端出错';
384
+ error.message = '服务器错误';
385
385
  break;
386
386
  case 501:
387
387
  error.message = '网络未实现';
@@ -737,18 +737,23 @@ var dayOfMonth = function dayOfMonth(date) {
737
737
  * @desc:添加js内容
738
738
  * @author huangbo
739
739
  * @date 2022年5月7日
740
- * @param {Function} [fn] - 函数
740
+ * @param {Function} [callback] - 函数
741
741
  * @param {Number} [wait] - 延迟毫秒数
742
742
  * @param {Boolean} [immediate] - 是否首次触发执行
743
743
  **/
744
744
 
745
- var debounce = function debounce(callback, delay) {
746
- var timeout = null;
745
+ var debounce = function debounce(callback, wait) {
746
+ var timeout = void 0;
747
747
  return function () {
748
- clearTimeout(timeout);
749
- timeout = setTimeout(callback, delay ? delay : 500);
748
+ var context = this;
749
+ var args = arguments;
750
+ if (timeout) clearTimeout(timeout);
751
+ timeout = setTimeout(function () {
752
+ callback.apply(context, args);
753
+ }, wait || 500);
750
754
  };
751
755
  };
756
+
752
757
  /**
753
758
  * delUrlParam
754
759
  * @desc:删除url指定参数
@@ -2885,7 +2890,8 @@ var toFunction = function toFunction(str) {
2885
2890
  * @param {string} [$color] - 颜色值
2886
2891
  **/
2887
2892
  var updateTheme = function updateTheme(color, send) {
2888
- color = color ? color : '#409eff';
2893
+ color = color && startWith(color, '#') ? color : '#409eff';
2894
+
2889
2895
  if (send === undefined) {
2890
2896
  send = true;
2891
2897
  }