eoss-ui 0.5.56 → 0.5.59

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 (73) hide show
  1. package/lib/button-group.js +69 -18
  2. package/lib/button.js +43 -4
  3. package/lib/cascader.js +2 -2
  4. package/lib/checkbox-group.js +41 -2
  5. package/lib/data-table-form.js +41 -2
  6. package/lib/data-table.js +71 -19
  7. package/lib/date-picker.js +43 -4
  8. package/lib/dialog.js +41 -2
  9. package/lib/eoss-ui.common.js +253 -98
  10. package/lib/flow-group.js +41 -2
  11. package/lib/flow-list.js +41 -2
  12. package/lib/flow.js +44 -6
  13. package/lib/form.js +41 -2
  14. package/lib/handle-user.js +41 -2
  15. package/lib/handler.js +41 -2
  16. package/lib/icon.js +3880 -0
  17. package/lib/icons.js +2 -2
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +43 -4
  20. package/lib/input.js +43 -4
  21. package/lib/label.js +2 -2
  22. package/lib/login.js +47 -8
  23. package/lib/main.js +43 -5
  24. package/lib/menu.js +2 -3
  25. package/lib/nav.js +43 -4
  26. package/lib/notify.js +2 -2
  27. package/lib/page.js +43 -4
  28. package/lib/pagination.js +2 -2
  29. package/lib/player.js +43 -4
  30. package/lib/qr-code.js +43 -4
  31. package/lib/radio-group.js +43 -4
  32. package/lib/retrial-auth.js +43 -4
  33. package/lib/select-ganged.js +43 -4
  34. package/lib/select.js +43 -4
  35. package/lib/selector-panel.js +41 -2
  36. package/lib/selector.js +50 -11
  37. package/lib/sizer.js +43 -4
  38. package/lib/steps.js +43 -4
  39. package/lib/switch.js +50 -11
  40. package/lib/table-form.js +43 -4
  41. package/lib/tabs-panel.js +2 -2
  42. package/lib/tabs.js +43 -4
  43. package/lib/theme-chalk/data-table.css +1 -1
  44. package/lib/theme-chalk/index.css +1 -1
  45. package/lib/theme-chalk/menu.css +1 -1
  46. package/lib/tips.js +43 -4
  47. package/lib/toolbar.js +2 -3
  48. package/lib/tree-group.js +43 -4
  49. package/lib/tree.js +49 -8
  50. package/lib/upload.js +46 -8
  51. package/lib/utils/util.js +41 -2
  52. package/lib/wujie.js +43 -4
  53. package/lib/wxlogin.js +176 -137
  54. package/package.json +1 -1
  55. package/packages/button-group/src/main.vue +21 -16
  56. package/packages/data-table/src/column.vue +1 -1
  57. package/packages/data-table/src/main.vue +14 -4
  58. package/packages/flow/src/main.vue +1 -2
  59. package/packages/icon/index.js +5 -0
  60. package/packages/icon/src/main.vue +43 -0
  61. package/packages/login/src/main.vue +6 -4
  62. package/packages/main/src/main.vue +0 -1
  63. package/packages/menu/src/main.vue +0 -1
  64. package/packages/theme-chalk/lib/data-table.css +1 -1
  65. package/packages/theme-chalk/lib/index.css +1 -1
  66. package/packages/theme-chalk/lib/menu.css +1 -1
  67. package/packages/theme-chalk/src/data-table.scss +17 -0
  68. package/packages/theme-chalk/src/menu.scss +3 -5
  69. package/packages/toolbar/src/main.vue +0 -1
  70. package/packages/tree/src/main.vue +14 -2
  71. package/packages/upload/src/main.vue +0 -1
  72. package/src/index.js +4 -1
  73. package/src/utils/util.js +39 -1
@@ -1974,7 +1974,45 @@ var indexOfObj = function indexOfObj(arry, target, key) {
1974
1974
  }
1975
1975
  return -1;
1976
1976
  };
