@aloudata/aloudata-design 0.2.0-beta.5 → 0.2.0-beta.6

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 (139) hide show
  1. package/es/Button/index.d.ts +0 -1
  2. package/es/Button/index.js +0 -1
  3. package/es/Button/style/index.js +1 -1
  4. package/es/Button/style/index.less +255 -0
  5. package/es/Dropdown/Button.d.ts +0 -1
  6. package/es/Dropdown/Button.js +0 -1
  7. package/es/Dropdown/index.d.ts +0 -1
  8. package/es/Dropdown/index.js +0 -1
  9. package/es/Dropdown/style/index.js +1 -1
  10. package/es/Dropdown/style/index.less +40 -0
  11. package/es/Empty/index.d.ts +0 -1
  12. package/es/Empty/index.js +0 -1
  13. package/es/Empty/style/index.js +1 -1
  14. package/es/Empty/style/index.less +23 -0
  15. package/es/Icon/index.less +32 -0
  16. package/es/Input/index.d.ts +0 -1
  17. package/es/Input/index.js +1 -2
  18. package/es/Input/style/index.js +1 -1
  19. package/es/Input/style/index.less +65 -0
  20. package/es/Menu/Divider.d.ts +0 -1
  21. package/es/Menu/Divider.js +0 -1
  22. package/es/Menu/MenuItem.d.ts +0 -1
  23. package/es/Menu/MenuItem.js +0 -1
  24. package/es/Menu/SubMenu.d.ts +0 -1
  25. package/es/Menu/SubMenu.js +0 -1
  26. package/es/Menu/index.d.ts +0 -1
  27. package/es/Menu/index.js +0 -1
  28. package/es/Menu/style/index.js +1 -1
  29. package/es/Menu/style/index.less +37 -0
  30. package/es/Navigator/index.d.ts +0 -1
  31. package/es/Navigator/index.js +0 -1
  32. package/es/Navigator/style/index.js +1 -1
  33. package/es/Navigator/style/index.less +228 -0
  34. package/es/Select/Selector/index.js +1 -1
  35. package/es/Select/index.d.ts +0 -1
  36. package/es/Select/index.js +0 -1
  37. package/es/Select/style/index.js +1 -1
  38. package/es/Select/style/index.less +532 -0
  39. package/es/Table/index.d.ts +0 -1
  40. package/es/Table/index.js +0 -1
  41. package/es/Table/style/index.js +1 -1
  42. package/es/Table/style/index.less +141 -0
  43. package/es/Tabs/index.d.ts +0 -1
  44. package/es/Tabs/index.js +0 -1
  45. package/es/Tabs/style/index.js +1 -1
  46. package/es/Tabs/style/index.less +61 -0
  47. package/es/Tooltip/index.d.ts +0 -1
  48. package/es/Tooltip/index.js +0 -1
  49. package/es/Tooltip/style/index.js +1 -1
  50. package/es/Tooltip/style/index.less +14 -0
  51. package/es/style/index.js +1 -1
  52. package/es/style/index.less +3 -0
  53. package/es/style/mixins/{index.css → index.less} +0 -0
  54. package/es/style/themes/default/index.less +36 -0
  55. package/es/style/themes/default/themeColor.module.less +259 -0
  56. package/lib/Button/index.d.ts +0 -1
  57. package/lib/Button/index.js +0 -2
  58. package/lib/Button/style/index.js +1 -1
  59. package/lib/Button/style/index.less +255 -0
  60. package/lib/Dropdown/Button.d.ts +0 -1
  61. package/lib/Dropdown/Button.js +0 -2
  62. package/lib/Dropdown/index.d.ts +0 -1
  63. package/lib/Dropdown/index.js +0 -2
  64. package/lib/Dropdown/style/index.js +1 -1
  65. package/lib/Dropdown/style/index.less +40 -0
  66. package/lib/Empty/index.d.ts +0 -1
  67. package/lib/Empty/index.js +0 -2
  68. package/lib/Empty/style/index.js +1 -1
  69. package/lib/Empty/style/index.less +23 -0
  70. package/lib/Icon/index.less +32 -0
  71. package/lib/Input/index.d.ts +0 -1
  72. package/lib/Input/index.js +0 -2
  73. package/lib/Input/style/index.js +1 -1
  74. package/lib/Input/style/index.less +65 -0
  75. package/lib/Menu/Divider.d.ts +0 -1
  76. package/lib/Menu/Divider.js +0 -2
  77. package/lib/Menu/MenuItem.d.ts +0 -1
  78. package/lib/Menu/MenuItem.js +0 -2
  79. package/lib/Menu/SubMenu.d.ts +0 -1
  80. package/lib/Menu/SubMenu.js +0 -2
  81. package/lib/Menu/index.d.ts +0 -1
  82. package/lib/Menu/index.js +0 -2
  83. package/lib/Menu/style/index.js +1 -1
  84. package/lib/Menu/style/index.less +37 -0
  85. package/lib/Navigator/index.d.ts +0 -1
  86. package/lib/Navigator/index.js +0 -2
  87. package/lib/Navigator/style/index.js +1 -1
  88. package/lib/Navigator/style/index.less +228 -0
  89. package/lib/Select/Selector/index.js +1 -1
  90. package/lib/Select/index.d.ts +0 -1
  91. package/lib/Select/index.js +0 -2
  92. package/lib/Select/style/index.js +1 -1
  93. package/lib/Select/style/index.less +532 -0
  94. package/lib/Table/index.d.ts +0 -1
  95. package/lib/Table/index.js +0 -2
  96. package/lib/Table/style/index.js +1 -1
  97. package/lib/Table/style/index.less +141 -0
  98. package/lib/Tabs/index.d.ts +0 -1
  99. package/lib/Tabs/index.js +0 -2
  100. package/lib/Tabs/style/index.js +1 -1
  101. package/lib/Tabs/style/index.less +61 -0
  102. package/lib/Tooltip/index.d.ts +0 -1
  103. package/lib/Tooltip/index.js +0 -2
  104. package/lib/Tooltip/style/index.js +1 -1
  105. package/lib/Tooltip/style/index.less +14 -0
  106. package/lib/style/index.js +1 -1
  107. package/lib/style/index.less +3 -0
  108. package/lib/style/mixins/{index.css → index.less} +0 -0
  109. package/lib/style/themes/default/index.less +36 -0
  110. package/lib/style/themes/default/themeColor.module.less +259 -0
  111. package/package.json +3 -2
  112. package/es/Button/style/index.css +0 -374
  113. package/es/Dropdown/style/index.css +0 -178
  114. package/es/Empty/style/index.css +0 -162
  115. package/es/Icon/index.css +0 -8
  116. package/es/Input/style/index.css +0 -215
  117. package/es/Menu/style/index.css +0 -208
  118. package/es/Navigator/style/index.css +0 -328
  119. package/es/Select/style/index.css +0 -493
  120. package/es/Table/style/index.css +0 -248
  121. package/es/Tabs/style/index.css +0 -194
  122. package/es/Tooltip/style/index.css +0 -154
  123. package/es/style/index.css +0 -145
  124. package/es/style/themes/default/index.css +0 -145
  125. package/es/style/themes/default/themeColor.module.css +0 -145
  126. package/lib/Button/style/index.css +0 -374
  127. package/lib/Dropdown/style/index.css +0 -178
  128. package/lib/Empty/style/index.css +0 -162
  129. package/lib/Icon/index.css +0 -8
  130. package/lib/Input/style/index.css +0 -215
  131. package/lib/Menu/style/index.css +0 -208
  132. package/lib/Navigator/style/index.css +0 -328
  133. package/lib/Select/style/index.css +0 -493
  134. package/lib/Table/style/index.css +0 -248
  135. package/lib/Tabs/style/index.css +0 -194
  136. package/lib/Tooltip/style/index.css +0 -154
  137. package/lib/style/index.css +0 -145
  138. package/lib/style/themes/default/index.css +0 -145
  139. package/lib/style/themes/default/themeColor.module.css +0 -145
