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/input-number.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 = 75);
|
|
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
|
+
/***/ 75:
|
|
3720
3759
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3721
3760
|
|
|
3722
3761
|
"use strict";
|
package/lib/input.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 = 74);
|
|
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,
|
|
@@ -3741,7 +3780,7 @@ var WebSocket = function () {
|
|
|
3741
3780
|
|
|
3742
3781
|
/***/ }),
|
|
3743
3782
|
|
|
3744
|
-
/***/
|
|
3783
|
+
/***/ 74:
|
|
3745
3784
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3746
3785
|
|
|
3747
3786
|
"use strict";
|
package/lib/label.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 = 76);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,7 +192,7 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 76:
|
|
196
196
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
197
|
|
|
198
198
|
"use strict";
|
package/lib/login.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,
|
|
@@ -3798,7 +3837,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
|
|
|
3798
3837
|
// ESM COMPAT FLAG
|
|
3799
3838
|
__webpack_require__.r(__webpack_exports__);
|
|
3800
3839
|
|
|
3801
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=
|
|
3840
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=7824c20a&
|
|
3802
3841
|
var render = function () {
|
|
3803
3842
|
var _vm = this
|
|
3804
3843
|
var _h = _vm.$createElement
|
|
@@ -4682,7 +4721,7 @@ var staticRenderFns = []
|
|
|
4682
4721
|
render._withStripped = true
|
|
4683
4722
|
|
|
4684
4723
|
|
|
4685
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
4724
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=7824c20a&
|
|
4686
4725
|
|
|
4687
4726
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=28f463b9&
|
|
4688
4727
|
var resetPasswordvue_type_template_id_28f463b9_render = function () {
|
|
@@ -5656,8 +5695,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5656
5695
|
default: function _default() {
|
|
5657
5696
|
return {
|
|
5658
5697
|
placeholder: '请输入手机号',
|
|
5659
|
-
rules: [{ required: true, message: '手机号不能为空', trigger: '
|
|
5660
|
-
trigger: '
|
|
5698
|
+
rules: [{ required: true, message: '手机号不能为空', trigger: 'change' }, mainvue_type_script_lang_js_extends({}, rules["a" /* default */].phone, {
|
|
5699
|
+
trigger: 'change'
|
|
5661
5700
|
})]
|
|
5662
5701
|
};
|
|
5663
5702
|
}
|
|
@@ -5670,7 +5709,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5670
5709
|
rules: [{
|
|
5671
5710
|
required: true,
|
|
5672
5711
|
message: '请输入邮箱地址',
|
|
5673
|
-
trigger: '
|
|
5712
|
+
trigger: 'change'
|
|
5674
5713
|
}, {
|
|
5675
5714
|
type: 'email',
|
|
5676
5715
|
message: '请输入正确的邮箱地址',
|
|
@@ -5684,7 +5723,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5684
5723
|
default: function _default() {
|
|
5685
5724
|
return {
|
|
5686
5725
|
placeholder: '请输入密码',
|
|
5687
|
-
rules: [{ required: true, message: '密码不能为空', trigger: '
|
|
5726
|
+
rules: [{ required: true, message: '密码不能为空', trigger: 'change' }]
|
|
5688
5727
|
};
|
|
5689
5728
|
}
|
|
5690
5729
|
},
|
package/lib/main.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,
|
|
@@ -3781,7 +3820,7 @@ module.exports = require("runtime-import");
|
|
|
3781
3820
|
// ESM COMPAT FLAG
|
|
3782
3821
|
__webpack_require__.r(__webpack_exports__);
|
|
3783
3822
|
|
|
3784
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=
|
|
3823
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=a07f27f8&
|
|
3785
3824
|
var render = function () {
|
|
3786
3825
|
var _vm = this
|
|
3787
3826
|
var _h = _vm.$createElement
|
|
@@ -4212,7 +4251,7 @@ var staticRenderFns = []
|
|
|
4212
4251
|
render._withStripped = true
|
|
4213
4252
|
|
|
4214
4253
|
|
|
4215
|
-
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=
|
|
4254
|
+
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=a07f27f8&
|
|
4216
4255
|
|
|
4217
4256
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=fc09aaf8&
|
|
4218
4257
|
var userinfovue_type_template_id_fc09aaf8_render = function () {
|
|
@@ -6442,7 +6481,6 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
6442
6481
|
if (this.maxHeight) {
|
|
6443
6482
|
return this.maxHeight;
|
|
6444
6483
|
}
|
|
6445
|
-
console.log(document.body.clientHeight - 50);
|
|
6446
6484
|
return String(document.body.clientHeight - 77);
|
|
6447
6485
|
},
|
|
6448
6486
|
showSide: function showSide() {
|
package/lib/menu.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 = 77);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,7 +192,7 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 77:
|
|
196
196
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
197
|
|
|
198
198
|
"use strict";
|
|
@@ -297,7 +297,6 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
297
297
|
var _this2 = this;
|
|
298
298
|
|
|
299
299
|
if (this.mode === 'horizontal') {
|
|
300
|
-
console.log(this.$refs.esMenu.$refs.resize);
|
|
301
300
|
this.$refs.esMenu.wrap.onmouseover = function (e) {
|
|
302
301
|
_this2.$refs.esMenu.wrap.addEventListener('mousewheel', _this2.handleWheel, { passive: false }) || _this2.$refs.esMenu.wrap.addEventListener('DOMMouseScroll', _this2.handleWheel, false);
|
|
303
302
|
e.preventDefault();
|
package/lib/nav.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 = 52);
|
|
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
|
+
/***/ 52:
|
|
3580
3619
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3581
3620
|
|
|
3582
3621
|
"use strict";
|
package/lib/notify.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 = 53);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -540,7 +540,7 @@ function normalizeComponent(
|
|
|
540
540
|
|
|
541
541
|
/***/ }),
|
|
542
542
|
|
|
543
|
-
/***/
|
|
543
|
+
/***/ 53:
|
|
544
544
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
545
545
|
|
|
546
546
|
"use strict";
|
package/lib/page.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 = 55);
|
|
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
|
+
/***/ 55:
|
|
3580
3619
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3581
3620
|
|
|
3582
3621
|
"use strict";
|
package/lib/pagination.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 = 54);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,7 +192,7 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 54:
|
|
196
196
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
197
|
|
|
198
198
|
"use strict";
|