1977
+ /**
1978
+ * isEmpty
1979
+ * @desc:判断是否为空
1980
+ * @author huangbo
1981
+ * @date 2022年5月7日
1982
+ * @param {Object} [obj] -
1983
+ **/
1984
+ var isEmpty = function isEmpty(val) {
1985
+ // null or undefined
1986
+ if (val === null || val === undefined) return true;
1977
1987
 
1988
+ if (typeof val === 'boolean') return false;
1989
+
1990
+ if (typeof val === 'number') return !val;
1991
+
1992
+ if (val instanceof Error) return val.message === '';
1993
+
1994
+ switch (Object.prototype.toString.call(val)) {
1995
+ // String or Array
1996
+ case '[object String]':
1997
+ case '[object Array]':
1998
+ return !val.length;
1999
+
2000
+ // Map or Set or File
2001
+ case '[object File]':
2002
+ case '[object Map]':
2003
+ case '[object Set]':
2004
+ {
2005
+ return !val.size;
2006
+ }
2007
+ // Plain Object
2008
+ case '[object Object]':
2009
+ {
2010
+ return !Object.keys(val).length;
2011
+ }
2012
+ }
2013
+
2014
+ return false;
2015
+ };
1978
2016
  /**
1979
2017
  * isExist
1980
2018
  * @desc:判断是否存在
@@ -2005,7 +2043,7 @@ var isFunction = function isFunction(obj) {
2005
2043
  * @param {object} [to] - 路由跳转信息
2006
2044
  * @param {object} [from] - 路由来源信息
2007
2045
  * @param {function} [next] - 跳转函数
2008
- * @param {array} [exclude] - 不拦截的路由
2046
+ * @param {array/boolean} [exclude] - 不拦截的路由
2009
2047
  * @param {boolean} [open] - 是否新窗口打开
2010
2048
  * @param {boolean} [cookie] - 是否尝试采用
2011
2049
  * @param {sting} [loginPage] - 第三方登录页面地址
@@ -2158,7 +2196,7 @@ var isLogined = function isLogined(_ref8) {
2158
2196
  });
2159
2197
  }
2160
2198
  }).catch(function (e) {});
2161
- } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2199
+ } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2162
2200
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2163
2201
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2164
2202
  } else {
@@ -3055,6 +3093,7 @@ var watermark = function watermark(option) {
3055
3093
  hsvTorgb: hsvTorgb,
3056
3094
  identical: identical,
3057
3095
  indexOfObj: indexOfObj,
3096
+ isEmpty: isEmpty,
3058
3097
  isExist: isExist,
3059
3098
  isFunction: isFunction,
3060
3099
  isLogged: isLogged,
@@ -3569,7 +3608,7 @@ function normalizeComponent(
3569
3608
  // ESM COMPAT FLAG
3570
3609
  __webpack_require__.r(__webpack_exports__);
3571
3610
 
3572
- // 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=10c7630a&
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=72ff1457&
3573
3612
  var render = function () {
3574
3613
  var _vm = this
3575
3614
  var _h = _vm.$createElement
@@ -3589,7 +3628,9 @@ var render = function () {
3589
3628
  attrs: { stop: _vm.stop, size: _vm.size, type: item.type },
3590
3629
  on: {
3591
3630
  click: function ($event) {
3592
- _vm.handleClick({ row: _vm.data, handle: item })
3631
+ _vm.handleClick(
3632
+ Object.assign({}, _vm.data, { handle: item })
3633
+ )
3593
3634
  },
3594
3635
  },
3595
3636
  },
@@ -3602,7 +3643,9 @@ var render = function () {
3602
3643
  "\n " +
3603
3644
  _vm._s(
3604
3645
  item.template
3605
- ? item.template({ row: _vm.data, config: item })
3646
+ ? item.template(
3647
+ Object.assign({}, _vm.data, { config: item })
3648
+ )
3606
3649
  : item.text
3607
3650
  ) +
3608
3651
  "\n "
@@ -3633,7 +3676,11 @@ var render = function () {
3633
3676
  _vm._v(
3634
3677
  _vm._s(
3635
3678
  item.template
3636
- ? item.template({ row: _vm.data, config: item })
3679
+ ? item.template(
3680
+ Object.assign({}, _vm.data, {
3681
+ config: item,
3682
+ })
3683
+ )
3637
3684
  : item.text
3638
3685
  )
3639
3686
  ),
@@ -3656,12 +3703,14 @@ var staticRenderFns = []
3656
3703
  render._withStripped = true
3657
3704
 
3658
3705
 
3659
- // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=10c7630a&
3706
+ // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=72ff1457&
3660
3707
 
3661
3708
  // EXTERNAL MODULE: ./src/utils/util.js
3662
3709
  var util = __webpack_require__(0);
3663
3710
 
3664
3711
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=script&lang=js&
3712
+ 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; };
3713
+
3665
3714
  //
3666
3715
  //
3667
3716
  //
@@ -3727,7 +3776,8 @@ var util = __webpack_require__(0);
3727
3776
  trigger: {
3728
3777
  type: String,
3729
3778
  default: 'click'
3730
- }
3779
+ },
3780
+ useCaseCodeKey: String
3731
3781
  },
3732
3782
  computed: {
3733
3783
  btns: function btns() {
@@ -3752,21 +3802,22 @@ var util = __webpack_require__(0);
3752
3802
  var _this = this;
3753
3803
 
3754
3804
  var useCaseCodes = util["a" /* default */].getStorage('useCaseCodes');
