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/flow-group.js CHANGED
@@ -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,
package/lib/flow-list.js CHANGED
@@ -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,
package/lib/flow.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;
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;
1976
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,
@@ -3923,7 +3962,7 @@ var component = Object(componentNormalizer["a" /* default */])(
3923
3962
  // ESM COMPAT FLAG
3924
3963
  __webpack_require__.r(__webpack_exports__);
3925
3964
 
3926
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=301e1065&
3965
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=66b44e7f&
3927
3966
  var render = function () {
3928
3967
  var _vm = this
3929
3968
  var _h = _vm.$createElement
@@ -5648,7 +5687,7 @@ var staticRenderFns = []
5648
5687
  render._withStripped = true
5649
5688
 
5650
5689
 
5651
- // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=301e1065&
5690
+ // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=66b44e7f&
5652
5691
 
5653
5692
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
5654
5693
  var regenerator_ = __webpack_require__(12);
@@ -13747,8 +13786,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13747
13786
  if (!this.$refs.commonOpinions.validate()) return;
13748
13787
  }
13749
13788
  if (this.beforeSubmit != undefined) {
13750
- this.beforeSubmit().then(function (next) {
13751
-
13789
+ this.beforeSubmit(0).then(function (next) {
13752
13790
  _this8.showReject = true;
13753
13791
  }).catch(function (e) {});
13754
13792
  } else {
package/lib/form.js CHANGED
@@ -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,
@@ -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,
package/lib/handler.js CHANGED
@@ -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,