@dt-frames/ui 1.0.51 → 1.0.53

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 (32) hide show
  1. package/es/components/table/src/index.d.ts +3 -12
  2. package/es/components/table/src/props.d.ts +1 -4
  3. package/es/index.js +2 -7
  4. package/es/theme/header/components/user-info.d.ts +4 -0
  5. package/package.json +1 -1
  6. package/es/components/upload/index.d.ts +0 -2
  7. package/es/components/upload/index.less +0 -37
  8. package/es/components/upload/src/helper.d.ts +0 -5
  9. package/es/components/upload/src/props.d.ts +0 -47
  10. package/es/components/upload/src/upload.d.ts +0 -1794
  11. package/es/style/assets/style/index.less +0 -10
  12. package/es/style/assets/style/reset.less +0 -17
  13. package/es/style/components/container/index.less +0 -85
  14. package/es/style/components/forms/index.less +0 -107
  15. package/es/style/components/icons/index.less +0 -108
  16. package/es/style/components/iframe/index.less +0 -3
  17. package/es/style/components/iframe/src/index.less +0 -3
  18. package/es/style/components/modal/index.less +0 -60
  19. package/es/style/components/table/index.less +0 -217
  20. package/es/style/components/tree/index.less +0 -53
  21. package/es/style/theme/footer/index.less +0 -16
  22. package/es/style/theme/header/index.less +0 -451
  23. package/es/style/theme/header/set-theme.less +0 -68
  24. package/es/style/theme/sider/index.less +0 -212
  25. package/es/style/theme/tabs/index.less +0 -165
  26. package/es/style/theme/theme.less +0 -73
  27. package/es/style/theme/transition.less +0 -105
  28. package/es/theme/content/index.d.ts +0 -44
  29. package/es/theme/header/components/menu-search.d.ts +0 -284
  30. package/es/theme/header/components/setting-theme.d.ts +0 -2604
  31. package/es/theme/tabs/components/TabRedo.d.ts +0 -64
  32. package/es/theme/tabs/index.d.ts +0 -1429