3805
+ var keyword = this.data && this.useCaseCodeKey ? this.data.row[this.useCaseCodeKey] : null;
3755
3806
  var arry = this.contents.filter(function (item) {
3756
3807
  if (Object.prototype.hasOwnProperty.call(item, 'rules')) {
3757
- if (useCaseCodes && item.useCaseCode) {
3758
- return item.rules(_this.data) && useCaseCodes.indexOf(item.useCaseCode) > -1;
3808
+ if (useCaseCodes && (item.useCaseCode || keyword)) {
3809
+ return item.rules(_this.data.row) && useCaseCodes.indexOf(item.useCaseCode || keyword) > -1;
3759
3810
  }
3760
- return item.rules(_this.data);
3811
+ return item.rules(_this.data.row);
3761
3812
  }
3762
3813
  if (_this.rules !== undefined) {
3763
- if (useCaseCodes && item.useCaseCode) {
3764
- return _this.rules(_this.data) && useCaseCodes.indexOf(item.useCaseCode) > -1;
3814
+ if (useCaseCodes && (item.useCaseCode || keyword)) {
3815
+ return _this.rules(_this.data.row) && useCaseCodes.indexOf(item.useCaseCode || keyword) > -1;
3765
3816
  }
3766
- return _this.rules(_this.data);
3817
+ return _this.rules(_this.data.row);
3767
3818
  }
3768
- if (useCaseCodes && item.useCaseCode) {
3769
- return useCaseCodes.indexOf(item.useCaseCode) > -1;
3819
+ if (useCaseCodes && (item.useCaseCode || keyword)) {
3820
+ return useCaseCodes.indexOf(item.useCaseCode || keyword) > -1;
3770
3821
  }
3771
3822
  return true;
3772
3823
  });
@@ -3777,8 +3828,8 @@ var util = __webpack_require__(0);
3777
3828
  this.$emit('handle-click', obj);
3778
3829
  },
3779
3830
  handleCommand: function handleCommand(res) {
3780
- this.$emit('handleClick', { row: this.data, handle: res });
3781
- this.$emit('handle-click', { row: this.data, handle: res });
3831
+ this.$emit('handleClick', _extends({}, this.data, { handle: res }));
3832
+ this.$emit('handle-click', _extends({}, this.data, { handle: res }));
3782
3833
  },
3783
3834
  resetWidth: function resetWidth() {
3784
3835
  var _this2 = this;
package/lib/button.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 = 70);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 71);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -1974,7 +1974,45 @@ var indexOfObj = function indexOfObj(arry, target, key) {
1974
1974
  }
1975
1975
  return -1;
1976
1976
  };
