@nutui/nutui-react-taro 3.0.0-beta.6 → 3.0.0-beta.7

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 (56) hide show
  1. package/README.md +39 -9
  2. package/dist/cjs/packages/address/style/style.css +56 -89
  3. package/dist/cjs/packages/animate/style/animate.scss +0 -3
  4. package/dist/cjs/packages/animate/style/style.css +0 -3
  5. package/dist/cjs/packages/cascader/style/style.css +49 -85
  6. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  7. package/dist/cjs/packages/countdown/countdown.js +1 -1
  8. package/dist/cjs/packages/countdown/style/countdown.scss +21 -2
  9. package/dist/cjs/packages/countdown/style/style.css +20 -2
  10. package/dist/cjs/packages/elevator/elevator.js +23 -16
  11. package/dist/cjs/packages/elevator/style/elevator.scss +7 -4
  12. package/dist/cjs/packages/elevator/style/style.css +7 -4
  13. package/dist/cjs/packages/inputnumber/inputnumber.js +0 -1
  14. package/dist/cjs/packages/inputnumber/style/inputnumber.scss +19 -16
  15. package/dist/cjs/packages/inputnumber/style/style.css +21 -19
  16. package/dist/cjs/packages/numberkeyboard/numberkeyboard.js +6 -5
  17. package/dist/cjs/packages/numberkeyboard/style/numberkeyboard.scss +10 -1
  18. package/dist/cjs/packages/numberkeyboard/style/style.css +12 -0
  19. package/dist/cjs/packages/popover/style/popover.scss +16 -11
  20. package/dist/cjs/packages/popover/style/style.css +14 -2
  21. package/dist/cjs/packages/tabs/style/style.css +49 -85
  22. package/dist/cjs/packages/tabs/style/tabs.scss +68 -106
  23. package/dist/cjs/packages/tabs/tabs.js +2 -4
  24. package/dist/cjs/packages/tour/style/style.css +14 -2
  25. package/dist/es/packages/address/style/style.css +56 -89
  26. package/dist/es/packages/animate/style/animate.scss +0 -3
  27. package/dist/es/packages/animate/style/style.css +0 -3
  28. package/dist/es/packages/cascader/style/style.css +49 -85
  29. package/dist/es/packages/configprovider/types.d.ts +1 -1
  30. package/dist/es/packages/countdown/countdown.js +1 -1
  31. package/dist/es/packages/countdown/style/countdown.scss +21 -2
  32. package/dist/es/packages/countdown/style/style.css +20 -2
  33. package/dist/es/packages/elevator/elevator.js +26 -19
  34. package/dist/es/packages/elevator/style/elevator.scss +7 -4
  35. package/dist/es/packages/elevator/style/style.css +7 -4
  36. package/dist/es/packages/inputnumber/inputnumber.js +1 -2
  37. package/dist/es/packages/inputnumber/style/inputnumber.scss +19 -16
  38. package/dist/es/packages/inputnumber/style/style.css +21 -19
  39. package/dist/es/packages/numberkeyboard/numberkeyboard.d.ts +10 -50
  40. package/dist/es/packages/numberkeyboard/numberkeyboard.js +6 -5
  41. package/dist/es/packages/numberkeyboard/style/numberkeyboard.scss +10 -1
  42. package/dist/es/packages/numberkeyboard/style/style.css +12 -0
  43. package/dist/es/packages/popover/style/popover.scss +16 -11
  44. package/dist/es/packages/popover/style/style.css +14 -2
  45. package/dist/es/packages/tabpane/tabpane.d.ts +3 -15
  46. package/dist/es/packages/tabs/style/style.css +49 -85
  47. package/dist/es/packages/tabs/style/tabs.scss +68 -106
  48. package/dist/es/packages/tabs/tabs.d.ts +12 -60
  49. package/dist/es/packages/tabs/tabs.js +2 -4
  50. package/dist/es/packages/tour/style/style.css +14 -2
  51. package/dist/nutui.react.umd.js +64 -75
  52. package/dist/style.css +1 -1
  53. package/dist/styles/theme-dark.scss +2 -0
  54. package/dist/styles/theme-default.scss +2 -0
  55. package/dist/styles/variables.scss +14 -13
  56. package/package.json +1 -1
@@ -4,12 +4,17 @@
4
4
  display: flex;