@@ -1,451 +0,0 @@
1
- @import './set-theme.less';
2
-
3
- @primary-color: #269ac1;
4
- @white: #fff;
5
- @error-color: #ED6F6F;
6
- @header-bg-color: #fff;
7
- @header-bg-dark-color: #3c4252;
8
-
9
- @header-height: 48px;
10
- @layout-header-fixed-z-index: 10;
11
- @header-light-bottom-border-color: #eee;
12
- @header-light-bg-hover-color: rgba(0,0,0,0.05);
13
- @text-color-base: #333;
14
- @header-dark-bg-hover-color: rgba(255,255,255,0.05);
15
- @multiple-tab-fixed-z-index: 1;
16
-
17
- .dt-header{
18
- display: flex;
19
- height: @header-height;
20
- padding: 0;
21
- line-height: @header-height;
22
- color: @white;
23
- align-items: center;
24
- justify-content: space-between;
25
-
26
- &--fixed {
27
- position: fixed;
28
- top: 0;
29
- left: 0;
30
- z-index: @layout-header-fixed-z-index;
31
- width: 100%;
32
- }
33
-
34
- &-logo {
35
- height: @header-height;
36
- min-width: 240px;
37
- padding: 0 10px;
38
- font-size: 14px;
39
- display: flex;
40
- align-items: center;
41
-
42
- img {
43
- width: @logo-width;
44
- height: @logo-width;
45
- margin-right: 10px;
46
- }
47
- }
48
-
49
- &-left {
50
- display: flex;
51
- height: 100%;
52
- align-items: center;
53
-
54
- .dt-header-trigger{
55
- display: flex;
56
- height: 100%;
57
- padding: 1px 15px 0 15px;
58
- cursor: pointer;
59
- align-items: center;
60
-
61
- .anticon {
62
- font-size: 16px;
63
- }
64
- }
65
- }
66
-
67
- &-menu {
68
- height: 100%;
69
- min-width: 0;
70
- flex: 1;
71
- align-items: center;
72
- }
73
-
74
- &-action {
75
- display: flex;
76
- min-width: 180px;
77
- align-items: center;
78
-
79
- &__item {
80
- display: flex !important;
81
- height: @header-height;
82
- padding: 0 2px;
83
- font-size: 1.2em;
84
- cursor: pointer;
85
- align-items: center;
86
-
87
- .ant-badge {
88
- height: @header-height;
89
- line-height: @header-height;
90
- }
91
-
92
- .ant-badge-dot {
93
- top: 10px;
94
- right: 2px;
95
- }
96
- }
97
-
98
- span[role='img'] {
99
- padding: 0 8px;
100
- }
101
-
102
- &>span{
103
- width: 40px;
104
- text-align: center;
105
- cursor: pointer;
106
- transition: all 0.25s;
107
- position: relative;
108
-
109
- .svg-icon{
110
- margin: 0 auto;
111
- height: 100% !important;
112
- }
113
- }
114
-
115
- .userInfo{
116
- padding: 0 10px;
117
- cursor: pointer;
118
- transition: all 0.25s;
119
- .name{
120
- padding-left: 10px;
121
- color: #333;
122
- }
123
- }
124
- }
125
-
126
- &--light{
127
- background-color: @header-bg-color !important;
128
- border-bottom: 1px solid @header-light-bottom-border-color;
129
- color: @text-color-base;
130
-
131
- .dt-header-logo {
132
- &:hover {
133
- background-color: @header-light-bg-hover-color;
134
- }
135
- }
136
-
137
- .dt-header-action {
138
- &>span, .userInfo{
139
- &:hover{
140
- background: rgba(0,0,0,0.05) !important;
141
- }
142
- }
143
- &__item {
144
- color: @text-color-base;
145
-
146
- .app-iconify {
147
- padding: 0 10px;
148
- font-size: 16px !important;
149
- }
150
-
151
- &:hover {
152
- background-color: @header-light-bg-hover-color;
153
- }
154
- }
155
-
156
- &-icon,
157
- span[role='img'] {
158
- color: @text-color-base;
159
- }
160
- }
161
- }
162
-
163
- &--dark {
164
- background-color: @header-bg-dark-color !important;
165
- .dt-header-logo {
166
- &:hover {
167
- background-color: @header-dark-bg-hover-color;
168
- }
169
- }
170
-
171
- .ant-menu-dark{
172
- background-color: @header-bg-dark-color;
173
- }
174
-
175
- .userInfo .name{
176
- color: @white;
177
- }
178
-
179
- .dt-icon, span{
180
- color: @white !important;
181
- align-items: center;
182
- }
183
-
184
- .dt-header-action {
185
-
186
- span i{
187
- color: @white !important;
188
- }
189
- &>span, .userInfo{
190
- &:hover{
191
- background: rgba(255,255,255,0.2) !important;
192
- }
193
- }
194
- }
195
- }
196
-
197
-
198
- .red-dot{
199
- width: 6px;
200
- height: 6px;
201
- display: block;
202
- border-radius: 3px;
203
- background: red;
204
- position: absolute;
205
- right: 4px;
206
- top: 10px;
207
- }
208
-
209
-
210
- }
211
-
212
- .brand-logo{
213
- width: 40px;
214
- height: 60px;
215
- margin-left: -7px;
216
- }
217
-
218
- .dt-multiple-header{
219
- transition: width 0.2s;
220
- flex: 0 0 auto;
221
-
222
- &--fixed {
223
- position: fixed;
224
- top: 0;
225
- z-index: @multiple-tab-fixed-z-index;
226
- width: 100%;
227
- }
228
-
229
- &--top-menu{
230
- .dt-logo.light{
231
- border-bottom: none;
232
- }
233
-
234
- .ant-menu-submenu::after{
235
- border: none !important;
236
- }
237
-
238
- .ant-menu-submenu-selected::after, .ant-menu-submenu:hover::after{
239
- content: ' ';
240
- width: calc(100% - 66px);
241
- height: 4px;
242
- background: @primary-color;
243
- bottom: 5px;
244
- left: 50%;
245
- margin-left: -16px;
246
- border-radius: 2px;
247
- border: none;
248
- }
249
- }
250
- }
251
-
252
- .ant-menu-horizontal, .app-top-menu-popup {
253
- .svg-icon{
254
- padding: 16px 0;
255
- margin-right: 10px;
256
- height: 48px !important;
257
- }
258
-
259
- .menu-icon{
260
- width: 26px;
261
- }
262
- }
263
-
264
- .nofify__popover{
265
- width: 300px;
266
- .ant-popover-inner-content{
267
- padding: 0;
268
-
269
- .ant-tabs-tab{
270
- margin: 0;
271
- width: 100px;
272
- text-align: center;
273
- }
274
-
275
- .ant-tabs-content{
276
- height: 300px;
277
- position: relative;
278
-
279
- .ant-tabs-tabpane{
280
- position: absolute;
281
- top: 100px;
282
- .ant-empty-description{
283
- color: #999;
284
- font-size: 13px;
285
- }
286
- }
287
- }
288
-
289
- .load-more{
290
- line-height: 40px;
291
- border-top: 1px solid @border-color-base;
292
- width: 100%;
293
- display: block;
294
- text-align: center;
295
- color: #666;
296
- &:hover{
297
- color: @primary-color;
298
- }
299
- }
300
- }
301
- }
302
-
303
-
304
- .user-info__popover{
305
- width: 120px;
306
- .ant-popover-inner-content{
307
- padding: 8px 0;
308
- .user-operate{
309
- li{
310
- display: flex;
311
- line-height: 30px;
312
- padding: 0 10px;
313
- cursor: pointer;
314
- margin-bottom: 3px;
315
- transition: all 0.3s;
316
- &>span{
317
- display: inline-block;
318
- width: 28px;
319
- padding-right: 10px;
320
- color: #444;
321
- }
322
- &.border-bottom{
323
- border-bottom: 1px solid @border-color-base;
324
- }
325
-
326
- &:last-of-type{
327
- margin-bottom: 0;
328
- }
329
-
330
- &:hover{
331
- background: #f6f6f6;
332
- }
333
- }
334
- }
335
- }
336
- }
337
-
338
- .lacale__popover{
339
- width: 120px;
340
- .ant-popover-inner-content{
341
- padding: 8px 0;
342
- .lang li{
343
- line-height: 30px;
344
- padding: 0 10px;
345
- cursor: pointer;
346
- margin-bottom: 3px;
347
- transition: all 0.3s;
348
- &>span{
349
- display: inline-block;
350
- vertical-align: middle;
351
- &:last-of-type{
352
- padding-left: 10px;
353
- }
354
- }
355
- &:hover{
356
- background: #f6f6f6;
357
- }
358
-
359
- &.active{
360
- background: #f6f6f6;
361
- color: @primary-color;
362
- }
363
- }
364
- }
365
- }
366
-
367
- .size__popover{
368
- width: 80px;
369
- }
370
-
371
-
372
-
373
- .dt-menu-search{
374
- padding: 0 10px;
375
- display: flex;
376
- .ant-input-search{
377
- border-radius: 16px;
378
- width: 180px;
379
- overflow: hidden;
380
- height: 30px;
381
- border: 1px solid rgba(0,0,0,0.2);
382
- input, button{
383
- border: none;
384
- height: 28px;
385
- line-height: 28px;
386
- outline: none;
387
- box-shadow: none;
388
- }
389
- }
390
-
391
- .ant-empty-image{
392
- height: 40px;
393
- svg{
394
- width: 100%;
395
- }
396
- }
397
- }
398
-
399
- .menu_search__popover {
400
- width: 200px;
401
- .ant-popover-inner-content{
402
- max-height: 400px;
403
- height: 200px;
404
- padding: 0;
405
- overflow-y: auto;
406
- p{
407
- line-height: 38px;
408
- background: #fff;
409
- cursor: pointer;
410
- padding: 0 20px;
411
- border-bottom: 1px dashed #f2f2f2;
412
- transition: all 0.2s;
413
- &:hover{
414
- background: #f2f2f2;
415
- }
416
- }
417
- > div{
418
- margin: 40px 0;
419
- }
420
- }
421
- }
422
-
423
- .dt-feature-item{
424
- display: flex;
425
- justify-content: space-between;
426
- margin-bottom: 20px;
427
-
428
- .select-item{
429
- width: 130px !important;
430
- }
431
- }
432
-
433
- .setting-theme-tips{
434
- border: 1px solid @primary-color;
435
- background-color: rgba(0,0,0,0.04);
436
- color: @primary-color;
437
- padding: 10px;
438
- font-size: 12px;
439
- border-radius: 4px;
440
- }
441
-
442
- .dt-setting-theme-footer{
443
- margin-top: 20px;
444
- .ant-btn{
445
- margin: 10px 0;
446
- }
447
- }
448
-
449
- .ant-modal-confirm-body .ant-modal-confirm-content {
450
- color: #909399;
451
- }
@@ -1,68 +0,0 @@
1
- @primary-color: #269ac1;
2
-
3
- .dt-menu-type__wrap{
4
- display: flex;
5
- flex-direction: row;
6
- justify-content: center;
7
-
8
- .dt-menu-type__item{
9
- padding: 12px;
10
- position: relative;
11
- width: 56px;
12
- height: 48px;
13
- margin-right: 16px;
14
- overflow: hidden;
15
- cursor: pointer;
16
- background-color: #f0f2f5;
17
- border-radius: 4px;
18
- box-shadow: 0 1px 2.5px #0000002e;
19
- .dt-sidebar-menu-type{
20
- &::before{
21
- position: absolute;
22
- content: "";
23
- top: 0;
24
- left: 0;
25
- z-index: 1;
26
- width: 33%;
27
- height: 100%;
28
- background-color: #273352;
29
- }
30
- &::after{
31
- position: absolute;
32
- content: "";
33
- top: 0;
34
- left: 0;
35
- width: 100%;
36
- height: 25%;
37
- background-color: #fff;
38
- }
39
- }
40
- &:hover{
41
- border: 2px solid @primary-color;
42
- }
43
- }
44
-
45
- .dt-menu-type__item--top-menu .dt-sidebar-menu-type{
46
- &::before{
47
- width: 0;
48
- }
49
- &::after{
50
- background-color: #273352;
51
- }
52
- }
53
-
54
- .dt-menu-type__item--mix .dt-sidebar-menu-type{
55
- &::before{
56
- top: 25%;
57
- height: 75%;
58
- background-color: #fff;
59
- }
60
- &::after{
61
- background-color: #273352;
62
- }
63
- }
64
-
65
- .dt-menu-type__item--active{
66
- border: 2px solid @primary-color;
67
- }
68
- }
@@ -1,212 +0,0 @@
1
- @content-bg: #f4f7f9;
2
- @header-height: 48px;
3
- @logo-width: 32px;
4
- @border-color-base: #d9d9d9;
5
- @side-drag-z-index: 2000;
6
- @menu-bg-color: #001529;
7
- @menu-sub-bg-color: #00061a;
8
- @menu-mix-bg-color: #fff;
9
- @menu-mix-sub-bg-color: #fff;
10
- @menu-mix-select-bg-color: #269ac112;
11
-
12
-
13
- .dt-theme-main {
14
- display: flex;
15
- width: 100%;
16
- height: 100%;
17
- background-color: @content-bg;
18
- flex-direction: column;
19
-
20
- > .ant-layout {
21
- min-height: 100%;
22
- }
23
-
24
- &-main {
25
- width: 100%;
26
- }
27
-
28
- }
29
-
30
- .dt-logo{
31
- height: @header-height;
32
- min-width: 240px;
33
- padding: 0 10px;
34
- font-size: 14px;
35
- display: flex;
36
- align-items: center;
37
-
38
- img {
39
- width: @logo-width;
40
- height: @logo-width;
41
- margin-right: 10px;
42
- }
43
-
44
- display: flex;
45
- align-items: center;
46
- padding-left: 10px;
47
- cursor: pointer;
48
- transition: all 0.2s ease;
49
- text-align: center;
50
-
51
- &.light {
52
- border-bottom: 1px solid @border-color-base;
53
- }
54
-
55
- &.light &__title {
56
- color: @primary-color;
57
- }
58
-
59
- &.dark &__title {
60
- color: @white;
61
- }
62
-
63
- &__title {
64
- font-size: 16px;
65
- font-weight: 700;
66
- transition: all 0.5s;
67
- line-height: normal;
68
- padding-left: 12px;
69
- }
70
- }
71
-
72
- .dt-sideBar{
73
- z-index: 2;
74
- overflow: hidden;
75
- background: @menu-bg-color;
76
-
77
- .ant-menu{
78
- background: @menu-bg-color;
79
-
80
- .ant-menu-sub{
81
- background: @menu-sub-bg-color;
82
- }
83
- }
84
-
85
- &--side{
86
- &>div{
87
- display: flex;
88
- flex-direction: column;
89
- .scrollbar{
90
- flex: 1;
91
- }
92
- }
93
- }
94
- }
95
-
96
- .dt-sideBar.dt-sideBar--fixed {
97
- position: fixed;
98
- top: 0;
99
- left: 0;
100
- height: 100%;
101
- }
102
-
103
- .dt-sideBar.dt-sideBar--mix {
104
- height: calc(100% - 48px);
105
- top: @header-height;
106
- background: @menu-mix-bg-color;
107
- border-right: 1px solid #f0f0f0;
108
-
109
- .ant-menu{
110
- background: @menu-mix-bg-color;
111
- border-right: none;
112
- .ant-menu-sub{
113
- background: @menu-mix-sub-bg-color;
114
- }
115
- .ant-menu-item-selected{
116
- background: @menu-mix-select-bg-color;
117
- }
118
- }
119
-
120
- .ant-layout-sider-trigger{
121
- background: @menu-mix-bg-color;
122
- border-right: 1px solid #f0f0f0;
123
- border-top: 1px solid #f0f0f0;
124
- }
125
- }
126
-
127
- .ant-layout-sider-dark, .ant-menu-dark {
128
- .menu-icon{
129
- color: rgba(255,255,255,0.65) !important;
130
- padding: 12px 0;
131
- margin-right: 12px;
132
- height: 40px !important;
133
- width: 28px;
134
- flex: 0 0 28px;
135
- text-align: center;
136
- }
137
-
138
- .dt-icon{
139
- color: rgba(255,255,255,0.65) !important;
140
- line-height: 16px;
141
- height: 16px;
142
- }
143
-
144
- .ant-menu-item-selected > span > span > span, .ant-menu-submenu-selected > div > span > span > span {
145
- &>.dt-icon {
146
- color: #fff !important;
147
- }
148
- }
149
- .ant-menu-item-active > span > span > span, .ant-menu-submenu-active > div > span > span > span{
150
- &>.dt-icon {
151
- color: #fff !important;
152
- }
153
- }
154
-
155
- .ant-menu-item {
156
- height: 48px !important;
157
- line-height: 48px !important;
158
- margin: 0 !important;
159
-
160
- .menu-icon{
161
- height: 48px !important;
162
- padding: 16px 0;
163
- text-align: center;
164
- }
165
-
166
- }
167
-
168
- .ant-menu-submenu-selected{
169
- &>div .svg-icon use{
170
- fill: #fff !important;
171
- }
172
- }
173
- }
174
-
175
- .ant-menu-inline-collapsed{
176
- .dt-menu-item{
177
- overflow: hidden;
178
- }
179
- }
180
-
181
- .dt-menu-item.small {
182
- font-size: 13px;
183
- }
184
-
185
- .ant-menu.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title,
186
- .ant-menu.ant-menu-inline-collapsed > .ant-menu-item{
187
- padding: 0 calc(50% - 28px / 2);
188
- }
189
-
190
- .dt-basic-menu-item-content-flex {
191
- display: flex;
192
- }
193
-
194
- .dt-darg-bar{
195
- position: fixed;
196
- top: 0;
197
- z-index: @side-drag-z-index;
198
- width: 2px;
199
- height: 100%;
200
- cursor: col-resize;
201
- border-top: none;
202
- border-bottom: none;
203
-
204
- &--hide {
205
- display: none;
206
- }
207
-
208
- &:hover {
209
- background-color: @primary-color;
210
- box-shadow: 0 0 4px 0 rgb(28 36 56 / 15%);
211
- }
212
- }