1977
+ /**
1978
+ * isEmpty
1979
+ * @desc:判断是否为空
1980
+ * @author huangbo
1981
+ * @date 2022年5月7日
1982
+ * @param {Object} [obj] -
1983
+ **/
1984
+ var isEmpty = function isEmpty(val) {
1985
+ // null or undefined
1986
+ if (val === null || val === undefined) return true;
1987
+
1988
+ if (typeof val === 'boolean') return false;
1989
+
1990
+ if (typeof val === 'number') return !val;
1991
+
1992
+ if (val instanceof Error) return val.message === '';
1977
1993
 
1994
+ switch (Object.prototype.toString.call(val)) {
1995
+ // String or Array
1996
+ case '[object String]':
1997
+ case '[object Array]':
1998
+ return !val.length;
1999
+
2000
+ // Map or Set or File
2001
+ case '[object File]':
2002
+ case '[object Map]':
2003
+ case '[object Set]':
2004
+ {
2005
+ return !val.size;
2006
+ }
2007
+ // Plain Object
2008
+ case '[object Object]':
2009
+ {
2010
+ return !Object.keys(val).length;
2011
+ }
2012
+ }
2013
+
2014
+ return false;
2015
+ };
1978
2016
  /**
1979
2017
  * isExist
1980
2018
  * @desc:判断是否存在
@@ -2005,7 +2043,7 @@ var isFunction = function isFunction(obj) {
2005
2043
  * @param {object} [to] - 路由跳转信息
2006
2044
  * @param {object} [from] - 路由来源信息
2007
2045
  * @param {function} [next] - 跳转函数
2008
- * @param {array} [exclude] - 不拦截的路由
2046
+ * @param {array/boolean} [exclude] - 不拦截的路由
2009
2047
  * @param {boolean} [open] - 是否新窗口打开
2010
2048
  * @param {boolean} [cookie] - 是否尝试采用
2011
2049
  * @param {sting} [loginPage] - 第三方登录页面地址
@@ -2158,7 +2196,7 @@ var isLogined = function isLogined(_ref8) {
2158
2196
  });
2159
2197
  }
2160
2198
  }).catch(function (e) {});
2161
- } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2199
+ } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2162
2200
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2163
2201
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2164
2202
  } else {
@@ -3055,6 +3093,7 @@ var watermark = function watermark(option) {
3055
3093
  hsvTorgb: hsvTorgb,
3056
3094
  identical: identical,
3057
3095
  indexOfObj: indexOfObj,
3096
+ isEmpty: isEmpty,
3058
3097
  isExist: isExist,
3059
3098
  isFunction: isFunction,
3060
3099
  isLogged: isLogged,
@@ -3716,7 +3755,7 @@ var WebSocket = function () {
3716
3755
 
3717
3756
  /***/ }),
3718
3757
 
3719
- /***/ 70:
3758
+ /***/ 71:
3720
3759
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3721
3760
 
3722
3761
  "use strict";
package/lib/cascader.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 = 71);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 72);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 71:
195
+ /***/ 72:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
@@ -1973,7 +1973,45 @@ var indexOfObj = function indexOfObj(arry, target, key) {
1973
1973
  }
1974
1974
  return -1;
1975
1975
  };
