dlt-for-react 2.0.7 → 2.0.9

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.
@@ -1,40 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //获取UUID
7
- var createUuid = function createUuid() {
8
- var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
9
- var radix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 16;
10
-
11
- var chars = '0123456789abcdefghijklmnopqrstuvwxyz'.split('');
12
- var uuid = [],
13
- i;
14
- radix = radix || chars.length;
15
-
16
- if (len) {
17
- // Compact form
18
- for (i = 0; i < len; i++) {
19
- uuid[i] = chars[0 | Math.random() * radix];
20
- }
21
- } else {
22
- // rfc4122, version 4 form
23
- var r;
24
-
25
- // rfc4122 requires these characters
26
- uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
27
- uuid[14] = '4';
28
-
29
- // Fill in random data. At i==19 set the high bits of clock sequence as
30
- // per rfc4122, sec. 4.1.5
31
- for (i = 0; i < 36; i++) {
32
- if (!uuid[i]) {
33
- r = 0 | Math.random() * 16;
34
- uuid[i] = chars[i == 19 ? r & 0x3 | 0x8 : r];
35
- }
36
- }
37
- }
38
- return uuid.join('');
39
- };
40
- exports.default = createUuid;
@@ -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;
@@ -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;