dlt-for-react 2.0.2 → 2.0.4

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.
Files changed (47) hide show
  1. package/README.md +5 -2
  2. package/assets/HqImage/index.less +10 -10
  3. package/assets/HqTeaSelector/index.less +6 -0
  4. package/assets/components/KyTable/index.less +5 -5
  5. package/assets/exception/index.less +14 -12
  6. package/assets/layouts/settingDrawer/style.less +219 -222
  7. package/assets/layouts/style.less +128 -129
  8. package/assets/login/index.less +87 -88
  9. package/lib/components/HqImage/index.js +1 -1
  10. package/lib/components/HqInputPicker/setting-multiSelect.js +3 -1
  11. package/lib/components/HqInputPicker/setting-nhcascader.js +3 -1
  12. package/lib/components/HqInputPicker/setting-select.js +3 -1
  13. package/lib/components/HqInputPicker/setting-stu-selector.js +3 -1
  14. package/lib/components/HqInputPicker/setting-tea-selector.js +3 -1
  15. package/lib/components/HqSelector/HqLsrySelector/index.js +1 -1
  16. package/lib/components/HqSelector/HqRySelector/index.js +1 -1
  17. package/lib/components/HqSelector/HqWzSelector/index.js +1 -1
  18. package/lib/components/HqSelector/NHSelector/ListSort/index.js +411 -0
  19. package/lib/components/HqSelector/NHSelector/index.js +636 -0
  20. package/lib/components/HqSelector/NHSelector/resultview/index.js +408 -0
  21. package/lib/components/HqSelector/NHSelector/selectormodal/index.js +303 -0
  22. package/lib/components/HqSelector/NHSelector/table/index.js +784 -0
  23. package/lib/components/HqSelector/NHSelector/tree/index.js +554 -0
  24. package/lib/components/HqStuSelector/index.js +2 -2
  25. package/lib/components/HqTeaSelector/index.js +2 -2
  26. package/lib/components/KyEditableTable/component.js +3 -1
  27. package/lib/components/KyTable/index.js +2 -2
  28. package/lib/index.js +1 -1
  29. package/lib/layouts/Login/index-pre.js +5 -5
  30. package/lib/layouts/Login/index.js +9 -9
  31. package/lib/layouts/NavigationBar/index.js +1 -1
  32. package/lib/layouts/Top/index.js +9 -7
  33. package/lib/layouts/layout/index.js +15 -19
  34. package/lib/layouts/mixTop/index.js +8 -8
  35. package/lib/layouts/settingDrawer/blockCheckbox.js +7 -4
  36. package/lib/layouts/settingDrawer/colorChange.js +214 -191
  37. package/lib/layouts/settingDrawer/colorPicker.js +83 -75
  38. package/lib/layouts/settingDrawer/colorSetting.js +14 -15
  39. package/lib/layouts/settingDrawer/fontChange.js +38 -38
  40. package/lib/layouts/settingDrawer/index.js +3 -3
  41. package/package.json +1 -1
  42. package/assets/teaSelector/index.less +0 -4
  43. /package/assets/{selector → HqSelector}/resultview/index.less +0 -0
  44. /package/assets/{selector → HqSelector}/selectormodal/index.less +0 -0
  45. /package/assets/{selector → HqSelector}/table/index.less +0 -0
  46. /package/assets/{selector → HqSelector}/tree/index.less +0 -0
  47. /package/assets/{stuSelector → HqStuSelector}/index.less +0 -0
package/README.md CHANGED
@@ -8,7 +8,7 @@ npm publish
8
8
 
9
9
  ## 前端 dlt-for-react 依赖包版本更新记录
10
10
 
11
- ##### 当前最新版本:2.0.2
11
+ ##### 当前最新版本:2.0.3
12
12
 
13
13
  ##### 安装依赖
14
14
 
@@ -16,9 +16,12 @@ npm publish
16
16
 
17
17
  ##### 版本修改记录
18
18
 
19
- #### V2.0.2—2024 年 3 月 15 日
19
+ #### V2.0.3—2024 年 3 月 15 日
20
20
 
