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
package/lib/selector.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 = 59);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 60);
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,
@@ -3590,7 +3629,14 @@ module.exports = require("axios");
3590
3629
 
3591
3630
  /***/ }),
3592
3631
 
3593
- /***/ 59:
3632
+ /***/ 6:
3633
+ /***/ (function(module, exports) {
3634
+
3635
+ module.exports = require("json-bigint");
3636
+
3637
+ /***/ }),
3638
+
3639
+ /***/ 60:
3594
3640
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3595
3641
 
3596
3642
  "use strict";
@@ -4756,13 +4802,6 @@ main.install = function (Vue) {
4756
4802
 
4757
4803
  /***/ }),
4758
4804
 
4759
- /***/ 6:
4760
- /***/ (function(module, exports) {
4761
-
4762
- module.exports = require("json-bigint");
4763
-
4764
- /***/ }),
4765
-
4766
4805
  /***/ 7:
4767
4806
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4768
4807
 
package/lib/sizer.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 = 60);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 61);
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,
@@ -3590,7 +3629,7 @@ module.exports = require("json-bigint");
3590
3629
 
3591
3630
  /***/ }),
3592
3631
 
3593
- /***/ 60:
3632
+ /***/ 61:
3594
3633
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3595
3634
 
3596
3635
  "use strict";
package/lib/steps.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 = 61);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 62);
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 === '';
1993
+
1994
+ switch (Object.prototype.toString.call(val)) {
1995
+ // String or Array
1996
+ case '[object String]':
1997
+ case '[object Array]':
1998
+ return !val.length;
1977
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,
@@ -3583,7 +3622,7 @@ module.exports = require("json-bigint");
3583
3622
 
3584
3623
  /***/ }),
3585
3624
 
3586
- /***/ 61:
3625
+ /***/ 62:
3587
3626
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3588
3627
 
3589
3628
  "use strict";
package/lib/switch.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 = 79);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 80);
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,14 @@ var WebSocket = function () {
3716
3755
 
3717
3756
  /***/ }),
3718
3757
 
3719
- /***/ 79:
3758
+ /***/ 8:
3759
+ /***/ (function(module, exports) {
3760
+
3761
+ module.exports = require("sockjs-client");
3762
+
3763
+ /***/ }),
3764
+
3765
+ /***/ 80:
3720
3766
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3721
3767
 
3722
3768
  "use strict";
@@ -3890,13 +3936,6 @@ main.install = function (Vue) {
3890
3936
 
3891
3937
  /***/ }),
3892
3938
 
3893
- /***/ 8:
3894
- /***/ (function(module, exports) {
3895
-
3896
- module.exports = require("sockjs-client");
3897
-
3898
- /***/ }),
3899
-
3900
3939
  /***/ 9:
3901
3940
  /***/ (function(module, exports) {
3902
3941
 
package/lib/table-form.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 = 67);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 68);
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,
@@ -3608,7 +3647,7 @@ module.exports = require("json-bigint");
3608
3647
 
3609
3648
  /***/ }),
3610
3649
 
3611
- /***/ 67:
3650
+ /***/ 68:
3612
3651
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3613
3652
 
3614
3653
  "use strict";
package/lib/tabs-panel.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 = 63);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 64);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 63:
195
+ /***/ 64:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
package/lib/tabs.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 = 62);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 63);
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,
@@ -3583,7 +3622,7 @@ module.exports = require("json-bigint");
3583
3622
 
3584
3623
  /***/ }),
3585
3624
 
3586
- /***/ 62:
3625
+ /***/ 63:
3587
3626
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3588
3627
 
3589
3628
  "use strict";