@@ -0,0 +1,532 @@
1
+ // @import './variables.less';
2
+ @import '../../style/index.less';
3
+
4
+ // @component-prefix:ant-;
5
+ .font(@style: normal, @weight: 400, @size: @size-font-base) {
6
+ font-weight: @weight;
7
+ font-size: @size;
8
+ font-family: @font-family-primary;
9
+ font-style: @style;
10
+ }
11
+
12
+ // The prefix to use for components classes
13
+ @component-prefix: ant;
14
+ @ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
15
+ // vertical margins
16
+ @margin-lg: 24px; // containers
17
+ @margin-md: 16px; // small containers and buttons
18
+ @margin-sm: 12px; // Form controls and items
19
+ @margin-xs: 8px; // small items
20
+ @margin-xss: 4px; // more small
21
+
22
+ @border-color-base: #a3adc8;
23
+ @border-color-split: hsv(0, 0, 94%); // split border inside a component
24
+ @border-color-inverse: #fff;
25
+ @border-width-base: 1px; // width of the border for a component
26
+ @border-style-base: solid; // style of a components border
27
+ @border-color-disabled: #dfe2ed;
28
+ @select-option-height-lg: @height-lg;
29
+ @select-option-line-height-lg:16px;
30
+ @select-option-height-base:@height-base;
31
+ @select-option-height-sm:@height-sm;
32
+ @line-height-base: 1.5715;
33
+ // @mode: compact;
34
+
35
+ // Base Text
36
+ // @text-color-base: #313e75;
37
+ // @text-color-disabled: #313e75;
38
+ @text-font-size-base: 14px;
39
+ // @text-lint-height-base: 22px;
40
+
41
+ //Background Color
42
+ // @background-color-base: #fff;
43
+ // @background-color-disabled: #f7f8fc;
44
+
45
+ @ald-prefix: ~'@{component-prefix}';
46
+ @select-prefix-cls-legacy: ~'@{component-prefix}-select-legacy';
47
+ @select-input-fontSize: @text-font-size-base;
48
+ @select-input-fontSize-sm: @text-font-size-base - 2px;
49
+ // @color-font-list-primary-normal: @palette-black-6; // $color-black-6
50
+ // @color-box-shadow-focused: #c0c4d3;
51
+ // @color-background-matchHeight: #ffcf3c;
52
+ .@{select-prefix-cls-legacy} {
53
+ position: relative;
54
+ display: inline-block;
55
+ min-width: 120px;
56
+ overflow: hidden;
57
+ border: 1px solid transparent;
58
+ border-radius: @border-radius-base;
59
+ padding: 0 36px 0 12px;
60
+ outline: none;
61
+ transition: all 0.2s;
62
+ cursor: pointer;
63
+ user-select: none;
64
+
65
+ &-selector-wrap {
66
+ display: flex;
67
+ align-items: center;
68
+ }
69
+
70
+ &-selector {
71
+ box-sizing: border-box;
72
+ width: 100%;
73
+ min-height: @height-base;
74
+ max-height: @height-base * 3.5px;
75
+ overflow-x: hidden;
76
+ overflow-y: auto;
77
+ border-radius: @border-radius-base;
78
+ transition: all 0.2s;
79
+
80
+ &::-webkit-scrollbar {
81
+ width: 2px;
82
+ background-color: transparent;
83
+ }
84
+
85
+ // &::-webkit-scrollbar-thumb {
86
+ // // background: @palette-gray-3;
87
+ // }
88
+ }
89
+
90
+ &-selector-label {
91
+ height: @height-base;
92
+ display: flex;
93
+ align-items: center;
94
+ line-height: @height-base;
95
+ font-size: @select-input-fontSize;
96
+ color: @NL30;
97
+ margin-right: @select-label-margin-right;
98
+ max-width: 50%;
99
+ overflow: hidden;
100
+ flex-shrink: 0;
101
+ }
102
+
103
+ &-values-wrapper {
104
+ position: relative;
105
+ width: 100%;
106
+ line-height: @height-base;
107
+ color: @NL0;
108
+ }
109
+
110
+ &-bordered {
111
+ border: 1px solid @NL90;
112
+ }
113
+
114
+ &-bordered:not(&-disabled):not(&-focused):hover {
115
+ border: 1px solid @B40;
116
+ }
117
+
118
+ // &:not(&-bordered):not(&-disabled):hover {
119
+ // // background-color: @palette-gray-2;
120
+ // // border: 1px solid transparent;
121
+ // }
122
+
123
+ &-focused:not(&-bordered):not(&-disabled) {
124
+ // background-color: @color-background-tree-normal;
125
+ // border: 1px solid @color-background-button-primary-hover;
126
+ border-radius: 4px;
127
+ }
128
+
129
+ &-focused {
130
+ // box-shadow: 0 0 6px 0 @color-box-shadow-focused;
131
+
132
+ .@{select-prefix-cls-legacy} {
133
+ &-item-all,
134
+ &-item {
135
+ opacity: 0.5;
136
+ }
137
+ }
138
+ }
139
+
140
+ &-arrow,
141
+ &-close {
142
+ position: absolute;
143
+ top: 0;
144
+ right: 12px;
145
+ display: flex;
146
+ align-items: center;
147
+ justify-content: center;
148
+ height: 100%;
149
+ // color: @color-text-table-empty;
150
+ // transition: all 0.2s;
151
+
152
+ &-focused {
153
+ transform: rotate(-180deg);
154
+ }
155
+ }
156
+
157
+ &-item {
158
+ max-width: 100%;
159
+ overflow: hidden;
160
+ font-size: @select-input-fontSize;
161
+ transition: margin 0.2s;
162
+
163
+ &-text {
164
+ overflow: hidden;
165
+ font-size: 14px;
166
+ line-height: 22px;
167
+ white-space: nowrap;
168
+ text-overflow: ellipsis;
169
+ color: @NL0;
170
+ }
171
+ }
172
+
173
+ &-tag-item {
174
+ max-width: 100%;
175
+ margin-right: 8px;
176
+ margin-bottom: 5px;
177
+ }
178
+
179
+ &-item-all {
180
+ display: inline-flex;
181
+ width: 100%;
182
+ font-size: @select-input-fontSize;
183
+ transition: margin 0.2s;
184
+ .@{select-prefix-cls-legacy}-overflow-item {
185
+ white-space: nowrap;
186
+
187
+ &:not(:first-child)::before {
188
+ content: ',';
189
+ }
190
+
191
+ &-rest {
192
+ &::before {
193
+ content: '' !important;
194
+ }
195
+ }
196
+ }
197
+
198
+ &-text {
199
+ overflow: hidden;
200
+ font-size: 14px;
201
+ line-height: 22px;
202
+ white-space: nowrap;
203
+ text-overflow: ellipsis;
204
+ }
205
+ }
206
+
207
+ &-placeholder {
208
+ position: absolute;
209
+ top: 0;
210
+ left: 0;
211
+ color: @select-placeholder-color;
212
+ }
213
+
214
+ &-input {
215
+ position: absolute;
216
+ top: 9px;
217
+ left: 0;
218
+ box-sizing: content-box;
219
+ padding: 0;
220
+ background: none;
221
+ border: none;
222
+ outline: none;
223
+ }
224
+
225
+ &-input-tags {
226
+ position: relative;
227
+ top: 0;
228
+ }
229
+
230
+ &-input-reference {
231
+ position: absolute;
232
+ top: 0;
233
+ left: 0;
234
+ z-index: -1;
235
+ visibility: hidden;
236
+ }
237
+
238
+ &-small {
239
+ border-radius: @border-radius-sm;
240
+ .@{select-prefix-cls-legacy} {
241
+ &-selector {
242
+ min-height: @height-sm;
243
+ max-height: @height-sm * 3.5px;
244
+ border-radius: @border-radius-sm;
245
+ }
246
+
247
+ &-selector-label {
248
+ height: @height-sm;
249
+ line-height: @height-sm;
250
+ font-size: @select-input-fontSize-sm;
251
+ color: @NL30;
252
+ }
253
+
254
+ &-values-wrapper {
255
+ line-height: @height-sm;
256
+ font-size: @select-input-fontSize-sm;
257
+ }
258
+
259
+ &-item-all {
260
+ font-size: @select-input-fontSize-sm;
261
+
262
+ &-text {
263
+ font-size: @select-input-fontSize-sm;
264
+ }
265
+ }
266
+
267
+ &-placeholder {
268
+ font-size: @select-input-fontSize-sm;
269
+ }
270
+
271
+ &-tag-item {
272
+ margin-bottom: 2px;
273
+ }
274
+
275
+ &-input {
276
+ top: 6px;
277
+ }
278
+
279
+ &-input-tags {
280
+ top: 0;
281
+ }
282
+ }
283
+ }
284
+
285
+ &-large {
286
+ .@{select-prefix-cls-legacy} {
287
+ &-selector {
288
+ min-height: @height-lg;
289
+ max-height: @height-lg * 3.5px;
290
+ }
291
+
292
+ &-selector-label {
293
+ height: @height-lg;
294
+ line-height: @height-lg;
295
+ font-size: @select-input-fontSize;
296
+ }
297
+
298
+ &-values-wrapper {
299
+ line-height: @height-lg;
300
+ }
301
+
302
+ &-tag-item {
303
+ margin-bottom: 7px;
304
+ }
305
+
306
+ &-input {
307
+ top: 11px;
308
+ }
309
+
310
+ &-input-tags {
311
+ top: 0;
312
+ }
313
+ }
314
+ }
315
+
316
+ &-disabled {
317
+ color: @NL80;
318
+ text-shadow: none;
319
+ background: @NL95;
320
+ cursor: not-allowed !important;
321
+ .@{select-prefix-cls-legacy} {
322
+ &-selector-label {
323
+ color: inherit;
324
+ }
325
+
326
+ &-values-wrapper {
327
+ color: inherit;
328
+ }
329
+
330
+ &-placeholder {
331
+ color: inherit;
332
+ }
333
+ }
334
+ }
335
+
336
+ &-bordered&-disabled {
337
+ border-color: @NL90;
338
+ }
339
+
340
+ // &-focused&-bordered {
341
+ // // border: 1px solid @color-border-input-active;
342
+ // }
343
+
344
+ // &-focused:not(&-bordered) {
345
+ // background-color: @palette-gray-2;
346
+ // }
347
+
348
+ &-single {
349
+ .@{select-prefix-cls-legacy} {
350
+ &-item {
351
+ display: inline-flex;
352
+ }
353
+ }
354
+ }
355
+
356
+ // rc-trigger
357
+ &-dropdown {
358
+ position: absolute;
359
+ background: @BG100;
360
+ border: 1px solid @NL90;
361
+ box-shadow: @shadow-actionsheet;
362
+ border-radius: @border-radius-base;
363
+ padding: 4px 0;
364
+ &.@{select-prefix-cls-legacy}-hidden {
365
+ display: none;
366
+ }
367
+ }
368
+
369
+ // &-search-highlight {
370
+ // // background-color: @color-background-matchHeight;
371
+ // }
372
+
373
+ &-not-found {
374
+ width: 100%;
375
+ // color: @color-text-table-empty;
376
+ text-align: center;
377
+
378
+ &-icon {
379
+ margin-bottom: 40px;
380
+ }
381
+ }
382
+
383
+ &-gap-10 {
384
+ width: 10px;
385
+ }
386
+
387
+ &-gap-10 + div {
388
+ overflow: hidden;
389
+ white-space: nowrap;
390
+ text-overflow: ellipsis;
391
+ }
392
+
393
+ &-button {
394
+ margin-right: 8px;
395
+ }
396
+
397
+ // &-button-active {
398
+ // color: @color-text-button-text-hover;
399
+ // background: @palette-gray-4;
400
+ // border-color: @palette-gray-4;
401
+ // }
402
+ }
403
+
404
+ .@{select-prefix-cls-legacy}-list {
405
+ box-sizing: border-box;
406
+ // min-width: 160px;
407
+ // padding: 16px 0 16px 8px;
408
+ outline: none;
409
+ }
410
+
411
+ .@{select-prefix-cls-legacy}-list-option {
412
+ position: relative;
413
+ display: flex;
414
+ align-items: center;
415
+ box-sizing: border-box;
416
+ max-width: 100%;
417
+ user-select: none;
418
+ // margin-top: 4px;
419
+ padding: 8px 12px 8px 36px;
420
+ overflow: hidden;
421
+ color: @NL0;
422
+ font-size: 12px;
423
+ height: @select-option-height-lg;
424
+ line-height: @select-option-line-height-lg;
425
+ white-space: nowrap;
426
+ text-overflow: ellipsis;
427
+ cursor: pointer;
428
+ transition: background-color 0.3s ease;
429
+
430
+ &-icon,
431
+ &-all-icon {
432
+ position: absolute;
433
+ top: 50%;
434
+ transform: translateY(-50%);
435
+ left: 12px;
436
+ color: @B40;
437
+
438
+ &-checkbox {
439
+ .@{component-prefix}-checkbox-inner {
440
+ border-color: @NL90;
441
+ // background-color: @BG100;
442
+ border-radius: 4px;
443
+
444
+ // &::after {
445
+ // // border-color: @B40;
446
+ // }
447
+ }
448
+ }
449
+ // .@{component-prefix}-checkbox-indeterminate {
450
+ // .@{component-prefix}-checkbox-inner {
451
+ // &::after {
452
+ // border-color: green;
453
+ // }
454
+ // }
455
+ // }
456
+ }
457
+
458
+ &-isHover {
459
+ background-color: @NL97;
460
+ }
461
+
462
+ &-nomargin {
463
+ margin-top: 0;
464
+ }
465
+
466
+ &-disabled {
467
+ color: @NL80;
468
+ text-shadow: none;
469
+ background-color: @white;
470
+ cursor: not-allowed !important;
471
+ }
472
+
473
+ &-isSelected,
474
+ &-all-isSelected {
475
+ color: @NL0;
476
+ font-weight: normal;
477
+ // background-color: @NL97;
478
+ }
479
+ }
480
+
481
+ .@{select-prefix-cls-legacy}-list-option-all {
482
+ position: relative;
483
+ display: flex;
484
+ align-items: center;
485
+ box-sizing: border-box;
486
+ max-width: 100%;
487
+ // margin-right: 8px;
488
+ padding: 8px 12px 8px 36px;
489
+ overflow: hidden;
490
+ color: @NL0;
491
+ font-size: 12px;
492
+ height: @select-option-height-lg;
493
+ line-height: @select-option-line-height-lg;
494
+ white-space: nowrap;
495
+ text-overflow: ellipsis;
496
+ cursor: pointer;
497
+ transition: background-color 0.3s ease;
498
+ user-select: none;
499
+
500
+ &:not(&-disabled):hover {
501
+ background-color: @NL97;
502
+ }
503
+ }
504
+
505
+ .@{select-prefix-cls-legacy}-footer-button-group {
506
+ display: flex;
507
+ align-items: center;
508
+ justify-content: flex-end;
509
+ box-sizing: border-box;
510
+ width: 100%;
511
+ height: 52px;
512
+ margin-top: 4px;
513
+ padding: 0 20px;
514
+ }
515
+
516
+ .@{select-prefix-cls-legacy}-footer-button-group:first-child button {
517
+ margin-right: 8px;
518
+ }
519
+
520
+ .@{select-prefix-cls-legacy}-list-search-bar {
521
+ box-sizing: border-box;
522
+ max-width: 100%;
523
+ padding: 0 20px 16px 12px;
524
+ }
525
+
526
+ .@{select-prefix-cls-legacy}-list-group {
527
+ padding: 6px 12px;
528
+ // color: @color-background-button-primary-hover;
529
+ font-weight: normal;
530
+ font-size: 12px;
531
+ line-height: 20px;
532
+ }
@@ -1,5 +1,4 @@
1
1
  import { ReactElement } from 'react';
