ns-base-module 1.1.71 → 1.1.73

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.
@@ -285,6 +285,10 @@ export var initLang = function initLang(_ref) {
285
285
  var id = _ref.id,
286
286
  defaultValue = _ref.defaultValue,
287
287
  data = _ref.data;
288
- var language = JSON.parse(window.localStorage.getItem("INITLANG") || "{}");
289
- return parsePlaceholder(language[id] || defaultValue || defaultLang[id], data);
288
+ try {
289
+ var languageStr = window.localStorage.getItem("INITLANG");
290
+ if (languageStr === "undefined") return defaultValue;
291
+ var language = JSON.parse(languageStr || "{}");
292
+ return parsePlaceholder(language[id] || defaultValue || defaultLang[id], data);
293
+ } catch (error) {}
290
294
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ns-base-module",
3
- "version": "1.1.71",
3
+ "version": "1.1.73",
4
4
  "private": false,
5
5
  "description": "ns通用组件库",
6
6
  "license": "MIT",
@@ -4,19 +4,19 @@
4
4
  flex: 1;
5
5
  .tags-list {
6
6
  display: inline-block;
7
- margin-left: 8px;
7
+ margin-right: 8px;
8
8
  padding: 2.5px 8px;
9
9
  cursor: pointer;
10
10
  &.action {
11
- color: var(--antd-wave-shadow-color);
12
- background-color: var(--w-e-textarea-selected-border-color);
11
+ // color: var(--primary-color);
12
+ background-color: var(--menu-child-action-color);
13
13
  }
14
14
  }
15
15
  }
16
16
 
17
17
  .filter-component-tree-content {
18
18
  .tags-list {
19
- margin-left: 0;
19
+ margin-right: 0;
20
20
  font-size: 12px;
21
21
  }
22
22
  :global {
@@ -1,5 +1,9 @@
1
1
  .filter-wrapper-body {
2
+ // .infinite-scroll-component {
3
+ // overflow-x: hidden !important;
4
+ // }
2
5
  width: 260px;
6
+ font-size: 12px;
3
7
  .sort {
4
8
  width: 100%;
5
9
  border-bottom: 1px solid #eee;
@@ -1,53 +1,7 @@
1
- .popover-body {
2
- width: 260px;
3
- min-height: 340px;
1
+ @use "./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
+ @use "./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
  }
@@ -77,13 +26,15 @@
77
26
  padding-left: 12px;
78
27
  }
79
28
  }
80
-
29
+ .set-text-default {
30
+ font-size: 12px;
31
+ }
81
32
  // Dustbin
82
33
  .columns-tree-main {
83
34
  display: flex;
84
35
  align-items: center;
85
36
  .drag-title {
86
- width: 200px;
37
+ width: 50px;
87
38
  margin: 0 8px;
88
39
  overflow: hidden;
89
40
  white-space: nowrap;
@@ -92,7 +43,7 @@
92
43
 
93
44
  .columns-tree-icon {
94
45
  // width: 40px;
95
- color: var(--antd-wave-shadow-color);
46
+ color: #000;
96
47
  font-size: 14px;
97
48
  text-align: right;
98
49
  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
+ }