@@ -1 +1 @@
1
- @charset "UTF-8";.es-data-table,.es-data-table-content .es-table .el-table__body-wrapper .el-table__body{position:relative}.es-data-table .es-toolbar+.es-data-table-content{padding:16px}.es-data-table-content{background-color:#fafafa}.es-data-table-content .es-table:not(.el-table--border){border:1px solid #e1e1e1;border-bottom:0}.es-data-table-content .es-table thead th,.es-data-table-content .es-table thead tr{background-color:#f8f8f8;border-color:#e1e1e1}.es-data-table-content .es-table th,.es-data-table-content .es-table thead tr{padding:6px 0;text-align:center}.es-data-table-content .es-table th .cell,.es-data-table-content .es-table thead tr .cell{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.es-data-table-content .es-table td{padding:6px 0}.es-data-table-content .es-table td.es-table-handle-box .cell,.es-data-table-content .es-table td.is-center .cell{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.es-data-table-content .es-table td.is-right .cell{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-data-table-content .es-table .es-table-handle-box{text-align:center}.es-data-table-content .es-table+.es-table-page{margin-top:-1px}.es-data-table-content .es-table .el-table__fixed-right::before,.es-data-table-content .es-table .el-table__fixed::before{background-color:transparent}.es-data-table-content .es-table .cell{min-height:28px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center}.es-data-table-content .es-table .cell:not(.el-tooltip){display:-webkit-box;display:-ms-flexbox;display:flex}.es-data-table-content .es-table .cell.el-tooltip{line-height:28px}.es-data-table-content .es-table .el-form-item{margin-bottom:0;width:100%}.es-data-table-content .es-table .el-form-item .el-input:not(.el-input--prefix) .el-input__inner{padding:0 8px;margin-top:0}.es-data-table-content .es-table .el-form-item .el-input-number,.es-data-table-content .es-table .el-form-item .el-select{width:100%}.es-data-table-content .el-table__header,.es-data-table-content .el-table__header thead{color:#404040}.es-data-table-content .el-table__body tr.hover-row.current-row>td,.es-data-table-content .el-table__body tr.hover-row.el-table__row--striped.current-row>td,.es-data-table-content .el-table__body tr.hover-row.el-table__row--striped>td,.es-data-table-content .el-table__body tr.hover-row>td,.es-data-table-content .el-table__body tr:hover>td{background-color:#e6f7ff}.es-data-table-content .el-table__body tr.current-row>td{background-color:#91d5ff}.es-data-table-content .es-table-page{height:46px;border:1px solid #e1e1e1;padding:8px 12px;background-color:#f8f8f8}.es-data-table-content .es-table-page.es-loading-page{line-height:30px;font-size:14px;font-weight:400;color:rgba(0,0,0,.75)}.es-data-table-content .es-thead-border .el-table__header th:not(.gutter){border-right:1px solid #e1e1e1}.es-data-table-content .es-thead-border .el-table__header thead:not(.is-group) th:last-child{border-right:0;border-bottom:1px solid #e1e1e1}.es-data-table-content .es-thead-border .el-table__fixed-right:not(.el-table-box-shadow) thead th:last-child{border-left:1px solid #e1e1e1}.es-data-table-content .es-thead-border .is-scrolling-right~.el-table__fixed-right:not(.el-table-box-shadow) thead th:last-child{border-left:0}.es-data-table-content .el-form-item__error{top:unset;bottom:0}.es-data-table-content .es-table:not(.el-table--border) .el-table--border td,.es-data-table-content .es-table:not(.el-table--border) .el-table--border th,.es-data-table-content .es-table:not(.el-table--border) .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed{border-right:0}.es-data-table-content .is-scrolling-right+.el-table__fixed-body-wrapper td{border-right:1px solid #e1e1e1}.es-data-table-content .is-scrolling-right+.el-table__fixed-body-wrapper td:last-child{border-right:0}.el-table--border::after,.el-table--group::after,.el-table::before{z-index:5}.sizer-btn-box{text-align:right;margin-top:7px}
1
+ @charset "UTF-8";.es-data-table,.es-data-table-content .es-table .el-table__body-wrapper .el-table__body{position:relative}.es-data-table .es-toolbar+.es-data-table-content{padding:16px}.es-data-table-content{background-color:#fafafa}.es-data-table-content .es-table:not(.el-table--border){border:1px solid #e1e1e1;border-bottom:0}.es-data-table-content .es-table thead th,.es-data-table-content .es-table thead tr{background-color:#f8f8f8;border-color:#e1e1e1}.es-data-table-content .es-table th,.es-data-table-content .es-table thead tr{padding:6px 0;text-align:center}.es-data-table-content .es-table th .cell,.es-data-table-content .es-table thead tr .cell{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.es-data-table-content .es-table td{padding:6px 0}.es-data-table-content .es-table td.es-table-handle-box .cell,.es-data-table-content .es-table td.is-center .cell{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.es-data-table-content .es-table td.is-right .cell{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-data-table-content .es-table .es-table-handle-box{text-align:center}.es-data-table-content .es-table+.es-table-page{margin-top:-1px}.es-data-table-content .es-table .el-table__fixed-right::before,.es-data-table-content .es-table .el-table__fixed::before{background-color:transparent}.es-data-table-content .es-table .cell{min-height:28px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center}.es-data-table-content .es-table .cell:not(.el-tooltip){display:-webkit-box;display:-ms-flexbox;display:flex}.es-data-table-content .es-table .cell.el-tooltip{line-height:28px}.es-data-table-content .es-table .el-form-item{margin-bottom:0;width:100%}.es-data-table-content .es-table .el-form-item .el-input:not(.el-input--prefix) .el-input__inner{padding:0 8px;margin-top:0}.es-data-table-content .es-table .el-form-item .el-input-number,.es-data-table-content .es-table .el-form-item .el-select{width:100%}.es-data-table-content.es-table-border-none .es-table{border:0}.es-data-table-content.es-table-border-none .es-table::before{content:none}.es-data-table-content.es-table-border-none .es-table td,.es-data-table-content.es-table-border-none .es-table th{border:0}.es-data-table-content.es-table-border-none .es-table-page{border:0;margin-top:0;background-color:#fff}.es-data-table-content .el-table__header,.es-data-table-content .el-table__header thead{color:#404040}.es-data-table-content .el-table__body tr.hover-row.current-row>td,.es-data-table-content .el-table__body tr.hover-row.el-table__row--striped.current-row>td,.es-data-table-content .el-table__body tr.hover-row.el-table__row--striped>td,.es-data-table-content .el-table__body tr.hover-row>td,.es-data-table-content .el-table__body tr:hover>td{background-color:#e6f7ff}.es-data-table-content .el-table__body tr.current-row>td{background-color:#91d5ff}.es-data-table-content .es-table-page{height:46px;border:1px solid #e1e1e1;padding:8px 12px;background-color:#f8f8f8}.es-data-table-content .es-table-page.es-loading-page{line-height:30px;font-size:14px;font-weight:400;color:rgba(0,0,0,.75)}.es-data-table-content .es-thead-border .el-table__header th:not(.gutter){border-right:1px solid #e1e1e1}.es-data-table-content .es-thead-border .el-table__header thead:not(.is-group) th:last-child{border-right:0;border-bottom:1px solid #e1e1e1}.es-data-table-content .es-thead-border .el-table__fixed-right:not(.el-table-box-shadow) thead th:last-child{border-left:1px solid #e1e1e1}.es-data-table-content .es-thead-border .is-scrolling-right~.el-table__fixed-right:not(.el-table-box-shadow) thead th:last-child{border-left:0}.es-data-table-content .el-form-item__error{top:unset;bottom:0}.es-data-table-content .es-table:not(.el-table--border) .el-table--border td,.es-data-table-content .es-table:not(.el-table--border) .el-table--border th,.es-data-table-content .es-table:not(.el-table--border) .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed{border-right:0}.es-data-table-content .is-scrolling-right+.el-table__fixed-body-wrapper td{border-right:1px solid #e1e1e1}.es-data-table-content .is-scrolling-right+.el-table__fixed-body-wrapper td:last-child{border-right:0}.el-table--border::after,.el-table--group::after,.el-table::before{z-index:5}.sizer-btn-box{text-align:right;margin-top:7px}