1976
+ /**
1977
+ * isEmpty
1978
+ * @desc:判断是否为空
1979
+ * @author huangbo
1980
+ * @date 2022年5月7日
1981
+ * @param {Object} [obj] -
1982
+ **/
1983
+ var isEmpty = function isEmpty(val) {
1984
+ // null or undefined
1985
+ if (val === null || val === undefined) return true;
1986
+
1987
+ if (typeof val === 'boolean') return false;
1988
+
1989
+ if (typeof val === 'number') return !val;
1990
+
1991
+ if (val instanceof Error) return val.message === '';
1976
1992
 
1993
+ switch (Object.prototype.toString.call(val)) {
1994
+ // String or Array
1995
+ case '[object String]':
1996
+ case '[object Array]':
1997
+ return !val.length;
1998
+
1999
+ // Map or Set or File
2000
+ case '[object File]':
2001
+ case '[object Map]':
2002
+ case '[object Set]':
2003
+ {
2004
+ return !val.size;
2005
+ }
2006
+ // Plain Object
2007
+ case '[object Object]':
2008
+ {
2009
+ return !Object.keys(val).length;
2010
+ }
2011
+ }
2012
+
2013
+ return false;
2014
+ };
1977
2015
  /**
1978
2016
  * isExist
1979
2017
  * @desc:判断是否存在
@@ -2004,7 +2042,7 @@ var isFunction = function isFunction(obj) {
2004
2042
  * @param {object} [to] - 路由跳转信息
2005
2043
  * @param {object} [from] - 路由来源信息
2006
2044
  * @param {function} [next] - 跳转函数
2007
- * @param {array} [exclude] - 不拦截的路由
2045
+ * @param {array/boolean} [exclude] - 不拦截的路由
2008
2046
  * @param {boolean} [open] - 是否新窗口打开
2009
2047
  * @param {boolean} [cookie] - 是否尝试采用
2010
2048
  * @param {sting} [loginPage] - 第三方登录页面地址
@@ -2157,7 +2195,7 @@ var isLogined = function isLogined(_ref8) {
2157
2195
  });
2158
2196
  }
2159
2197
  }).catch(function (e) {});
2160
- } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2198
+ } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2161
2199
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2162
2200
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2163
2201
  } else {
@@ -3054,6 +3092,7 @@ var watermark = function watermark(option) {
3054
3092
  hsvTorgb: hsvTorgb,
3055
3093
  identical: identical,
3056
3094
  indexOfObj: indexOfObj,
3095
+ isEmpty: isEmpty,
3057
3096
  isExist: isExist,
3058
3097
  isFunction: isFunction,
3059
3098
  isLogged: isLogged,
@@ -1973,7 +1973,45 @@ var indexOfObj = function indexOfObj(arry, target, key) {
1973
1973
  }
1974
1974
  return -1;
1975
1975
  };
1976
+ /**
1977
+ * isEmpty
1978
+ * @desc:判断是否为空
1979
+ * @author huangbo
1980
+ * @date 2022年5月7日
1981
+ * @param {Object} [obj] -
1982
+ **/
1983
+ var isEmpty = function isEmpty(val) {
1984
+ // null or undefined
1985
+ if (val === null || val === undefined) return true;
1986
+
1987
+ if (typeof val === 'boolean') return false;
1988
+
1989
+ if (typeof val === 'number') return !val;
1990
+
1991
+ if (val instanceof Error) return val.message === '';
1976
1992
 
1993
+ switch (Object.prototype.toString.call(val)) {
1994
+ // String or Array
1995
+ case '[object String]':
1996
+ case '[object Array]':
1997
+ return !val.length;
1998
+
1999
+ // Map or Set or File
2000
+ case '[object File]':
2001
+ case '[object Map]':
2002
+ case '[object Set]':
2003
+ {
2004
+ return !val.size;
2005
+ }
2006
+ // Plain Object
2007
+ case '[object Object]':
2008
+ {
2009
+ return !Object.keys(val).length;
2010
+ }
2011
+ }
2012
+
2013
+ return false;
2014
+ };
1977
2015
  /**
1978
2016
  * isExist
1979
2017
  * @desc:判断是否存在
@@ -2004,7 +2042,7 @@ var isFunction = function isFunction(obj) {
2004
2042
  * @param {object} [to] - 路由跳转信息
2005
2043
  * @param {object} [from] - 路由来源信息
2006
2044
  * @param {function} [next] - 跳转函数
2007
- * @param {array} [exclude] - 不拦截的路由
2045
+ * @param {array/boolean} [exclude] - 不拦截的路由
2008
2046
  * @param {boolean} [open] - 是否新窗口打开
2009
2047
  * @param {boolean} [cookie] - 是否尝试采用
2010
2048
  * @param {sting} [loginPage] - 第三方登录页面地址
@@ -2157,7 +2195,7 @@ var isLogined = function isLogined(_ref8) {
2157
2195
  });
2158
2196
  }
2159
2197
  }).catch(function (e) {});
2160
- } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2198
+ } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2161
2199
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2162
2200
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2163
2201
  } else {
@@ -3054,6 +3092,7 @@ var watermark = function watermark(option) {
3054
3092
  hsvTorgb: hsvTorgb,
3055
3093
  identical: identical,
3056
3094
  indexOfObj: indexOfObj,
3095
+ isEmpty: isEmpty,
3057
3096
  isExist: isExist,
3058
3097
  isFunction: isFunction,
3059
3098
  isLogged: isLogged,
package/lib/data-table.js CHANGED
@@ -1973,7 +1973,45 @@ var indexOfObj = function indexOfObj(arry, target, key) {
1973
1973
  }
1974
1974
  return -1;
1975
1975
  };
1976
+ /**
1977
+ * isEmpty
1978
+ * @desc:判断是否为空
1979
+ * @author huangbo
1980
+ * @date 2022年5月7日
1981
+ * @param {Object} [obj] -
1982
+ **/
1983
+ var isEmpty = function isEmpty(val) {
1984
+ // null or undefined
1985
+ if (val === null || val === undefined) return true;
1986
+
1987
+ if (typeof val === 'boolean') return false;
1988
+
1989
+ if (typeof val === 'number') return !val;
1976
1990
 
1991
+ if (val instanceof Error) return val.message === '';
1992
+
1993
+ switch (Object.prototype.toString.call(val)) {
1994
+ // String or Array
1995
+ case '[object String]':
1996
+ case '[object Array]':
1997
+ return !val.length;
1998
+
1999
+ // Map or Set or File
2000
+ case '[object File]':
2001
+ case '[object Map]':
2002
+ case '[object Set]':
2003
+ {
2004
+ return !val.size;
2005
+ }
2006
+ // Plain Object
2007
+ case '[object Object]':
2008
+ {
2009
+ return !Object.keys(val).length;
2010
+ }
2011
+ }
2012
+
2013
+ return false;
2014
+ };
1977
2015
  /**
1978
2016
  * isExist
1979
2017
  * @desc:判断是否存在
@@ -2004,7 +2042,7 @@ var isFunction = function isFunction(obj) {
2004
2042
  * @param {object} [to] - 路由跳转信息
2005
2043
  * @param {object} [from] - 路由来源信息
2006
2044
  * @param {function} [next] - 跳转函数
2007
- * @param {array} [exclude] - 不拦截的路由
2045
+ * @param {array/boolean} [exclude] - 不拦截的路由
2008
2046
  * @param {boolean} [open] - 是否新窗口打开
2009
2047
  * @param {boolean} [cookie] - 是否尝试采用
2010
2048
  * @param {sting} [loginPage] - 第三方登录页面地址
@@ -2157,7 +2195,7 @@ var isLogined = function isLogined(_ref8) {
2157
2195
  });
2158
2196
  }
2159
2197
  }).catch(function (e) {});
2160
- } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2198
+ } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2161
2199
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2162
2200
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2163
2201
  } else {
@@ -3054,6 +3092,7 @@ var watermark = function watermark(option) {
3054
3092
  hsvTorgb: hsvTorgb,
3055
3093
  identical: identical,
3056
3094
  indexOfObj: indexOfObj,
3095
+ isEmpty: isEmpty,
3057
3096
  isExist: isExist,
3058
3097
  isFunction: isFunction,
3059
3098
  isLogged: isLogged,
@@ -3766,8 +3805,8 @@ module.exports = require("vue");
3766
3805
  // ESM COMPAT FLAG
3767
3806
  __webpack_require__.r(__webpack_exports__);
3768
3807
 
3769
- // 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=fa664770&
3770
- var mainvue_type_template_id_fa664770_render = function () {
3808
+ // 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=6d62957e&
3809
+ var mainvue_type_template_id_6d62957e_render = function () {
3771
3810
  var _vm = this
3772
3811
  var _h = _vm.$createElement
3773
3812
  var _c = _vm._self._c || _h
@@ -3839,6 +3878,7 @@ var mainvue_type_template_id_fa664770_render = function () {
3839
3878
  {
3840
3879
  ref: "esTableContent",
3841
3880
  staticClass: "es-data-table-content",
3881
+ class: _vm.border == "none" ? "es-table-border-none" : "",
3842
3882
  staticStyle: {},
3843
3883
  },
3844
3884
  [
@@ -3850,7 +3890,9 @@ var mainvue_type_template_id_fa664770_render = function () {
3850
3890
  ref: "oaTable",
3851
3891
  class:
3852
3892
  "es-table" +
3853
- (_vm.theadBorder ? " es-thead-border" : ""),
3893
+ (_vm.theadBorder && _vm.border != "none"
3894
+ ? " es-thead-border"
3895
+ : ""),
3854
3896
  },
3855
3897
  "el-table",
3856
3898
  Object.assign({}, _vm.$attrs, {
@@ -3863,7 +3905,7 @@ var mainvue_type_template_id_fa664770_render = function () {
3863
3905
  _vm.tableHeight !== "auto" && _vm.tableHeight !== false
3864
3906
  ? _vm.tableHeight
3865
3907
  : undefined,
3866
- border: _vm.border,
3908
+ border: _vm._border,
3867
3909
  infiniteScroll: _vm.getTableData,
3868
3910
  infiniteScrollDisabled: _vm.infiniteDisabled,
3869
3911
  }),
@@ -4033,10 +4075,10 @@ var mainvue_type_template_id_fa664770_render = function () {
4033
4075
  )
4034
4076
  }
4035
4077
  var staticRenderFns = []
4036
- mainvue_type_template_id_fa664770_render._withStripped = true
4078
+ mainvue_type_template_id_6d62957e_render._withStripped = true
4037
4079
 
4038
4080
 
4039
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=fa664770&
4081
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=6d62957e&
4040
4082
 
4041
4083
  // EXTERNAL MODULE: ./src/config/api.js
4042
4084
  var api = __webpack_require__(1);
@@ -4084,8 +4126,8 @@ childrenvue_type_template_id_29bcbc72_render._withStripped = true
4084
4126
 
4085
4127
  // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
4086
4128
 
4087
- // 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/column.vue?vue&type=template&id=66569ceb&
4088
- var columnvue_type_template_id_66569ceb_render = function () {
4129
+ // 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/column.vue?vue&type=template&id=449ae3d7&
4130
+ var columnvue_type_template_id_449ae3d7_render = function () {
4089
4131
  var _vm = this
4090
4132
  var _h = _vm.$createElement
4091
4133
  var _c = _vm._self._c || _h
@@ -4763,7 +4805,7 @@ var columnvue_type_template_id_66569ceb_render = function () {
4763
4805
  attrs: {
4764
4806
  stop: "",
4765
4807
  contents: _vm.contents || _vm.events,
4766
- data: scope.row,
4808
+ data: scope,
4767
4809
  },
4768
4810
  on: { handleClick: _vm.handleClick },
4769
4811
  model: {
@@ -4803,11 +4845,11 @@ var columnvue_type_template_id_66569ceb_render = function () {
4803
4845
  2
4804
4846
  )
4805
4847
  }
4806
- var columnvue_type_template_id_66569ceb_staticRenderFns = []
4807
- columnvue_type_template_id_66569ceb_render._withStripped = true
4848
+ var columnvue_type_template_id_449ae3d7_staticRenderFns = []
4849
+ columnvue_type_template_id_449ae3d7_render._withStripped = true
4808
4850
 
4809
4851
 
4810
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=66569ceb&
4852
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=449ae3d7&
4811
4853
 
4812
4854
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
4813
4855
  var regenerator_ = __webpack_require__(12);
@@ -5677,8 +5719,8 @@ var componentNormalizer = __webpack_require__(3);
5677
5719
 
5678
5720
  var component = Object(componentNormalizer["a" /* default */])(
5679
5721
  src_columnvue_type_script_lang_js_,
5680
- columnvue_type_template_id_66569ceb_render,
5681
- columnvue_type_template_id_66569ceb_staticRenderFns,
5722
+ columnvue_type_template_id_449ae3d7_render,
5723
+ columnvue_type_template_id_449ae3d7_staticRenderFns,
5682
5724
  false,
5683
5725
  null,
5684
5726
  null,
@@ -6141,6 +6183,10 @@ var mainvue_type_script_lang_js_components, _watch;
6141
6183
  //
6142
6184
  //
6143
6185
  //
6186
+ //
6187
+ //
6188
+ //
6189
+ //
6144
6190
 
6145
6191
 
6146
6192
 
@@ -6342,8 +6388,11 @@ var mainvue_type_script_lang_js_components, _watch;
6342
6388
  response: Function,
6343
6389
  minWidth: [Number, String],
6344
6390
  border: {
6345
- type: Boolean,
6346
- default: false
6391
+ type: [Boolean, String],
6392
+ default: false,
6393
+ validator: function validator(value) {
6394
+ return [true, false, 'none'].includes(value);
6395
+ }
6347
6396
  },
6348
6397
  theadBorder: {
6349
6398
  type: Boolean,
@@ -6427,6 +6476,9 @@ var mainvue_type_script_lang_js_components, _watch;
6427
6476
  tag: function tag() {
6428
6477
  return this.form && this.elForm == '' ? 'el-form' : 'div';
6429
6478
  },
6479
+ _border: function _border() {
6480
+ return this.border === true ? true : false;
6481
+ },
6430
6482
 
6431
6483
  theads: {
6432
6484
  get: function get() {
@@ -7391,7 +7443,7 @@ var mainvue_type_script_lang_js_components, _watch;
7391
7443
 
7392
7444
  var main_component = Object(componentNormalizer["a" /* default */])(
7393
7445
  src_mainvue_type_script_lang_js_,
7394
- mainvue_type_template_id_fa664770_render,
7446
+ mainvue_type_template_id_6d62957e_render,
7395
7447
  staticRenderFns,
7396
7448
  false,
7397
7449
  null,