21
21
  1. 解决部分组件幻影依赖不存在的问题
22
+ 2. 解决全局样式影响项目地样式问题
23
+ 3. 解决部分样式被调用时不生效的问题
24
+ 4. 解决 HqSelect 引入方式不正确的问题
22
25
 
23
26
  #### V1.1.16~V2.0.1—2024 年 3 月 14 日
24
27
 
@@ -1,11 +1,11 @@
1
1
  :global {
2
- .ant-upload-select-picture-card i {
3
- font-size: 32px;
4
- color: #999;
5
- }
6
-
7
- .ant-upload-select-picture-card .xgui-picturewall-ant-upload-text {
8
- margin-top: 8px;
9
- color: #666;
10
- }
11
- }
2
+ .ant-upload-select-picture-card i {
3
+ font-size: 32px;
4
+ color: #999;
5
+ }
6
+
7
+ .ant-upload-select-picture-card .dlt-picturewall-ant-upload-text {
8
+ margin-top: 8px;
9
+ color: #666;
10
+ }
11
+ }
@@ -0,0 +1,6 @@
1
+ :global {
2
+ .dlt-selector-tea-xmCss {
3
+ font-size: 14px;
4
+ color: black;
5
+ }
6
+ }
@@ -58,13 +58,13 @@
58
58
  }
59
59
  }
60
60
  }