5
5
  }
6
6
 
7
+ .nut-tabs-horizontal {
8
+ flex-direction: column;
9
+ }
10
+
7
11
  .nut-tabs-titles {
8
12
  display: flex;
9
13
  box-sizing: border-box;
10
14
  height: $tabs-titles-height;
11
15
  user-select: none;
12
- overflow: hidden;
16
+ overflow-x: auto;
17
+ overflow-y: hidden;
13
18
  background: $tabs-titles-background-color;
14
19
  scrollbar-width: none;
15
20
 
@@ -21,7 +26,6 @@
21
26
 
22
27
  .nut-tabs-list {
23
28
  width: 100%;
24
- height: auto;
25
29
  display: flex;
26
30
  flex-shrink: 0;
27
31
  }
@@ -40,11 +44,6 @@
40
44
  }
41
45
  }
42
46
 
43
- &-scrollable {
44
- overflow-x: auto;
45
- overflow-y: hidden;
46
- }
47
-
48
47
  &-item {
49
48
  position: relative;
50
49
  display: flex;
@@ -60,13 +59,17 @@
60
59
  text-overflow: ellipsis;
61
60
  white-space: nowrap;
62
61
 
62
+ .nut-icon {
63
+ color: $tabs-titles-item-color;
64
+ }
65
+
63
66
  &-left,
64
67
  &-right {
65
68
  flex: none;
66
69
  }
67
70
 
68
71
  &-text {
69
- text-align: center;
72
+ color: $tabs-titles-item-color;
70
73
  }
71
74
 
72
75
  &-smile,
@@ -76,9 +79,9 @@
76
79
  width: 0;
77
80
  height: 0;
78
81
  content: ' ';
79
- bottom: $tabs-tab-line-bottom;
80
82
  left: 50%;
81
83
  transform: translate(-50%, 0);
84
+ bottom: $tabs-tab-line-bottom;
82
85
  border-radius: $tabs-tab-line-border-radius;
83
86
  opacity: $tabs-tab-line-opacity;
84
87
  overflow: hidden;
@@ -92,13 +95,18 @@
92
95
  font-size: 20px;
93
96
  width: 100%;
94
97
  height: 100%;
95
- color: $color-primary;
96
98
  }
97
99
  }
98
100
 
99
101
  &-active {
100
- color: $tabs-titles-item-active-color;
101
- font-weight: $tabs-titles-item-active-font-weight;
102
+ .nut-icon {
103
+ color: $tabs-titles-item-active-color;
104
+ }
105
+
106
+ .nut-tabs-titles-item-text {
107
+ color: $tabs-titles-item-active-color;
108
+ font-weight: $tabs-titles-item-active-font-weight;
109
+ }
102
110
 
103
111
  .nut-tabs-titles-item-line {
104
112
  overflow: unset;
@@ -112,18 +120,33 @@
112
120
  overflow: unset;
113
121
  width: 40px;
114
122
  height: 20px;
123
+
124
+ .nut-icon {
125
+ color: $tabs-titles-item-active-color;
126
+ }
115
127
  }
116
128
  }
117
129
 
118
130
  &-disabled {
119
131
  color: $color-text-disabled;
132
+ .nut-icon {
133
+ color: $color-text-disabled;
134
+ }
135
+ .nut-tabs-titles-item-text {
136
+ color: $color-text-disabled;
137
+ }
120
138
  }
121
139
  }
122
140
 
