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.
- package/lib/button-group.js +69 -18
- package/lib/button.js +43 -4
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +41 -2
- package/lib/data-table-form.js +41 -2
- package/lib/data-table.js +71 -19
- package/lib/date-picker.js +43 -4
- package/lib/dialog.js +41 -2
- package/lib/eoss-ui.common.js +253 -98
- package/lib/flow-group.js +41 -2
- package/lib/flow-list.js +41 -2
- package/lib/flow.js +44 -6
- package/lib/form.js +41 -2
- package/lib/handle-user.js +41 -2
- package/lib/handler.js +41 -2
- package/lib/icon.js +3880 -0
- package/lib/icons.js +2 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +43 -4
- package/lib/input.js +43 -4
- package/lib/label.js +2 -2
- package/lib/login.js +47 -8
- package/lib/main.js +43 -5
- package/lib/menu.js +2 -3
- package/lib/nav.js +43 -4
- package/lib/notify.js +2 -2
- package/lib/page.js +43 -4
- package/lib/pagination.js +2 -2
- package/lib/player.js +43 -4
- package/lib/qr-code.js +43 -4
- package/lib/radio-group.js +43 -4
- package/lib/retrial-auth.js +43 -4
- package/lib/select-ganged.js +43 -4
- package/lib/select.js +43 -4
- package/lib/selector-panel.js +41 -2
- package/lib/selector.js +50 -11
- package/lib/sizer.js +43 -4
- package/lib/steps.js +43 -4
- package/lib/switch.js +50 -11
- package/lib/table-form.js +43 -4
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +43 -4
- package/lib/theme-chalk/data-table.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/tips.js +43 -4
- package/lib/toolbar.js +2 -3
- package/lib/tree-group.js +43 -4
- package/lib/tree.js +49 -8
- package/lib/upload.js +46 -8
- package/lib/utils/util.js +41 -2
- package/lib/wujie.js +43 -4
- package/lib/wxlogin.js +176 -137
- package/package.json +1 -1
- package/packages/button-group/src/main.vue +21 -16
- package/packages/data-table/src/column.vue +1 -1
- package/packages/data-table/src/main.vue +14 -4
- package/packages/flow/src/main.vue +1 -2
- package/packages/icon/index.js +5 -0
- package/packages/icon/src/main.vue +43 -0
- package/packages/login/src/main.vue +6 -4
- package/packages/main/src/main.vue +0 -1
- package/packages/menu/src/main.vue +0 -1
- package/packages/theme-chalk/lib/data-table.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/src/data-table.scss +17 -0
- package/packages/theme-chalk/src/menu.scss +3 -5
- package/packages/toolbar/src/main.vue +0 -1
- package/packages/tree/src/main.vue +14 -2
- package/packages/upload/src/main.vue +0 -1
- package/src/index.js +4 -1
- package/src/utils/util.js +39 -1
package/lib/player.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 =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 56);
|
|
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,
|
|
@@ -3597,7 +3636,7 @@ module.exports = require("axios");
|
|
|
3597
3636
|
|
|
3598
3637
|
/***/ }),
|
|
3599
3638
|
|
|
3600
|
-
/***/
|
|
3639
|
+
/***/ 56:
|
|
3601
3640
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3602
3641
|
|
|
3603
3642
|
"use strict";
|
package/lib/qr-code.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 =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 57);
|
|
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("axios");
|
|
|
3583
3622
|
|
|
3584
3623
|
/***/ }),
|
|
3585
3624
|
|
|
3586
|
-
/***/
|
|
3625
|
+
/***/ 57:
|
|
3587
3626
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3588
3627
|
|
|
3589
3628
|
"use strict";
|
package/lib/radio-group.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 =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 58);
|
|
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,
|
|
@@ -3623,7 +3662,7 @@ module.exports = require("axios");
|
|
|
3623
3662
|
|
|
3624
3663
|
/***/ }),
|
|
3625
3664
|
|
|
3626
|
-
/***/
|
|
3665
|
+
/***/ 58:
|
|
3627
3666
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3628
3667
|
|
|
3629
3668
|
"use strict";
|
package/lib/retrial-auth.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 =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 59);
|
|
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,
|
|
@@ -3576,7 +3615,7 @@ module.exports = require("axios");
|
|
|
3576
3615
|
|
|
3577
3616
|
/***/ }),
|
|
3578
3617
|
|
|
3579
|
-
/***/
|
|
3618
|
+
/***/ 59:
|
|
3580
3619
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3581
3620
|
|
|
3582
3621
|
"use strict";
|
package/lib/select-ganged.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 =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 79);
|
|
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
|
-
/***/
|
|
3758
|
+
/***/ 79:
|
|
3720
3759
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3721
3760
|
|
|
3722
3761
|
"use strict";
|
package/lib/select.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 =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 78);
|
|
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,
|
|
@@ -3763,7 +3802,7 @@ var WebSocket = function () {
|
|
|
3763
3802
|
|
|
3764
3803
|
/***/ }),
|
|
3765
3804
|
|
|
3766
|
-
/***/
|
|
3805
|
+
/***/ 78:
|
|
3767
3806
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3768
3807
|
|
|
3769
3808
|
"use strict";
|
package/lib/selector-panel.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 === '';
|
|
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,
|