dlt-for-react 2.0.2 → 2.0.3

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 (41) hide show
  1. package/README.md +4 -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/HqSelector/HqLsrySelector/index.js +1 -1
  11. package/lib/components/HqSelector/HqRySelector/index.js +1 -1
  12. package/lib/components/HqSelector/HqWzSelector/index.js +1 -1
  13. package/lib/components/HqSelector/NHSelector/ListSort/index.js +411 -0
  14. package/lib/components/HqSelector/NHSelector/index.js +636 -0
  15. package/lib/components/HqSelector/NHSelector/resultview/index.js +408 -0
  16. package/lib/components/HqSelector/NHSelector/selectormodal/index.js +303 -0
  17. package/lib/components/HqSelector/NHSelector/table/index.js +784 -0
  18. package/lib/components/HqSelector/NHSelector/tree/index.js +554 -0
  19. package/lib/components/HqStuSelector/index.js +2 -2
  20. package/lib/components/HqTeaSelector/index.js +2 -2
  21. package/lib/components/KyTable/index.js +2 -2
  22. package/lib/index.js +1 -1
  23. package/lib/layouts/Login/index-pre.js +5 -5
  24. package/lib/layouts/Login/index.js +9 -9
  25. package/lib/layouts/NavigationBar/index.js +1 -1
  26. package/lib/layouts/Top/index.js +9 -7
  27. package/lib/layouts/layout/index.js +15 -19
  28. package/lib/layouts/mixTop/index.js +8 -8
  29. package/lib/layouts/settingDrawer/blockCheckbox.js +7 -4
  30. package/lib/layouts/settingDrawer/colorChange.js +214 -191
  31. package/lib/layouts/settingDrawer/colorPicker.js +83 -75
  32. package/lib/layouts/settingDrawer/colorSetting.js +14 -15
  33. package/lib/layouts/settingDrawer/fontChange.js +38 -38
  34. package/lib/layouts/settingDrawer/index.js +3 -3
  35. package/package.json +1 -1
  36. package/assets/teaSelector/index.less +0 -4
  37. /package/assets/{selector → HqSelector}/resultview/index.less +0 -0
  38. /package/assets/{selector → HqSelector}/selectormodal/index.less +0 -0
  39. /package/assets/{selector → HqSelector}/table/index.less +0 -0
  40. /package/assets/{selector → HqSelector}/tree/index.less +0 -0
  41. /package/assets/{stuSelector → HqStuSelector}/index.less +0 -0
@@ -1,15 +1,15 @@
1
1
  @import "~antd/lib/style/themes/default.less";