123
141
  &-simple {
124
- .nut-tabs-titles-item-active {
125
- color: $color-title;
126
- font-size: $tabs-titles-item-active-font-size;
142
+ .nut-tabs-titles-item {
143
+ &-active {
144
+ .nut-tabs-titles-item-text,
145
+ .nut-icon {
146
+ color: $color-title;
147
+ font-size: $tabs-titles-item-active-font-size;
148
+ }
149
+ }
127
150
  }
128
151
  }
129
152
 
@@ -133,7 +156,6 @@
133
156
 
134
157
  .nut-tabs-titles-item {
135
158
  padding: 0;
136
-
137
159
  &-active {
138
160
  font-weight: $font-weight-bold;
139
161
  background-color: $white;
@@ -157,11 +179,10 @@
157
179
  .nut-tabs-titles-item-active {
158
180
  .nut-tabs-titles-item-text {
159
181
  background: $color-default-light;
160
- color: $color-text;
182
+ color: $tabs-titles-item-active-color;
161
183
  border-radius: $tabs-tab-button-border-radius;
162
184
  font-weight: $font-weight-bold;
163
185
  background-color: $tabs-tab-button-active-background-color;
164
- color: $color-primary;
165
186
  border: $tabs-tab-button-active-border;
166
187
  }
167
188
  }
@@ -195,35 +216,7 @@
195
216
  }
196
217
  }
197
218
 
198
- [dir='rtl'] .nut-tabs-titles,
199
- .nut-rtl .nut-tabs-titles {
200
- &-item {
201
- &-smile,
202
- &-line {
203
- left: auto;
204
- right: 50%;
205
- transform: translate(50%, 0);
206
- }
207
- }
208
- &-divider {
209
- .nut-tabs-titles-item {
210
- &::after {
211
- right: auto;
212
- left: 0;
213
- }
214
- }
215
- }
216
- }
217
-
218
- .nut-tabs-horizontal {
219
- flex-direction: column;
220
- position: relative;
221
- }
222
-
223
219
  .nut-tabs-vertical {
224
- flex-direction: row;
225
- width: 100%;
226
-
227
220
  .nut-tabs-ellipsis {
228
221
  text-overflow: ellipsis;
229
222
  white-space: nowrap;
@@ -231,47 +224,26 @@
231
224
  }
232
225
 
233
226
  .nut-tabs-titles {
234
- box-sizing: border-box;
235
227
  flex-direction: column;
236
228
  height: 100%;
237
- padding: 0;
238
229
  width: $tabs-vertical-titles-width;
239
230
  flex-shrink: 0;
240
231
 
241
232
  .nut-tabs-list {
242
- width: 100%;
243
- display: flex;
244
233
  flex-direction: column;
245
- flex-shrink: 0;
246
- }
247
-
248
- &-line {
249
- .nut-tabs-titles-item {
250
- padding-left: 14px;
251
- }
252
234
  }
253
235
  }
254
236
 
255
- .nut-tabs-titles-scrollable {
256
- overflow-x: hidden;
257
- overflow-y: auto;
258
- }
259
-
260
237
  .nut-tabs-titles-item {
261
238
  height: $tabs-vertical-titles-item-height;
262
- margin: 0;
263
239
  flex: none;
264
240
 
265
241
  &-smile {
266
- width: 0;
267
- height: 0;
268
242
  overflow: hidden;
269
243
  transition: width 0.3s ease;
270
244
  }
271
245
 
272
246
  &-line {
273
- width: 0;
274
- height: 0;
275
247
  transform: translate(0, -50%);
276
248
  transition: height 0.3s ease;
277
249
 
@@ -293,8 +265,6 @@
293
265
  right: -12px;
294
266
  bottom: -2%;
295
267
  left: auto;
296
- width: 40px;
297
- height: 20px;
298
268
  transform: rotate(320deg);
299
269
  }
300
270
  }
@@ -303,15 +273,13 @@
303
273
  .nut-tabs-horizontal {
304
274
  .nut-tabs-titles {
305
275
  flex-direction: row;
306
- overflow-x: auto;
307
- overflow-y: hidden;
308
276
  height: $tabs-titles-height;
277
+ width: 100%;
278
+ padding: 0 !important;
309
279
 
310
280
  .nut-tabs-list {
311
- width: 100%;
312
- display: flex;
313
281
  flex-direction: row;
314
- flex-shrink: 0;
282
+ height: auto;
315
283
  }
316
284
  }
317
285
 
@@ -325,6 +293,9 @@
325
293
  .nut-tabs-titles-item-line {
326
294
  left: 50%;
327
295
  transform: translate(-50%, 0);
296
+ width: $tabs-tab-line-width;
297
+ height: $tabs-tab-line-height;
298
+ background: $tabs-tab-line-color;
328
299
  }
329
300
 
330
301
  .nut-tabs-titles-item-smile {
@@ -348,32 +319,32 @@
348
319
  height: 100%;
349
320
  }
350
321
  }
322
+ }
351
323
 
352
- .nut-tabs-horizontal {
353
- .nut-tabs-titles {
354
- display: flex;
355
- flex-direction: row;
356
- padding: 0 !important;
357
- width: 100%;
358
-
359
- .nut-tabs-titles-item {
360
- display: flex;
361
- align-items: center;
362
- justify-content: center;
363
- flex: 1 0 auto;
324
+ .nut-tabs-content {
325
+ display: flex;
326
+ box-sizing: border-box;
364
327
 
365
- &-active {
366
- color: $color-primary;
367
- font-weight: $tabs-titles-item-active-font-weight;
368
- font-size: $tabs-titles-item-active-font-size;
328
+ &-wrap {
329
+ overflow: hidden;
330
+ }
331
+ }
369
332
 
370
- .nut-tabs-titles-item-line {
371
- content: ' ';
372
- width: $tabs-tab-line-width;
373
- height: $tabs-tab-line-height;
374
- background: $tabs-tab-line-color;
375
- }
376
- }
333
+ [dir='rtl'] .nut-tabs-titles,
334
+ .nut-rtl .nut-tabs-titles {
335
+ &-item {
336
+ &-smile,
337
+ &-line {
338
+ left: auto;
339
+ right: 50%;
340
+ transform: translate(50%, 0);
341
+ }
342
+ }
343
+ &-divider {
344
+ .nut-tabs-titles-item {
345
+ &::after {
346
+ right: auto;
347
+ left: 0;
377
348
  }
378
349
  }
379
350
  }
@@ -421,12 +392,3 @@
421
392
  }
422
393
  }
423
394
  }
424
-
425
- .nut-tabs-content {
426
- display: flex;
427
- box-sizing: border-box;
428
-
429
- &-wrap {
430
- overflow: hidden;
431
- }
432
- }
@@ -63,7 +63,6 @@ var Tabs = function Tabs(props) {
63
63
  onChange: onChange
64
64
  }), 2), value = _usePropsValue[0], setValue = _usePropsValue[1];
