ns-base-module 1.1.73 → 1.1.74

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,10 +285,6 @@ export var initLang = function initLang(_ref) {
285
285
  var id = _ref.id,
286
286
  defaultValue = _ref.defaultValue,
287
287
  data = _ref.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) {}
288
+ var language = JSON.parse(window.localStorage.getItem("INITLANG") || "{}");
289
+ return parsePlaceholder(language[id] || defaultValue || defaultLang[id], data);
294
290
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ns-base-module",
3
- "version": "1.1.73",
3
+ "version": "1.1.74",
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-right: 8px;
7
+ margin-left: 8px;
8
8
  padding: 2.5px 8px;
9
9
  cursor: pointer;
10
10
  &.action {
11
- // color: var(--primary-color);
12
- background-color: var(--menu-child-action-color);
11
+ color: var(--antd-wave-shadow-color);
12
+ background-color: var(--w-e-textarea-selected-border-color);
13
13
  }
14
14
  }
15
15
  }
16
16
 
17
17
  .filter-component-tree-content {
18
18
  .tags-list {
19
- margin-right: 0;
19
+ margin-left: 0;
20
20
  font-size: 12px;
21
21
  }
22
22
  :global {
@@ -1,9 +1,5 @@
1
1
  .filter-wrapper-body {
2
- // .infinite-scroll-component {
3
- // overflow-x: hidden !important;
4
- // }
5
2
  width: 260px;
6
- font-size: 12px;
7
3
  .sort {
8
4
  width: 100%;
9
5
  border-bottom: 1px solid #eee;
@@ -1,7 +1,53 @@
1
- @use "./popoverBody.scss";
1
+ .popover-body {
2
+ width: 260px;
3
+ min-height: 340px;
2
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
+
42
+ .set-icon {
43
+ width: 20px;
44
+ font-size: 12px;
45
+ text-align: right;
46
+ cursor: pointer;
47
+ }
48
+ }
3
49
  .mode-name-wrap {
4
- padding: 12px 0;
50
+ padding: 10px 0;
5
51
  }
6
52
 
7
53
  .icon-button-wrapper {
@@ -9,6 +55,14 @@
9
55
  cursor: pointer;
10
56
  }
11
57
 
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
+
12
66
  .tree_selectall {
13
67
  user-select: none;
14
68
 
@@ -1,6 +1,56 @@
1
- @use "./popoverBody.scss";
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
+ }
2
52
  .mode-name-wrap {
3
- padding: 12px 0;
53
+ padding: 10px 0;
4
54
  }
5
55
 
6
56
  .icon-button-wrapper {
@@ -11,6 +61,7 @@
11
61
  .columns-fixed-title {
12
62
  margin-top: 6px;
13
63
  margin-bottom: 6px;
64
+ padding-left: 24px;
14
65
  color: rgba(0, 0, 0, 0.45);
15
66
  font-size: 12px;
16
67
  }
@@ -26,15 +77,13 @@
26
77
  padding-left: 12px;
27
78
  }
28
79
  }
29
- .set-text-default {
30
- font-size: 12px;
31
- }
80
+
32
81
  // Dustbin
33
82
  .columns-tree-main {
34
83
  display: flex;
35
84
  align-items: center;
36
85
  .drag-title {
37
- width: 50px;
86
+ width: 200px;
38
87
  margin: 0 8px;
39
88
  overflow: hidden;
40
89
  white-space: nowrap;
@@ -43,7 +92,7 @@
43
92
 
44
93
  .columns-tree-icon {
45
94
  // width: 40px;
46
- color: #000;
95
+ color: var(--antd-wave-shadow-color);
47
96
  font-size: 14px;
48
97
  text-align: right;
49
98
  visibility: hidden;