2
-
3
- .xgui-layout-logo {
2
+ :global {
3
+ .dlt-layout-logo {
4
4
  height: 64px;
5
5
  line-height: 64px;
6
6
  overflow: hidden;
7
7
  text-align: center;
8
8
  display: flex;
9
9
  align-items: center;
10
- }
10
+ }
11
11
 
12
- .xgui-layout-logoSpan {
12
+ .dlt-layout-logoSpan {
13
13
  text-align: left;
14
14
  color: white;
15
15
  display: block;
@@ -22,11 +22,11 @@
22
22
  font-family: Microsoft YaBai;
23
23
 
24
24
  &.light {
25
- color: var(--primary-color);
25
+ color: var(--primary-color);
26
26
  }
27
- }
27
+ }
28
28
 
29
- .xgui-layout-breadcrumb {
29
+ .dlt-layout-breadcrumb {
30
30
  height: 64px;
31
31
  background: #fff;
32
32
  // margin: 1px 0;
@@ -34,12 +34,12 @@
34
34
  float: left;
35
35
 
36
36
  .ant-breadcrumb {
37
- line-height: 64px;
38
- text-indent: 20px;
37
+ line-height: 64px;
38
+ text-indent: 20px;
39
39
  }
40
- }
40
+ }
41
41
 
42
- .xgui-layout-breadcrumb_new {
42
+ .dlt-layout-breadcrumb_new {
43
43
  height: 40px;
44
44
  background: #fff;
45
45
  color: rgba(0, 0, 0, 0.45);
@@ -48,37 +48,37 @@
48
48
  padding: 0 20px;
49
49
 
50
50
  .ant-breadcrumb {
51
- line-height: 40px;
51
+ line-height: 40px;
52
52
  }
53
- }
53
+ }
54
54
 
55
- .xgui-layout-action {
55
+ .dlt-layout-action {
56
56
  cursor: pointer;
57
57
  padding: 0 12px;
58
58
  display: inline-block;
59
- transition: all .3s;
59
+ transition: all 0.3s;
60
60
  height: 100%;
61
61
 
62
62
  &.dark {
63
- color: #fff;
63
+ color: #fff;
64
64
 
65
- &:hover {
66
- color: #333;
67
- }
65
+ &:hover {
66
+ color: #333;
67
+ }
68
68
  }
69
- }
69
+ }
70
70
 
71
- .xgui-layout-action:hover {
71
+ .dlt-layout-action:hover {
72
72
  background: #e6f7ff;
73
- }
73
+ }
74
74
 
75
- .xgui-layout-sider {
75
+ .dlt-layout-sider {
76
76
  .ant-layout-sider-children {
77
- position: relative;
77
+ position: relative;
78
78
  }
79
- }
79
+ }
80
80
 
81
- .xgui-sider-btn-fixed {
81
+ .dlt-sider-btn-fixed {
82
82
  position: absolute;
83
83
  right: -12px;
84
84
  top: 28px;
@@ -87,10 +87,10 @@
87
87
  background-color: #fff;
88
88
  border: 1px solid #e8e8e8;
89
89
  border-radius: 50%;
90
- -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
91
- box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
92
- -webkit-transition: all .1s ease-in-out;
93
- transition: all .1s ease-in-out;
90
+ -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
91
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
92
+ -webkit-transition: all 0.1s ease-in-out;
93
+ transition: all 0.1s ease-in-out;
94
94
  font-size: 12px;
95
95
  text-align: center;
96
96
  line-height: 24px;
@@ -99,10 +99,9 @@
99
99
  justify-content: center;
100
100
  cursor: pointer;
101
101
  z-index: 9999;
102
- }
103
-
102
+ }
104
103
 
105
- .xgui-layout-menu-version {
104
+ .dlt-layout-menu-version {
106
105
  color: #fff;
107
106
  position: absolute;
108
107
  bottom: 0;
@@ -110,9 +109,9 @@
110
109
  margin-left: 48px;
111
110
  width: 100%;
112
111
  font-size: 12px;
113
- }
112
+ }
114
113
 
115
- .xgui-layout-header {
114
+ .dlt-layout-header {
116
115
  position: relative;
117
116
  width: 100%;
118
117
  height: @layout-header-height;
@@ -120,31 +119,31 @@
120
119
  transition: background 0.3s, width 0.2s;
121
120
 
122
121
  &.light {
123
- background-color: #fff;
122
+ background-color: #fff;
124
123
 
125
- .xgui-layout-topHeader-logoSpan {
126
- color: var(--primary-color);
124
+ .dlt-layout-topHeader-logoSpan {
125
+ color: var(--primary-color);
127
126
 
128
- &.topLight {
129
- color: var(--primary-color) !important;
130
- }
127
+ &.topLight {
128
+ color: var(--primary-color) !important;
131
129
  }
130
+ }
132
131
  }
133
132
 
134
133
  // 固定宽度默认1200px
135
134
  .fixedWidth {
136
- width: 1200px;
137
- margin: 0 auto;
135
+ width: 1200px;
136
+ margin: 0 auto;
138
137
  }
139
138
 
140
- &.xgui-layout-maxTop {
141
- background-color: var(--primary-color, '#397ef0');
142
- color: #fff;
139
+ &.dlt-layout-maxTop {
140
+ background-color: var(--primary-color, "#397ef0");
141
+ color: #fff;
143
142
  }
144
- }
143
+ }
145
144
 
146
- // topMenu样式
147
- .xgui-layout-topHeader {
145
+ // topMenu样式
146
+ .dlt-layout-topHeader {
148
147
  height: @layout-header-height;
149
148
  line-height: @layout-header-height;
150
149
  display: flex;
@@ -152,119 +151,119 @@
152
151
  justify-content: flex-start;
153
152
 
154
153
  .ant-menu-submenu.ant-menu-submenu-horizontal {
155
- height: 100%;
156
- line-height: @layout-header-height;
154
+ height: 100%;
155
+ line-height: @layout-header-height;
157
156
 
158
- .ant-menu-submenu-title {
159
- height: 100%;
160
- }
157
+ .ant-menu-submenu-title {
158
+ height: 100%;
159
+ }
161
160
  }
162
161
 
163
- .ant-menu-horizontal>.ant-menu-item,
164
- .ant-menu-horizontal>.ant-menu-submenu {
165
- height: 100%;
166
- line-height: @layout-header-height;
162
+ .ant-menu-horizontal > .ant-menu-item,
163
+ .ant-menu-horizontal > .ant-menu-submenu {
164
+ height: 100%;
165
+ line-height: @layout-header-height;
167
166
  }
168
167
 
169
- .xgui-layout-topHeader-logo {
170
- height: 64px;
171
- line-height: 64px;
172
- overflow: hidden;
173
- text-align: left;
174
- // float: left;
175
- padding-left: 12px;
176
- display: flex;
168
+ .dlt-layout-topHeader-logo {
169
+ height: 64px;
170
+ line-height: 64px;
171
+ overflow: hidden;
172
+ text-align: left;
173
+ // float: left;
174
+ padding-left: 12px;
175
+ display: flex;
177
176
  }
178
177
 
179
- .xgui-layout-topHeader-logoSpan {
180
- text-align: left;
181
- color: white;
182
- height: @layout-header-height;
183
- line-height: @layout-header-height;
184
- font-size: 20px;
185
- padding: 0 10px;
186
- font-family: Microsoft YaBai;
187
-
188
- &.light {
189
- color: var(--primary-color);
190
- }
178
+ .dlt-layout-topHeader-logoSpan {
179
+ text-align: left;
180
+ color: white;
181
+ height: @layout-header-height;
182
+ line-height: @layout-header-height;
183
+ font-size: 20px;
184
+ padding: 0 10px;
185
+ font-family: Microsoft YaBai;
186
+
187
+ &.light {
188
+ color: var(--primary-color);
189
+ }
191
190
  }
192
191
 
193
192
  &.mixmenu-topHeader {
194
- .xgui-layout-breadcrumb {
195
- // background: @layout-header-background;
196
- background-color: #fff;
197
- color: rgba(0, 0, 0, 0.45);
198
-
199
- .ant-breadcrumb {
200
- // color: #ffffff;
201
- color: rgba(0, 0, 0, 0.45);
202
- }
203
-
204
- .ant-breadcrumb>span:last-child {
205
- // color: #ffffff;
206
- color: rgba(0, 0, 0, 0.45);
207
- }
208
-
209
- .ant-breadcrumb-separator {
210
- // color: #ffffff;
211
- color: rgba(0, 0, 0, 0.45);
212
- }
213
- }
193
+ .dlt-layout-breadcrumb {
194
+ // background: @layout-header-background;
195
+ background-color: #fff;
196
+ color: rgba(0, 0, 0, 0.45);
214
197
 
215
- .xgui-layout-topHeader-logo {
216
- display: flex;
217
- align-items: center;
198
+ .ant-breadcrumb {
199
+ // color: #ffffff;
200
+ color: rgba(0, 0, 0, 0.45);
218
201
  }
219
202
 
220
- .xgui-layout-topHeader-logoSpan {
221
- color: #fff !important;
222
- font-weight: bolder;
223
- padding: 0;
203
+ .ant-breadcrumb > span:last-child {
204
+ // color: #ffffff;
205
+ color: rgba(0, 0, 0, 0.45);
224
206
  }
225
207
 
226
- .xgui-layout-topHeader-divider {
227
- width: 1px;
228
- height: 14px;
229
- opacity: 1;
230
- border: 1px solid #fafafa;
231
- margin: 0 14px;
208
+ .ant-breadcrumb-separator {
209
+ // color: #ffffff;
210
+ color: rgba(0, 0, 0, 0.45);
211
+ }
212
+ }
232
213
 
233
- &.topLight {
234
- border-color: var(--primary-color);
235
- }
214
+ .dlt-layout-topHeader-logo {
215
+ display: flex;
216
+ align-items: center;
217
+ }
218
+
219
+ .dlt-layout-topHeader-logoSpan {
220
+ color: #fff !important;
221
+ font-weight: bolder;
222
+ padding: 0;
223
+ }
224
+
225
+ .dlt-layout-topHeader-divider {
226
+ width: 1px;
227
+ height: 14px;
228
+ opacity: 1;
229
+ border: 1px solid #fafafa;
230
+ margin: 0 14px;
231
+
232
+ &.topLight {
233
+ border-color: var(--primary-color);
236
234
  }
235
+ }
237
236
  }
238
- }
237
+ }
239
238
 
240
- .xgui-custom-header {
239
+ .dlt-custom-header {
241
240
  display: flex;
242
241
  height: 100%;
243
- }
242
+ }
244
243
 
245
- .headerLeft {
244
+ .headerLeft {
246
245
  width: calc(~"100% - 140px");
247
- }
246
+ }
248
247
 
249
- .headerRight {
248
+ .headerRight {
250
249
  width: 140px;
251
- }
252
-
253
- .headerLeft-menu {
250
+ }
254
251
 
252
+ .headerLeft-menu {
255
253
  width: calc(~"100% - 250px");
256
- }
254
+ }
257
255
 
258
- //fixHeader
259
- .xgui-layout-fixedHeader {
256
+ //fixHeader
257
+ .dlt-layout-fixedHeader {
260
258
  position: fixed;
261
259
  top: 0;
262
260
  right: 0;
263
261
  z-index: 1000;
264
262
  width: 100%;
265
263
  transition: width 0.2s;
266
- }
264
+ }
267
265
 
268
- .xgui-layout-fixHeader-content {
266
+ .dlt-layout-fixHeader-content {
269
267
  padding-top: @layout-header-height;
270
- }
268
+ }
269
+ }
@@ -1,117 +1,115 @@
1
- .xgui-login-container {
1
+ :global {
2
+ .dlt-login-container {
2
3
  min-height: 100%;
3
4
  background: url(./images/bg.jpg) no-repeat;
4
5
  background-size: cover;
5
6
  display: flex;
6
7
  flex-direction: column;
7
- }
8
+ }
8
9
 
9
- .xgui-login-content {
10
+ .dlt-login-content {
10
11
  padding: 210px 0 24px;
11
12
  // flex: 1;
12
- }
13
+ }
13
14
 
14
- .xgui-login-main {
15
+ .dlt-login-main {
15
16
  width: 368px;
16
17
  margin: 0 auto;
17
- }
18
+ }
18
19
 
19
- .xgui-login-submit {
20
+ .dlt-login-submit {
20
21
  width: 100%;
21
22
  margin-top: 24px;
22
- }
23
-
23
+ }
24
24
 
25
- .xgui-login-getCaptcha {
25
+ .dlt-login-getCaptcha {
26
26
  display: block;
27
27
  width: 100%;
28
- }
29
-
28
+ }
30
29
 
31
- @itemHeight: 48px;
30
+ @itemHeight: 48px;
32
31
 
33
- /** 新版学工UI样式 **/
34
- .xgui-newLogin {
32
+ /** 新版学工UI样式 **/
33
+ .dlt-newLogin {
35
34
  height: 100vh;
36
35
  background-repeat: no-repeat;
37
36
  background-size: cover;
38
37
  display: flex;
39
38
  flex-direction: column;
40
39
  position: relative;
41
- }
40
+ }
42
41
 
43
- .xgui-newlogin-content {}
42
+ .dlt-newlogin-content {
43
+ }
44
44
 
45
- .xgui-loginMain {
45
+ .dlt-loginMain {
46
46
  position: relative;
47
47
  display: flex;
48
48
  align-items: center;
49
49
  justify-content: space-around;
50
50
  margin-top: 60px;
51
51
  z-index: 2;
52
- }
52
+ }
53
53
 
54
- .xgui-login-loginWarp {
54
+ .dlt-login-loginWarp {
55
55
  width: 500px;
56
56
  // height: 600px;
57
- background: #FFFFFF;
57
+ background: #ffffff;
58
58
  opacity: 0.9;
59
59
  border-radius: 8px;
60
60
  padding: 20px 69px 40px 69px;
61
61
 
62
62
  .ant-input {
63
- height: @itemHeight;
63
+ height: @itemHeight;
64
64
  }
65
65
 
66
66
  .verify-bar .icon {
67
- width: 64px !important;
68
- height: @itemHeight !important;
69
- background-size: 50px 46px !important;
67
+ width: 64px !important;
68
+ height: @itemHeight !important;
69
+ background-size: 50px 46px !important;
70
70
  }
71
71
 
72
72
  .verify-tips {
73
- font-size: 16px !important;
73
+ font-size: 16px !important;
74
74
  }
75
75
 
76
76
  .verify-success-tips {
77
- color: #11D1A3 !important;
78
- font-size: 16px !important;
77
+ color: #11d1a3 !important;
78
+ font-size: 16px !important;
79
79
 
80
- >span {
81
- display: none !important;
82
- }
80
+ > span {
81
+ display: none !important;
82
+ }
83
83
  }
84
84
 
85
85
  .welcomeMsg {
86
- font-size: 36px;
87
- font-family: Source Han Sans CN;
88
- font-weight: bold;
89
- color: #000000;
90
- opacity: 0.85;
91
- margin-bottom: 46px;
86
+ font-size: 36px;
87
+ font-family: Source Han Sans CN;
88
+ font-weight: bold;
89
+ color: #000000;
90
+ opacity: 0.85;
91
+ margin-bottom: 46px;
92
92
  }
93
93
 
94
94
  .captchaItem {
95
- .captcha_input {
96
- width: 58%;
97
- float: left;
98
- }
99
-
100
- .captcha_value {
101
- width: 40%;
102
- height: 100%;
103
- margin-left: 2%;
104
- border-radius: 6px;
105
- overflow: hidden;
106
- border: 1px solid #d9d9d9;
107
- }
95
+ .captcha_input {
96
+ width: 58%;
97
+ float: left;
98
+ }
99
+
100
+ .captcha_value {
101
+ width: 40%;
102
+ height: 100%;
103
+ margin-left: 2%;
104
+ border-radius: 6px;
105
+ overflow: hidden;
106
+ border: 1px solid #d9d9d9;
107
+ }
108
108
  }
109
+ }
109
110
 
110
-
111
- }
112
-
113
- // 登录页标题
114
- .xgui-login-title {
111
+ // 登录页标题
112
+ .dlt-login-title {
115
113
  text-align: left;
116
114
  display: flex;
117
115
  align-items: center;
@@ -119,52 +117,52 @@
119
117
 
120
118
  // padding-left: 195px;
121
119
  .logo {
122
- max-width: 300px;
123
- max-height: 100px;
120
+ max-width: 300px;
121
+ max-height: 100px;
124
122
  }
125
123
 
126
124
  .split {
127
- width: 1px;
128
- height: 38px;
129
- background: #FFFFFF;
130
- opacity: 0.8;
131
- margin: 0 21px;
125
+ width: 1px;
126
+ height: 38px;
127
+ background: #ffffff;
128
+ opacity: 0.8;
129
+ margin: 0 21px;
132
130
  }
133
131
 
134
132
  .titleContnet {
135
- color: #fff;
136
- font-size: 36px;
137
- font-family: Source Han Sans CN;
138
- font-weight: bold;
139
- color: #FFFFFF;
140
- line-height: 26px;
133
+ color: #fff;
134
+ font-size: 36px;
135
+ font-family: Source Han Sans CN;
136
+ font-weight: bold;
137
+ color: #ffffff;
138
+ line-height: 26px;
141
139
  }
142
- }
140
+ }
143
141
 
144
- .xgui-login-slogan {
142
+ .dlt-login-slogan {
145
143
  color: #fff;
146
144
 
147
145
  .sloganTitle {
148
- font-size: 54px;
149
- font-family: Source Han Sans CN;
150
- font-weight: bold;
151
- color: #FFFFFF;
146
+ font-size: 54px;
147
+ font-family: Source Han Sans CN;
148
+ font-weight: bold;
149
+ color: #ffffff;
152
150
  }
153
151
 
154
152
  .slogan {
155
- font-size: 32px;
156
- font-family: Source Han Sans CN;
157
- font-weight: 400;
158
- color: #FFFFFF;
153
+ font-size: 32px;
154
+ font-family: Source Han Sans CN;
155
+ font-weight: 400;
156
+ color: #ffffff;
159
157
  }
160
- }
158
+ }
161
159
 
162
- .xgui-nwelogin-submit {
160
+ .dlt-nwelogin-submit {
163
161
  width: 100%;
164
162
  height: @itemHeight;
165
- }
163
+ }
166
164
 
167
- .xgui-nwelogin-recomment {
165
+ .dlt-nwelogin-recomment {
168
166
  margin-top: 24px;
169
167
  display: flex;
170
168
  align-items: center;
@@ -174,24 +172,25 @@
174
172
  color: #666666;
175
173
 
176
174
  span {
177
- margin-right: 10px;
175
+ margin-right: 10px;
178
176
  }
179
177
 
180
178
  img {
181
- margin-right: 10px;
179
+ margin-right: 10px;
182
180
  }
183
- }
181
+ }
184
182
 
185
- .xgui-nwelogin-copyright {
183
+ .dlt-nwelogin-copyright {
186
184
  position: fixed;
187
185
  bottom: 26px;
188
186
  font-size: 14px;
189
187
  font-family: Source Han Sans CN;
190
188
  font-weight: 400;
191
- color: #FFFFFF;
189
+ color: #ffffff;
192
190
  line-height: 26px;
193
191
  opacity: 0.8;
194
192
  padding-top: 10px;
195
193
  width: 100%;
196
194
  text-align: center;
197
- }
195
+ }
196
+ }
@@ -466,7 +466,7 @@ var HqImage = function (_React$Component) {
466
466
  _react2.default.createElement(_icon2.default, { type: "plus" }),
467
467
  _react2.default.createElement(
468
468
  "div",
469
- { className: "xgui-picturewall-ant-upload-text" },
469
+ { className: "dlt-picturewall-ant-upload-text" },
470
470
  "Upload"
471
471
  )
472
472
  );
@@ -35,7 +35,7 @@ var _react = require("react");
35
35
 
36
36
  var _react2 = _interopRequireDefault(_react);
37
37
 
38
- var _NHSelector = require("../../NHSelector");
38
+ var _NHSelector = require("../NHSelector");
39
39
 
40
40
  var _NHSelector2 = _interopRequireDefault(_NHSelector);
41
41
 
@@ -35,7 +35,7 @@ var _react = require("react");
35
35
 
36
36
  var _react2 = _interopRequireDefault(_react);
37
37
 
38
- var _NHSelector = require("../../NHSelector");
38
+ var _NHSelector = require("../NHSelector");
39
39
 
40
40
  var _NHSelector2 = _interopRequireDefault(_NHSelector);
41
41