65
65
  var titleItemsRef = (0, _react.useRef)([]);
66
- var navRef = (0, _react.useRef)(null);
67
66
  var getTitles = function getTitles() {
68
67
  var titles = [];
69
68
  _react.default.Children.forEach(children, function(child, idx) {
@@ -100,7 +99,7 @@ var Tabs = function Tabs(props) {
100
99
  ]);
101
100
  var classes = (0, _classnames.default)(classPrefix, "".concat(classPrefix, "-").concat(direction), className);
102
101
  var _obj;
103
- var classesTitle = (0, _classnames.default)("".concat(classPrefix, "-titles"), (_obj = {}, (0, _define_property._)(_obj, "".concat(classPrefix, "-titles-").concat(activeType), activeType), (0, _define_property._)(_obj, "".concat(classPrefix, "-titles-scrollable"), true), (0, _define_property._)(_obj, "".concat(classPrefix, "-titles-").concat(align), align), _obj));
102
+ var classesTitle = (0, _classnames.default)("".concat(classPrefix, "-titles"), (_obj = {}, (0, _define_property._)(_obj, "".concat(classPrefix, "-titles-").concat(activeType), activeType), (0, _define_property._)(_obj, "".concat(classPrefix, "-titles-").concat(align), align), _obj));
104
103
  var tabsActiveStyle = {
105
104
  color: activeType === 'smile' ? activeColor : '',
106
105
  background: activeType === 'line' ? activeColor : ''
@@ -215,8 +214,7 @@ var Tabs = function Tabs(props) {
215
214
  className: classesTitle,
216
215
  style: (0, _object_spread._)({}, tabStyle)
217
216
  }, /*#__PURE__*/ _react.default.createElement(_components.View, {
218
- className: "nut-tabs-list",
219
- ref: navRef
217
+ className: "nut-tabs-list"
220
218
  }, !!title && typeof title === 'function' ? title() : titles.current.map(function(item, index) {
221
219
  var _obj;
222
220
  return /*#__PURE__*/ _react.default.createElement(_components.View, {
@@ -493,6 +493,8 @@
493
493
  justify-content: center;
494
494
  padding: var(--nutui-popover-menu-item-padding, 8px);
495
495
  border-bottom: 1px solid var(--nutui-popover-divider-color, var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
496
+ max-width: var(--nutui-popover-menu-item-width, 160px);
497
+ word-wrap: break-word;
496
498
  }
497
499
  .nut-popover .nut-popover-content .nut-popover-menu-item:last-child {
498
500
  margin-bottom: 0px;
@@ -518,9 +520,10 @@
518
520
  font-size: 12px;
519
521
  }
520
522
  .nut-popover .nut-popover-content .nut-popover-menu-item-name {
521
- width: 100%;
523
+ width: calc(100% - 34px);
522
524
  word-break: keep-all;
523
525
  margin: 0 6px 0 4px;
526
+ flex: 1;
524
527
  }
525
528
  .nut-popover .nut-popover-content .nut-popover-menu-item-action-icon {
526
529
  display: flex;
@@ -591,9 +594,18 @@
591
594
  background: var(--nutui-popover-text-color, #1a1a1a);
592
595
  color: var(--nutui-popover-content-background-color, #ffffff);
593
596
  }
594
- .nut-popover-dark .nut-popover-arrow {
597
+ .nut-popover-dark .nut-popover-arrow-top {
598
+ border-top-color: var(--nutui-popover-text-color, #1a1a1a);
599
+ }
600
+ .nut-popover-dark .nut-popover-arrow-bottom {
595
601
  border-bottom-color: var(--nutui-popover-text-color, #1a1a1a);
596
602
  }
603
+ .nut-popover-dark .nut-popover-arrow-left {
604
+ border-left-color: var(--nutui-popover-text-color, #1a1a1a);
605
+ }
606
+ .nut-popover-dark .nut-popover-arrow-right {
607
+ border-right-color: var(--nutui-popover-text-color, #1a1a1a);
608
+ }
597
609
  .nut-popover-dark .nut-popover-content {
598
610
  background: var(--nutui-popover-text-color, #1a1a1a) !important;
599
611
  color: var(--nutui-popover-content-background-color, #ffffff) !important;
@@ -51,6 +51,8 @@
51
51
  color: var(--nutui-color-primary, #ff0f23);
52
52
  }
53
53
  .nut-elevator-list-fixed {
54
+ display: flex;
55
+ align-items: center;
54
56
  width: 100%;
55
57
  position: absolute;
56
58
  top: 0;
@@ -58,14 +60,15 @@
58
60
  z-index: 1;
59
61
  padding: var(--nutui-elevator-list-item-padding, 0 20px);
60
62
  height: var(--nutui-elevator-list-item-code-height, 35px);
61
- line-height: var(--nutui-elevator-list-item-code-line-height, 35px);
62
- font-size: var(--nutui-elevator-list-item-code-font-size, var(--nutui-font-size-base, 14px));
63
- color: var(--nutui-elevator-list-fixed-color, var(--nutui-color-primary, #ff0f23));
64
- font-weight: var(--nutui-elevator-list-item-code-font-weight, var(--nutui-font-weight-bold, 600));
65
63
  background-color: var(--nutui-elevator-list-fixed-bg-color, #ffffff);
66
64
  box-sizing: border-box;
67
65
  box-shadow: var(--nutui-elevator-list-fixed-box-shadow, 0 0 10px #eee);
68
66
  }
67
+ .nut-elevator-list-fixed-title {
68
+ font-size: var(--nutui-elevator-list-item-code-font-size, var(--nutui-font-size-base, 14px));
69
+ color: var(--nutui-elevator-list-fixed-color, var(--nutui-color-primary, #ff0f23));
70
+ font-weight: var(--nutui-elevator-list-item-code-font-weight, var(--nutui-font-weight-bold, 600));
71
+ }
69
72
  .nut-elevator-code-current {
70
73
  position: absolute;
71
74
  right: var(--nutui-elevator-list-item-code-current-right, 60px);
@@ -544,12 +547,17 @@
544
547
  display: flex;
545
548
  }
546
549
 
550
+ .nut-tabs-horizontal {
551
+ flex-direction: column;
552
+ }
553
+
547
554
  .nut-tabs-titles {
548
555
  display: flex;
549
556
  box-sizing: border-box;
550
557
  height: var(--nutui-tabs-titles-height, 44px);
551
558
  user-select: none;
552
- overflow: hidden;
559
+ overflow-x: auto;
560
+ overflow-y: hidden;
553
561
  background: var(--nutui-tabs-titles-background-color, var(--nutui-color-background, #f5f6fa));
554
562
  scrollbar-width: none;
555
563
  }
@@ -560,7 +568,6 @@
560
568
  }
561
569
  .nut-tabs-titles .nut-tabs-list {
562
570
  width: 100%;
563
- height: auto;
564
571
  display: flex;
565
572
  flex-shrink: 0;
566
573
  }
@@ -576,10 +583,6 @@
576
583
  .nut-tabs-titles-right .nut-tabs-titles-item {
577
584
  padding: 0 22px;
578
585
  }
579
- .nut-tabs-titles-scrollable {
580
- overflow-x: auto;
581
- overflow-y: hidden;
582
- }
583
586
  .nut-tabs-titles-item {
584
587
  position: relative;
585
588
  display: flex;
@@ -595,11 +598,14 @@
595
598
  text-overflow: ellipsis;
596
599
  white-space: nowrap;
597
600
  }
601
+ .nut-tabs-titles-item .nut-icon {
602
+ color: var(--nutui-tabs-titles-item-color, var(--nutui-color-title, #1a1a1a));
603
+ }
598
604
  .nut-tabs-titles-item-left, .nut-tabs-titles-item-right {
599
605
  flex: none;
600
606
  }
601
607
  .nut-tabs-titles-item-text {
602
- text-align: center;
608
+ color: var(--nutui-tabs-titles-item-color, var(--nutui-color-title, #1a1a1a));
603
609
  }
604
610
  .nut-tabs-titles-item-smile, .nut-tabs-titles-item-line {
605
611
  position: absolute;
@@ -607,9 +613,9 @@
607
613
  width: 0;
608
614
  height: 0;
609
615
  content: " ";
610
- bottom: var(--nutui-tabs-line-bottom, 15%);
611
616
  left: 50%;
612
617
  transform: translate(-50%, 0);
618
+ bottom: var(--nutui-tabs-line-bottom, 15%);
613
619
  border-radius: var(--nutui-tabs-line-border-radius, 2px);
614
620
  opacity: var(--nutui-tabs-tab-line-opacity, 1);
615
621
  overflow: hidden;
@@ -622,9 +628,11 @@
622
628
  font-size: 20px;
623
629
  width: 100%;
624
630
  height: 100%;
625
- color: var(--nutui-color-primary, #ff0f23);
626
631
  }
627
- .nut-tabs-titles-item-active {
632
+ .nut-tabs-titles-item-active .nut-icon {
633
+ color: var(--nutui-tabs-titles-item-active-color, var(--nutui-color-primary, #ff0f23));
634
+ }
635
+ .nut-tabs-titles-item-active .nut-tabs-titles-item-text {
628
636
  color: var(--nutui-tabs-titles-item-active-color, var(--nutui-color-primary, #ff0f23));
629
637
  font-weight: var(--nutui-tabs-titles-item-active-font-weight, var(--nutui-font-weight-bold, 600));
630
638
  }
@@ -640,10 +648,20 @@
640
648
  width: 40px;
641
649
  height: 20px;
642
650
  }
651
+ .nut-tabs-titles-item-active .nut-tabs-titles-item-smile .nut-icon {
652
+ color: var(--nutui-tabs-titles-item-active-color, var(--nutui-color-primary, #ff0f23));
653
+ }
643
654
  .nut-tabs-titles-item-disabled {
644
655
  color: var(--nutui-color-text-disabled, #c2c4cc);
645
656
  }
646
- .nut-tabs-titles-simple .nut-tabs-titles-item-active {
657
+ .nut-tabs-titles-item-disabled .nut-icon {
658
+ color: var(--nutui-color-text-disabled, #c2c4cc);
659
+ }
660
+ .nut-tabs-titles-item-disabled .nut-tabs-titles-item-text {
661
+ color: var(--nutui-color-text-disabled, #c2c4cc);
662
+ }
663
+ .nut-tabs-titles-simple .nut-tabs-titles-item-active .nut-tabs-titles-item-text,
664
+ .nut-tabs-titles-simple .nut-tabs-titles-item-active .nut-icon {
647
665
  color: var(--nutui-color-title, #1a1a1a);
648
666
  font-size: var(--nutui-tabs-titles-item-active-font-size, var(--nutui-font-size-l, 16px));
649
667
  }
@@ -672,11 +690,10 @@
672
690
  }
673
691
  .nut-tabs-titles-button .nut-tabs-titles-item-active .nut-tabs-titles-item-text {
674
692
  background: var(--nutui-color-default-light);
675
- color: var(--nutui-color-text, #505259);
693
+ color: var(--nutui-tabs-titles-item-active-color, var(--nutui-color-primary, #ff0f23));
676
694
  border-radius: var(--nutui-tabs-button-border-radius, 50px);
677
695
  font-weight: var(--nutui-font-weight-bold, 600);
678
696
  background-color: var(--nutui-tabs-button-active-background-color, var(--nutui-color-primary-light-pressed, #ffebf1));
679
- color: var(--nutui-color-primary, #ff0f23);
680
697
  border: var(--nutui-tabs-button-active-border, 1px solid var(--nutui-color-primary, #ff0f23));
681
698
  }
682
699
  .nut-tabs-titles-divider {
@@ -701,68 +718,29 @@
701
718
  display: none;
702
719
  }
703
720
 
704
- [dir=rtl] .nut-tabs-titles-item-smile, [dir=rtl] .nut-tabs-titles-item-line,
705
- .nut-rtl .nut-tabs-titles-item-smile,
706
- .nut-rtl .nut-tabs-titles-item-line {
707
- left: auto;
708
- right: 50%;
709
- transform: translate(50%, 0);
710
- }
711
- [dir=rtl] .nut-tabs-titles-divider .nut-tabs-titles-item::after,
712
- .nut-rtl .nut-tabs-titles-divider .nut-tabs-titles-item::after {
713
- right: auto;
714
- left: 0;
715
- }
716
-
717
- .nut-tabs-horizontal {
718
- flex-direction: column;
719
- position: relative;
720
- }
721
-
722
- .nut-tabs-vertical {
723
- flex-direction: row;
724
- width: 100%;
725
- }
726
721
  .nut-tabs-vertical .nut-tabs-ellipsis {
727
722
  text-overflow: ellipsis;
728
723
  white-space: nowrap;
729
724
  overflow: hidden;
730
725
  }
731
726
  .nut-tabs-vertical .nut-tabs-titles {
732
- box-sizing: border-box;
733
727
  flex-direction: column;
734
728
  height: 100%;
735
- padding: 0;
736
729
  width: var(--nutui-tabs-vertical-titles-width, 100px);
737
730
  flex-shrink: 0;
738
731
  }
739
732
  .nut-tabs-vertical .nut-tabs-titles .nut-tabs-list {
740
- width: 100%;
741
- display: flex;
742
733
  flex-direction: column;
743
- flex-shrink: 0;
744
- }
745
- .nut-tabs-vertical .nut-tabs-titles-line .nut-tabs-titles-item {
746
- padding-left: 14px;
747
- }
748
- .nut-tabs-vertical .nut-tabs-titles-scrollable {
749
- overflow-x: hidden;
750
- overflow-y: auto;
751
734
  }
752
735
  .nut-tabs-vertical .nut-tabs-titles-item {
753
736
  height: var(--nutui-tabs-vertical-titles-item-height, 40px);
754
- margin: 0;
755
737
  flex: none;
756
738
  }
757
739
  .nut-tabs-vertical .nut-tabs-titles-item-smile {
758
- width: 0;
759
- height: 0;
760
740
  overflow: hidden;
761
741
  transition: width 0.3s ease;
762
742
  }
763
743
  .nut-tabs-vertical .nut-tabs-titles-item-line {
764
- width: 0;
765
- height: 0;
766
744
  transform: translate(0, -50%);
767
745
  transition: height 0.3s ease;
768
746
  }
@@ -782,21 +760,17 @@
782
760
  right: -12px;
783
761
  bottom: -2%;
784
762
  left: auto;
785
- width: 40px;
786
- height: 20px;
787
763
  transform: rotate(320deg);
788
764
  }
789
765
  .nut-tabs-vertical .nut-tabs-horizontal .nut-tabs-titles {
790
766
  flex-direction: row;
791
- overflow-x: auto;
792
- overflow-y: hidden;
793
767
  height: var(--nutui-tabs-titles-height, 44px);
768
+ width: 100%;
769
+ padding: 0 !important;
794
770
  }
795
771
  .nut-tabs-vertical .nut-tabs-horizontal .nut-tabs-titles .nut-tabs-list {
796
- width: 100%;
797
- display: flex;
798
772
  flex-direction: row;
799
- flex-shrink: 0;
773
+ height: auto;
800
774
  }
801
775
  .nut-tabs-vertical .nut-tabs-horizontal .nut-tabs-content {
802
776
  flex-direction: row;
@@ -807,6 +781,9 @@
807
781
  .nut-tabs-vertical .nut-tabs-horizontal .nut-tabs-titles-item-active .nut-tabs-titles-item-line {
808
782
  left: 50%;
809
783
  transform: translate(-50%, 0);
784
+ width: var(--nutui-tabs-tab-line-width, 12px);
785
+ height: var(--nutui-tabs-tab-line-height, 2px);
786
+ background: var(--nutui-tabs-tab-line-color, var(--nutui-color-primary, #ff0f23));
810
787
  }
811
788
  .nut-tabs-vertical .nut-tabs-horizontal .nut-tabs-titles-item-active .nut-tabs-titles-item-smile {
812
789
  left: 50%;
@@ -824,28 +801,26 @@
824
801
  .nut-tabs-vertical .nut-tabs-content .nut-tabpane {
825
802
  height: 100%;
826
803
  }
827
- .nut-tabs-vertical .nut-tabs-horizontal .nut-tabs-titles {
804
+
805
+ .nut-tabs-content {
828
806
  display: flex;
829
- flex-direction: row;
830
- padding: 0 !important;
831
- width: 100%;
807
+ box-sizing: border-box;
832
808
  }
833
- .nut-tabs-vertical .nut-tabs-horizontal .nut-tabs-titles .nut-tabs-titles-item {
834
- display: flex;
835
- align-items: center;
836
- justify-content: center;
837
- flex: 1 0 auto;
809
+ .nut-tabs-content-wrap {
810
+ overflow: hidden;
838
811
  }
839
- .nut-tabs-vertical .nut-tabs-horizontal .nut-tabs-titles .nut-tabs-titles-item-active {
840
- color: var(--nutui-color-primary, #ff0f23);
841
- font-weight: var(--nutui-tabs-titles-item-active-font-weight, var(--nutui-font-weight-bold, 600));
842
- font-size: var(--nutui-tabs-titles-item-active-font-size, var(--nutui-font-size-l, 16px));
812
+
813
+ [dir=rtl] .nut-tabs-titles-item-smile, [dir=rtl] .nut-tabs-titles-item-line,
814
+ .nut-rtl .nut-tabs-titles-item-smile,
815
+ .nut-rtl .nut-tabs-titles-item-line {
816
+ left: auto;
817
+ right: 50%;
818
+ transform: translate(50%, 0);
843
819
  }
844
- .nut-tabs-vertical .nut-tabs-horizontal .nut-tabs-titles .nut-tabs-titles-item-active .nut-tabs-titles-item-line {
845
- content: " ";
846
- width: var(--nutui-tabs-tab-line-width, 12px);
847
- height: var(--nutui-tabs-tab-line-height, 2px);
848
- background: var(--nutui-tabs-tab-line-color, var(--nutui-color-primary, #ff0f23));
820
+ [dir=rtl] .nut-tabs-titles-divider .nut-tabs-titles-item::after,
821
+ .nut-rtl .nut-tabs-titles-divider .nut-tabs-titles-item::after {
822
+ right: auto;
823
+ left: 0;
849
824
  }
850
825
 
851
826
  [dir=rtl] .nut-tabs-vertical .nut-tabs-titles-line .nut-tabs-titles-item,
@@ -877,14 +852,6 @@
877
852
  transform: translate(50%, 0) rotate(0deg);
878
853
  }
879
854
 
880
- .nut-tabs-content {
881
- display: flex;
882
- box-sizing: border-box;
883
- }
884
- .nut-tabs-content-wrap {
885
- overflow: hidden;
886
- }
887
-
888
855
  .nut-cascader {
889
856
  width: 100%;
890
857
  font-size: var(--nutui-cascader-font-size, var(--nutui-font-size-base, 14px));
@@ -1,7 +1,4 @@
1
1
  .nut-animate {
2
- .nut-ani-container {
3
- display: inline-block;
4
- }
5
2
  /* Animation css */
6
3
  [class*='nut-animate-'] {
7
4
  animation-duration: 0.5s;