61
- .xgui-table-searchDiv {
61
+ .dlt-table-searchDiv {
62
62
  margin-bottom: 16px;
63
63
  }
64
- .xgui-table-searchDiv .ant-select-selection,
65
- .xgui-table-searchDiv .ant-select-selection:active,
66
- .xgui-table-searchDiv .ant-select-selection:focus,
67
- .xgui-table-searchDiv .ant-select-selection:hover {
64
+ .dlt-table-searchDiv .ant-select-selection,
65
+ .dlt-table-searchDiv .ant-select-selection:active,
66
+ .dlt-table-searchDiv .ant-select-selection:focus,
67
+ .dlt-table-searchDiv .ant-select-selection:hover {
68
68
  border: none;
69
69
  outline: none;
70
70
  box-shadow: none;
@@ -1,25 +1,27 @@
1
- .exceptionContianer {
1
+ :global {
2
+ .exceptionContianer {
2
3
  display: flex;
3
4
  align-items: center;
4
5
  min-height: 500px;
5
6
  height: 80%;
6
- flex-direction: column;
7
+ flex-direction: column;
7
8
  justify-content: center;
8
9
  .exceptionImg {
9
- height: 360px;
10
- width: 100%;
11
- max-width: 540px;
12
- background-repeat: no-repeat;
13
- background-position: 50% 50%;
14
- background-size: contain;
10
+ height: 360px;
11
+ width: 100%;
12
+ max-width: 540px;
13
+ background-repeat: no-repeat;
14
+ background-position: 50% 50%;
15
+ background-size: contain;
15
16
  }
16
17
  .exceptionImg403 {
17
- background-image: url('./images/403.png');
18
+ background-image: url("./images/403.png");
18
19
  }
19
20
  .exceptionImg404 {
20
- background-image: url('./images/404.png');
21
+ background-image: url("./images/404.png");
21
22
  }
22
23
  .exceptionImg500 {
23
- background-image: url('./images/500.png');
24
+ background-image: url("./images/500.png");
24
25
  }
25
- }
26
+ }
27
+ }
@@ -1,266 +1,263 @@
1
1
  @import "~antd/lib/style/themes/default.less";
2
+ :global {
3
+ .dlt-setting-handler {
4
+ z-index: 999;
5
+ position: absolute;
6
+ top: 240px;
7
+ right: 425px;
8
+ width: 48px;
9
+ height: 48px;
10
+ line-height: 48px;
11
+ font-size: 16px;
12
+ text-align: center;
13
+ background: var(--primary-color);
14
+ border-radius: 4px 0 0 4px;
15
+ cursor: pointer;
16
+ pointer-events: auto;
17
+ }
2
18
 
3
- .handler {
4
- z-index: 999;
5
- position: absolute;
6
- top: 240px;
7
- right: 425px;
8
- width: 48px;
9
- height: 48px;
10
- line-height: 48px;
11
- font-size: 16px;
12
- text-align: center;
13
- background: var(--primary-color);
14
- border-radius: 4px 0 0 4px;
15
- cursor: pointer;
16
- pointer-events: auto;
17
- }
19
+ .dlt-setting-content {
20
+ position: relative;
21
+ min-height: 100%;
22
+ background: #fff;
18
23
 
19
- .content {
20
- position: relative;
21
- min-height: 100%;
22
- background: #fff;
24
+ .ant-list-item {
25
+ span {
26
+ flex: 1;
27
+ }
28
+ }
23
29
 
24
- .ant-list-item {
25
- span {
26
- flex: 1;
30
+ .btnWarp {
31
+ display: flex;
32
+ justify-content: center;
27
33
  }
28
34
  }
29
35
 
30
- .btnWarp {
31
- display: flex;
32
- justify-content: center;
36
+ .dlt-setting-title {
37
+ margin-bottom: 12px;
38
+ color: @heading-color;
39
+ font-size: 14px;
40
+ line-height: 22px;
33
41
  }
34
- }
35
-
36
- .title {
37
- margin-bottom: 12px;
38
- color: @heading-color;
39
- font-size: 14px;
40
- line-height: 22px;
41
- }
42
-
43
- .block_checkbox {
44
- display: flex;
45
-
46
- .item {
47
- position: relative;
48
- margin-right: 16px;
49
- border-radius: @border-radius-base;
50
- cursor: pointer;
51
42
 
52
- img {
53
- width: 48px;
54
- }
55
- }
43
+ .dlt-setting-block_checkbox {
44
+ display: flex;
56
45
 
57
- .item_box {
58
- position: relative;
59
- margin-right: 16px;
60
- width: 44px;
61
- height: 36px;
62
- overflow: hidden;
63
- background: #f0f2f5;
64
- border-radius: @border-radius-base;
65
- box-shadow: 0 1px 2.5px 0 rgba(0, 0, 0, 18%);
66
- cursor: pointer;
46
+ .item {
47
+ position: relative;
48
+ margin-right: 16px;
49
+ border-radius: @border-radius-base;
50
+ cursor: pointer;
67
51
 
68
- &::before {
69
- position: absolute;
70
- left: 0;
71
- top: 0;
72
- width: 33%;
73
- height: 100%;
74
- background-color: #fff;
75
- content: '';
52
+ img {
53
+ width: 48px;
54
+ }
76
55
  }
77
56
 
78
- &::after {
79
- position: absolute;
80
- left: 0;
81
- top: 0;
82
- width: 100%;
83
- height: 25%;
84
- background-color: #fff;
85
- content: '';
86
- }
57
+ .item_box {
58
+ position: relative;
59
+ margin-right: 16px;
60
+ width: 44px;
61
+ height: 36px;
62
+ overflow: hidden;
63
+ background: #f0f2f5;
64
+ border-radius: @border-radius-base;
65
+ box-shadow: 0 1px 2.5px 0 rgba(0, 0, 0, 18%);
66
+ cursor: pointer;
87
67
 
88
- &.dark {
89
68
  &::before {
90
- background-color: @layout-header-background;
91
- content: '';
92
- z-index: 1;
69
+ position: absolute;
70
+ left: 0;
71
+ top: 0;
72
+ width: 33%;
73
+ height: 100%;
74
+ background-color: #fff;
75
+ content: "";
93
76
  }
94
- }
95
77
 
96
- &.sidemenu {
97
- &::before {
98
- background-color: @layout-header-background;
99
- content: '';
100
- z-index: 1;
78
+ &::after {
79
+ position: absolute;
80
+ left: 0;
81
+ top: 0;
82
+ width: 100%;
83
+ height: 25%;
84
+ background-color: #fff;
85
+ content: "";
101
86
  }
102
- }
103
87
 
104
- &.topmenu {
105
- &::before {
106
- background-color: transparent;
107
- content: '';
88
+ &.dark {
89
+ &::before {
90
+ background-color: @layout-header-background;
91
+ content: "";
92
+ z-index: 1;
93
+ }
108
94
  }
109
95
 
110
- &::after {
111
- background-color: @layout-header-background;
112
- content: '';
113
- z-index: 1;
96
+ &.sidemenu {
97
+ &::before {
98
+ background-color: @layout-header-background;
99
+ content: "";
100
+ z-index: 1;
101
+ }
114
102
  }
115
- }
116
103
 
117
- &.mixmenu {
118
- &::before {
119
- background-color: #fff;
120
- content: '';
104
+ &.topmenu {
105
+ &::before {
106
+ background-color: transparent;
107
+ content: "";
108
+ }
109
+
110
+ &::after {
111
+ background-color: @layout-header-background;
112
+ content: "";
113
+ z-index: 1;
114
+ }
121
115
  }
122
116
 
123
- &::after {
124
- background-color: @layout-header-background;
125
- content: '';
126
- z-index: 1;
117
+ &.mixmenu {
118
+ &::before {
119
+ background-color: #fff;
120
+ content: "";
121
+ }
122
+
123
+ &::after {
124
+ background-color: @layout-header-background;
125
+ content: "";
126
+ z-index: 1;
127
+ }
127
128
  }
128
129
  }
129
- }
130
130
 
131
- .icon_selected {
132
- position: absolute;
133
- top: 0;
134
- right: 0;
135
- width: 100%;
136
- height: 100%;
137
- padding-top: 15px;
138
- padding-left: 24px;
139
- color: var(--primary-color);
140
- font-weight: bold;
141
- font-size: 14px;
131
+ .icon_selected {
132
+ position: absolute;
133
+ top: 0;
134
+ right: 0;
135
+ width: 100%;
136
+ height: 100%;
137
+ padding-top: 15px;
138
+ padding-left: 24px;
139
+ color: var(--primary-color);
140
+ font-weight: bold;
141
+ font-size: 14px;
142
+ }
142
143
  }
143
- }
144
-
145
144
 
146
- // 颜色选择样式
147
- .ColorChangeBox {
148
- display: flex;
149
- flex-wrap: wrap;
150
- }
151
-
152
- .colorContentBox {
153
- margin-bottom: 23px;
154
- display: flex;
155
- flex-direction: column;
156
- justify-content: center;
157
- align-items: center;
158
- margin-right: 11px;
159
-
160
- // &:nth-child(3n) {
161
- // margin-right: 0px;
162
- // }
163
-
164
- >p {
165
- margin-top: 8px;
166
- }
167
- }
145
+ // 颜色选择样式
146
+ .dlt-setting-colorChangeBox {
147
+ display: flex;
148
+ flex-wrap: wrap;
149
+ .colorContentBox {
150
+ margin-bottom: 23px;
151
+ display: flex;
152
+ flex-direction: column;
153
+ justify-content: center;
154
+ align-items: center;
155
+ margin-right: 11px;
156
+
157
+ // &:nth-child(3n) {
158
+ // margin-right: 0px;
159
+ // }
160
+
161
+ > p {
162
+ margin-top: 8px;
163
+ }
164
+ }
165
+ .colorBox {
166
+ width: 82px;
167
+ height: 77px;
168
+ opacity: 1;
169
+ background: rgba(158, 145, 255, 0.1);
170
+ border-radius: 4px;
171
+ position: relative;
172
+ padding: 21px 6px 6px 6px;
173
+ display: flex;
174
+ justify-content: space-between;
175
+
176
+ .colorHeader {
177
+ width: 82px;
178
+ height: 13px;
179
+ opacity: 1;
180
+ // background: #9e91ff;
181
+ border-radius: 4px 4px 0px 0px;
182
+ position: absolute;
183
+ top: 0;
184
+ left: 0;
185
+ }
168
186
 
169
- .colorBox {
170
- width: 82px;
171
- height: 77px;
172
- opacity: 1;
173
- background: rgba(158, 145, 255, 0.10);
174
- border-radius: 4px;
175
- position: relative;
176
- padding: 21px 6px 6px 6px;
177
- display: flex;
178
- justify-content: space-between;
187
+ .leftBox {
188
+ .whiteBox1 {
189
+ width: 24px;
190
+ height: 9px;
191
+ opacity: 1;
192
+ background: #ffffff;
193
+ border-radius: 2px;
194
+ margin-bottom: 3px;
195
+ }
196
+
197
+ .whiteBox2 {
198
+ width: 24px;
199
+ height: 38px;
200
+ opacity: 1;
201
+ background: #ffffff;
202
+ border-radius: 2px;
203
+ }
204
+ }
179
205
 
180
- .colorHeader {
181
- width: 82px;
182
- height: 13px;
183
- opacity: 1;
184
- // background: #9e91ff;
185
- border-radius: 4px 4px 0px 0px;
186
- position: absolute;
187
- top: 0;
188
- left: 0;
206
+ .whiteBox3 {
207
+ width: 42px;
208
+ height: 50px;
209
+ opacity: 1;
210
+ background: #ffffff;
211
+ border-radius: 2px;
212
+ }
213
+ }
189
214
  }
190
215
 
191
- .leftBox {
192
- .whiteBox1 {
193
- width: 24px;
194
- height: 9px;
195
- opacity: 1;
196
- background: #ffffff;
197
- border-radius: 2px;
198
- margin-bottom: 3px;
199
- }
216
+ // 字号选择
217
+ .dlt-setting-fontContent {
218
+ display: flex;
200
219
 
201
- .whiteBox2 {
202
- width: 24px;
203
- height: 38px;
220
+ .fontContentBox {
221
+ display: flex;
222
+ justify-content: center;
223
+ align-items: center;
224
+ width: 40px;
225
+ height: 40px;
204
226
  opacity: 1;
205
227
  background: #ffffff;
206
- border-radius: 2px;
207
- }
208
- }
209
-
210
- .whiteBox3 {
211
- width: 42px;
212
- height: 50px;
213
- opacity: 1;
214
- background: #ffffff;
215
- border-radius: 2px;
216
- }
217
- }
218
-
219
- // 字号选择
220
- .fontContent {
221
- display: flex;
228
+ border: 1px solid #eff3f8;
229
+ border-radius: 4px;
230
+ margin-right: 25px;
222
231
 
223
- .fontContentBox {
224
- display: flex;
225
- justify-content: center;
226
- align-items: center;
227
- width: 40px;
228
- height: 40px;
229
- opacity: 1;
230
- background: #ffffff;
231
- border: 1px solid #eff3f8;
232
- border-radius: 4px;
233
- margin-right: 25px;
232
+ &.selected {
233
+ background: #397ef0;
234
+ border: 1px solid #397ef0;
235
+ border-radius: 4px;
236
+ color: #fff;
237
+ }
234
238
 
235
- &.selected {
236
- background: #397ef0;
237
- border: 1px solid #397ef0;
238
- border-radius: 4px;
239
- color: #fff;
240
- }
239
+ > p {
240
+ margin: 0;
241
+ padding: 0;
242
+ }
241
243
 
242
- >p {
243
- margin: 0;
244
- padding: 0;
244
+ &:hover {
245
+ box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.1);
246
+ cursor: pointer;
247
+ }
245
248
  }
246
249
 
247
- &:hover {
248
- box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.10);
249
- cursor: pointer;
250
+ .hint {
251
+ display: block;
252
+ opacity: 1;
253
+ font-size: 14px;
254
+ font-family: Source Han Sans CN, Source Han Sans CN-Regular;
255
+ font-weight: 400;
256
+ text-align: left;
257
+ color: #397ef0;
258
+ line-height: 24px;
259
+ width: 40px;
260
+ text-align: center;
250
261
  }
251
262
  }
252
-
253
- .hint {
254
- display: block;
255
- opacity: 1;
256
- font-size: 14px;
257
- font-family: Source Han Sans CN, Source Han Sans CN-Regular;
258
- font-weight: 400;
259
- text-align: left;
260
- color: #397ef0;
261
- line-height: 24px;
262
- width: 40px;
263
- text-align: center;
264
- }
265
-
266
- }
263
+ }