2
- import './style';
3
2
  import { ITableProps } from './interface';
4
3
  declare function Table<T extends Record<string, unknown>>({ columns, data, total, renderHeaderLeft, renderHeaderRight, scrollY, onRowSelected, loadMore, hasNextPage, loading, sortable, defaultSort, resizeColumn, sortDirections: allSortDirections, onChange, }: ITableProps<T>): ReactElement;
5
4
  export default Table;
package/es/Table/index.js CHANGED
@@ -30,7 +30,6 @@ import usePrefixCls from '../_utils/hooks/usePrefixCls';
30
30
  import { FixedSizeList } from 'react-window';
31
31
  import InfiniteLoader from 'react-window-infinite-loader';
32
32
  import classnames from 'classnames';
33
- import './style';
34
33
  import Icon from '../Icon';
35
34
  import Empty from '../Empty';
36
35
  import _ from 'lodash';
@@ -1,2 +1,2 @@
1
1
  import '../../style';
2
- import "./index.css";
2
+ import './index.less';
@@ -0,0 +1,141 @@
1
+ @import '../../style/index.less';
2
+
3
+ @ald-prefix:ant;
4
+ @ald-iconfont-css-prefix:anticon;
5
+ @table-row-height:40px;
6
+ .@{ald-prefix}-block-table {
7
+ overflow: hidden;
8
+
9
+ &-thead {
10
+ .@{ald-prefix}-block-table-cell {
11
+ position: relative;
12
+ color: @NL50;
13
+
14
+ &-sorting {
15
+ color: @B40;
16
+ }
17
+ // border: 1px solid red;
18
+
19
+ .@{ald-prefix}-block-table-bar {
20
+ display: inline-block;
21
+ background: blue;
22
+ width: 1px;
23
+ height: 12px;
24
+ position: absolute;
25
+ top: 50%;
26
+ right: 0;
27
+ transform: translateY(-50%);
28
+ z-index: 1;
29
+ touch-action: none;
30
+ background-color: @NL95;
31
+ }
32
+
33
+ &:last-child {
34
+ .@{ald-prefix}-block-table-bar {
35
+ display: none;
36
+ }
37
+ }
38
+ }
39
+ }
40
+
41
+ &-tbody {
42
+ overflow: hidden;
43
+
44
+ &-scroll {
45
+ overflow-y: scroll;
46
+ overflow-y: overlay;
47
+ }
48
+ .@{ald-prefix}-block-table-row {
49
+ &:hover {
50
+ background-color: @NL97;
51
+ }
52
+
53
+ &-selected {
54
+ background-color: @BBG97;
55
+
56
+ &:hover {
57
+ background-color: @BBG97;
58
+ }
59
+ }
60
+
61
+ &:last-of-type {
62
+ .@{ald-prefix}-block-table-cell {
63
+ border-bottom: 1px solid transparent;
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ &-row {
70
+ max-width: 100%;
71
+ }
72
+
73
+ &-cell {
74
+ padding: 0 12px;
75
+ height: @table-row-height;
76
+ line-height: @table-row-height;
77
+ border-bottom: 1px solid @NL95;
78
+ text-align: left;
79
+ color: @NL0;
80
+ overflow: hidden;
81
+ white-space: nowrap;
82
+ text-overflow: ellipsis;
83
+ flex-grow: 1;
84
+ }
85
+
86
+ &-loading {
87
+ text-align: center;
88
+ line-height: @table-row-height;
89
+ color: @NL80;
90
+ }
91
+
92
+ &-header {
93
+ display: flex;
94
+ justify-content: space-between;
95
+ padding: 0 10px;
96
+ align-items: center;
97
+ margin-bottom: 24px;
98
+
99
+ &-left {
100
+ font-weight: 500;
101
+ font-size: 14px;
102
+ color: @NL0;
103
+ }
104
+
105
+ &-right {
106
+ display: flex;
107
+ height: 28px;
108
+ align-items: center;
109
+ font-size: 14px;
110
+ color: @NL0;
111
+ }
112
+ }
113
+
114
+ &-list {
115
+ overflow: overlay !important;
116
+ }
117
+
118
+ &-sortIcon {
119
+ margin-left: 4px;
120
+ margin-top: -2px;
121
+ }
122
+
123
+ &-column-resizable {
124
+ overflow: overlay;
125
+ .@{ald-prefix}-block-table {
126
+ &-cell {
127
+ flex: none;
128
+ }
129
+
130
+ &-thead {
131
+ &::-webkit-scrollbar {
132
+ display: none;
133
+ }
134
+ }
135
+
136
+ &-tbody {
137
+ overflow: initial;
138
+ }
139
+ }
140
+ }
141
+ }
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import './style';
3
2
  export declare type TabsSize = 'default' | 'large';
4
3
  export interface ITabsProps {
5
4
  /**
package/es/Tabs/index.js CHANGED
@@ -15,7 +15,6 @@ import AntdTabs from 'antd/lib/tabs';
15
15
  import Icon from '../Icon';
16
16
  import TabPane from './TabPane';
17
17
  import classNames from 'classnames';
18
- import './style';
19
18
  export default function Tabs(props) {
20
19
  var size = props.size,
21
20
  className = props.className,
@@ -1,2 +1,2 @@
1
1
  import '../../style';
2
- import "./index.css";
2
+ import './index.less';