dlt-for-react 2.0.16 → 2.1.1
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/README.md +8 -4
- package/lib/components/NHSelector/ListSort/index.js +411 -0
- package/lib/components/NHSelector/index.js +636 -0
- package/lib/components/NHSelector/resultview/index.js +408 -0
- package/lib/components/NHSelector/selectormodal/index.js +303 -0
- package/lib/components/NHSelector/table/index.js +784 -0
- package/lib/components/NHSelector/tree/index.js +554 -0
- package/lib/index.js +214 -208
- package/lib/layouts/Login/login.js +186 -179
- package/lib/utils/NHCore.js +67 -67
- package/lib/utils/common.js +192 -123
- package/lib/utils/equalsObj.js +18 -26
- package/package.json +1 -1
- package/lib/utils/createUuid.js +0 -40
- package/lib/utils/getLoginUser.js +0 -10
- package/lib/utils/getSize.js +0 -27
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var getLoginUser = function getLoginUser(auth) {
|
|
7
|
-
var loginUser = sessionStorage.getItem('userLogin') ? JSON.parse(sessionStorage.getItem('userLogin')) : { authorization: {}, menus: [] };
|
|
8
|
-
return loginUser;
|
|
9
|
-
};
|
|
10
|
-
exports.default = getLoginUser;
|
package/lib/utils/getSize.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var getSize = function getSize() {
|
|
7
|
-
var setting = sessionStorage.getItem('setting');
|
|
8
|
-
var breadcrumbHeight = 0; //面包屑高度
|
|
9
|
-
if (setting) {
|
|
10
|
-
// 存在布局配置
|
|
11
|
-
var _JSON$parse = JSON.parse(setting),
|
|
12
|
-
layout = _JSON$parse.layout;
|
|
13
|
-
|
|
14
|
-
breadcrumbHeight = layout === 'mixmenu' ? 40 : 0; //若是混合布局 contentH高度需要减去面包屑高度
|
|
15
|
-
}
|
|
16
|
-
var windowW = void 0,
|
|
17
|
-
windowH = void 0,
|
|
18
|
-
contentH = void 0,
|
|
19
|
-
scrollT = void 0;
|
|
20
|
-
windowH = window.innerHeight;
|
|
21
|
-
windowW = window.innerWidth;
|
|
22
|
-
scrollT = document.documentElement.scrollTop || document.body.scrollTop;
|
|
23
|
-
contentH = windowH - 65 - breadcrumbHeight;
|
|
24
|
-
return { windowW: windowW, windowH: windowH, contentH: contentH, scrollT: scrollT };
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
exports.default = getSize;
|