ns-base-module 1.1.55 → 2.0.0

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.
@@ -284,6 +284,11 @@ export var initLang = function initLang(_ref) {
284
284
  var id = _ref.id,
285
285
  defaultValue = _ref.defaultValue,
286
286
  data = _ref.data;
287
- var language = JSON.parse(window.localStorage.getItem("INITLANG") || "{}");
288
- return parsePlaceholder(language[id] || defaultValue || defaultLang[id], data);
287
+ try {
288
+ var languageStr = window.localStorage.getItem("INITLANG");
289
+ if (languageStr === "undefined") return defaultValue;
290
+ "";
291
+ var language = JSON.parse(languageStr || "{}");
292
+ return parsePlaceholder(language[id] || defaultValue || defaultLang[id], data);
293
+ } catch (error) {}
289
294
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ns-base-module",
3
- "version": "1.1.55",
3
+ "version": "2.0.0",
4
4
  "private": false,
5
5
  "description": "ns通用组件库",
6
6
  "license": "MIT",
@@ -1,53 +1,7 @@
1
- .popover-body {
2
- width: 260px;
3
- min-height: 340px;
1
+ @import "./popoverBody.scss";
4
2
 
5
- .top-wrap {
6
- display: flex;
7
- align-items: center;
8
- justify-content: space-between;
9
- }
10
-
11
- .title {
12
- font-weight: bold;
13
- font-size: 12px;
14
- }
15
-
16
- .add-icon {
17
- font-weight: bold;
18
- cursor: pointer;
19
- }
20
-
21
- .list-title {
22
- margin: 10px 0;
23
- font-size: 12px;
24
- }
25
-
26
- .list-title-icon {
27
- margin-right: 6px;
28
- }
29
-
30
- .list-radio {
31
- display: flex;
32
- align-items: center;
33
- width: 100%;
34
- margin-bottom: 10px;
35
- }
36
-
37
- .list-radio-label {
38
- flex: 1;
39
- font-weight: bold;
40
- }
41
-
42
- .set-icon {
43
- width: 20px;
44
- font-size: 12px;
45
- text-align: right;
46
- cursor: pointer;
47
- }
48
- }
49
3
  .mode-name-wrap {
50
- padding: 10px 0;
4
+ padding: 12px 0;
51
5
  }
52
6
 
53
7
  .icon-button-wrapper {
@@ -55,14 +9,6 @@
55
9
  cursor: pointer;
56
10
  }
57
11
 
58
- .columns-fixed-title {
59
- margin-top: 6px;
60
- margin-bottom: 6px;
61
- padding-left: 24px;
62
- color: rgba(0, 0, 0, 0.45);
63
- font-size: 12px;
64
- }
65
-
66
12
  .tree_selectall {
67
13
  user-select: none;
68
14
 
@@ -1,56 +1,6 @@
1
- .popover-body {
2
- width: 260px;
3
- min-height: 340px;
4
-
5
- .top-wrap {
6
- display: flex;
7
- align-items: center;
8
- justify-content: space-between;
9
- }
10
-
11
- .title {
12
- font-weight: bold;
13
- font-size: 12px;
14
- }
15
-
16
- .add-icon {
17
- font-weight: bold;
18
- cursor: pointer;
19
- }
20
-
21
- .list-title {
22
- margin: 10px 0;
23
- font-size: 12px;
24
- }
25
-
26
- .list-title-icon {
27
- margin-right: 6px;
28
- }
29
-
30
- .list-radio {
31
- display: flex;
32
- align-items: center;
33
- width: 100%;
34
- margin-bottom: 10px;
35
- }
36
-
37
- .list-radio-label {
38
- flex: 1;
39
- font-weight: bold;
40
- }
41
- .set-text-default {
42
- color: var(--antd-wave-shadow-color);
43
- font-size: 10px;
44
- }
45
- .set-icon {
46
- width: 20px;
47
- font-size: 12px;
48
- text-align: right;
49
- cursor: pointer;
50
- }
51
- }
1
+ @import "./popoverBody.scss";
52
2
  .mode-name-wrap {
53
- padding: 10px 0;
3
+ padding: 12px 0;
54
4
  }
55
5
 
56
6
  .icon-button-wrapper {
@@ -61,7 +11,6 @@
61
11
  .columns-fixed-title {
62
12
  margin-top: 6px;
63
13
  margin-bottom: 6px;
64
- padding-left: 24px;
65
14
  color: rgba(0, 0, 0, 0.45);
66
15
  font-size: 12px;
67
16
  }
@@ -92,7 +41,7 @@
92
41
 
93
42
  .columns-tree-icon {
94
43
  // width: 40px;
95
- color: var(--antd-wave-shadow-color);
44
+ color: #000;
96
45
  font-size: 14px;
97
46
  text-align: right;
98
47
  visibility: hidden;
@@ -0,0 +1,54 @@
1
+ .popover-body {
2
+ width: 270px;
3
+ min-height: 340px;
4
+ &.config-body {
5
+ width: 320px;
6
+ .top-wrap {
7
+ margin-bottom: 6px;
8
+ }
9
+ }
10
+
11
+ .top-wrap {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: space-between;
15
+ margin-bottom: 18px;
16
+ }
17
+
18
+ .title {
19
+ font-size: 14px;
20
+ }
21
+
22
+ .add-icon {
23
+ font-weight: bold;
24
+ cursor: pointer;
25
+ }
26
+
27
+ .list-title {
28
+ margin-bottom: 14px;
29
+ font-size: 12px;
30
+ }
31
+
32
+ .list-title-icon {
33
+ margin-right: 6px;
34
+ }
35
+
36
+ .list-radio {
37
+ display: flex;
38
+ align-items: center;
39
+ width: 100%;
40
+ margin-bottom: 10px;
41
+ }
42
+
43
+ .list-radio-label {
44
+ flex: 1;
45
+ font-weight: bold;
46
+ }
47
+
48
+ .set-icon {
49
+ width: 20px;
50
+ font-size: 12px;
51
+ text-align: right;
52
+ cursor: pointer;
53
+ }
54
+ }