@nutui/nutui-react 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.
- package/README.md +39 -9
- package/dist/cjs/packages/address/style/style.css +56 -89
- package/dist/cjs/packages/animate/style/animate.scss +0 -3
- package/dist/cjs/packages/animate/style/style.css +0 -3
- package/dist/cjs/packages/cascader/style/style.css +49 -85
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/style/countdown.scss +21 -2
- package/dist/cjs/packages/countdown/style/style.css +20 -2
- package/dist/cjs/packages/elevator/style/elevator.scss +7 -4
- package/dist/cjs/packages/elevator/style/style.css +7 -4
- package/dist/cjs/packages/inputnumber/style/inputnumber.scss +19 -16
- package/dist/cjs/packages/inputnumber/style/style.css +21 -19
- package/dist/cjs/packages/numberkeyboard/style/numberkeyboard.scss +10 -1
- package/dist/cjs/packages/numberkeyboard/style/style.css +12 -0
- package/dist/cjs/packages/popover/style/popover.scss +16 -11
- package/dist/cjs/packages/popover/style/style.css +14 -2
- package/dist/cjs/packages/tabs/style/style.css +49 -85
- package/dist/cjs/packages/tabs/style/tabs.scss +68 -106
- package/dist/cjs/packages/tour/style/style.css +14 -2
- package/dist/cjs/packages/video/video.d.ts +6 -2
- package/dist/cjs/packages/video/video.js +16 -2
- package/dist/es/packages/address/style/style.css +56 -89
- package/dist/es/packages/animate/style/animate.scss +0 -3
- package/dist/es/packages/animate/style/style.css +0 -3
- package/dist/es/packages/cascader/style/style.css +49 -85
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/style/countdown.scss +21 -2
- package/dist/es/packages/countdown/style/style.css +20 -2
- package/dist/es/packages/elevator/style/elevator.scss +7 -4
- package/dist/es/packages/elevator/style/style.css +7 -4
- package/dist/es/packages/inputnumber/style/inputnumber.scss +19 -16
- package/dist/es/packages/inputnumber/style/style.css +21 -19
- package/dist/es/packages/numberkeyboard/numberkeyboard.d.ts +10 -50
- package/dist/es/packages/numberkeyboard/style/numberkeyboard.scss +10 -1
- package/dist/es/packages/numberkeyboard/style/style.css +12 -0
- package/dist/es/packages/popover/style/popover.scss +16 -11
- package/dist/es/packages/popover/style/style.css +14 -2
- package/dist/es/packages/tabpane/tabpane.d.ts +3 -15
- package/dist/es/packages/tabs/style/style.css +49 -85
- package/dist/es/packages/tabs/style/tabs.scss +68 -106
- package/dist/es/packages/tabs/tabs.d.ts +12 -60
- package/dist/es/packages/tour/style/style.css +14 -2
- package/dist/es/packages/video/video.d.ts +6 -2
- package/dist/es/packages/video/video.js +16 -2
- package/dist/nutui.react.umd.js +67 -67
- package/dist/style.css +1 -1
- package/dist/styles/theme-dark.scss +2 -0
- package/dist/styles/theme-default.scss +2 -0
- package/dist/styles/variables.scss +14 -13
- package/package.json +2 -2
|
@@ -21,12 +21,17 @@
|
|
|
21
21
|
display: flex;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
.nut-tabs-horizontal {
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
}
|
|
27
|
+
|
|
24
28
|
.nut-tabs-titles {
|
|
25
29
|
display: flex;
|
|
26
30
|
box-sizing: border-box;
|
|
27
31
|
height: var(--nutui-tabs-titles-height, 44px);
|
|
28
32
|
user-select: none;
|
|
29
|
-
overflow:
|
|
33
|
+
overflow-x: auto;
|
|
34
|
+
overflow-y: hidden;
|
|
30
35
|
background: var(--nutui-tabs-titles-background-color, var(--nutui-color-background, #f5f6fa));
|
|
31
36
|
scrollbar-width: none;
|
|
32
37
|
}
|
|
@@ -37,7 +42,6 @@
|
|
|
37
42
|
}
|
|
38
43
|
.nut-tabs-titles .nut-tabs-list {
|
|
39
44
|
width: 100%;
|
|
40
|
-
height: auto;
|
|
41
45
|
display: flex;
|
|
42
46
|
flex-shrink: 0;
|
|
43
47
|
}
|
|
@@ -53,10 +57,6 @@
|
|
|
53
57
|
.nut-tabs-titles-right .nut-tabs-titles-item {
|
|
54
58
|
padding: 0 22px;
|
|
55
59
|
}
|
|
56
|
-
.nut-tabs-titles-scrollable {
|
|
57
|
-
overflow-x: auto;
|
|
58
|
-
overflow-y: hidden;
|
|
59
|
-
}
|
|
60
60
|
.nut-tabs-titles-item {
|
|
61
61
|
position: relative;
|
|
62
62
|
display: flex;
|
|
@@ -72,11 +72,14 @@
|
|
|
72
72
|
text-overflow: ellipsis;
|
|
73
73
|
white-space: nowrap;
|
|
74
74
|
}
|
|
75
|
+
.nut-tabs-titles-item .nut-icon {
|
|
76
|
+
color: var(--nutui-tabs-titles-item-color, var(--nutui-color-title, #1a1a1a));
|
|
77
|
+
}
|
|
75
78
|
.nut-tabs-titles-item-left, .nut-tabs-titles-item-right {
|
|
76
79
|
flex: none;
|
|
77
80
|
}
|
|
78
81
|
.nut-tabs-titles-item-text {
|
|
79
|
-
|
|
82
|
+
color: var(--nutui-tabs-titles-item-color, var(--nutui-color-title, #1a1a1a));
|
|
80
83
|
}
|
|
81
84
|
.nut-tabs-titles-item-smile, .nut-tabs-titles-item-line {
|
|
82
85
|
position: absolute;
|
|
@@ -84,9 +87,9 @@
|
|
|
84
87
|
width: 0;
|
|
85
88
|
height: 0;
|
|
86
89
|
content: " ";
|
|
87
|
-
bottom: var(--nutui-tabs-line-bottom, 15%);
|
|
88
90
|
left: 50%;
|
|
89
91
|
transform: translate(-50%, 0);
|
|
92
|
+
bottom: var(--nutui-tabs-line-bottom, 15%);
|
|
90
93
|
border-radius: var(--nutui-tabs-line-border-radius, 2px);
|
|
91
94
|
opacity: var(--nutui-tabs-tab-line-opacity, 1);
|
|
92
95
|
overflow: hidden;
|
|
@@ -99,9 +102,11 @@
|
|
|
99
102
|
font-size: 20px;
|
|
100
103
|
width: 100%;
|
|
101
104
|
height: 100%;
|
|
102
|
-
color: var(--nutui-color-primary, #ff0f23);
|
|
103
105
|
}
|
|
104
|
-
.nut-tabs-titles-item-active {
|
|
106
|
+
.nut-tabs-titles-item-active .nut-icon {
|
|
107
|
+
color: var(--nutui-tabs-titles-item-active-color, var(--nutui-color-primary, #ff0f23));
|
|
108
|
+
}
|
|
109
|
+
.nut-tabs-titles-item-active .nut-tabs-titles-item-text {
|
|
105
110
|
color: var(--nutui-tabs-titles-item-active-color, var(--nutui-color-primary, #ff0f23));
|
|
106
111
|
font-weight: var(--nutui-tabs-titles-item-active-font-weight, var(--nutui-font-weight-bold, 600));
|
|
107
112
|
}
|
|
@@ -117,10 +122,20 @@
|
|
|
117
122
|
width: 40px;
|
|
118
123
|
height: 20px;
|
|
119
124
|
}
|
|
125
|
+
.nut-tabs-titles-item-active .nut-tabs-titles-item-smile .nut-icon {
|
|
126
|
+
color: var(--nutui-tabs-titles-item-active-color, var(--nutui-color-primary, #ff0f23));
|
|
127
|
+
}
|
|
120
128
|
.nut-tabs-titles-item-disabled {
|
|
121
129
|
color: var(--nutui-color-text-disabled, #c2c4cc);
|
|
122
130
|
}
|
|
123
|
-
.nut-tabs-titles-
|
|
131
|
+
.nut-tabs-titles-item-disabled .nut-icon {
|
|
132
|
+
color: var(--nutui-color-text-disabled, #c2c4cc);
|
|
133
|
+
}
|
|
134
|
+
.nut-tabs-titles-item-disabled .nut-tabs-titles-item-text {
|
|
135
|
+
color: var(--nutui-color-text-disabled, #c2c4cc);
|
|
136
|
+
}
|
|
137
|
+
.nut-tabs-titles-simple .nut-tabs-titles-item-active .nut-tabs-titles-item-text,
|
|
138
|
+
.nut-tabs-titles-simple .nut-tabs-titles-item-active .nut-icon {
|
|
124
139
|
color: var(--nutui-color-title, #1a1a1a);
|
|
125
140
|
font-size: var(--nutui-tabs-titles-item-active-font-size, var(--nutui-font-size-l, 16px));
|
|
126
141
|
}
|
|
@@ -149,11 +164,10 @@
|
|
|
149
164
|
}
|
|
150
165
|
.nut-tabs-titles-button .nut-tabs-titles-item-active .nut-tabs-titles-item-text {
|
|
151
166
|
background: var(--nutui-color-default-light);
|
|
152
|
-
color: var(--nutui-color-
|
|
167
|
+
color: var(--nutui-tabs-titles-item-active-color, var(--nutui-color-primary, #ff0f23));
|
|
153
168
|
border-radius: var(--nutui-tabs-button-border-radius, 50px);
|
|
154
169
|
font-weight: var(--nutui-font-weight-bold, 600);
|
|
155
170
|
background-color: var(--nutui-tabs-button-active-background-color, var(--nutui-color-primary-light-pressed, #ffebf1));
|
|
156
|
-
color: var(--nutui-color-primary, #ff0f23);
|
|
157
171
|
border: var(--nutui-tabs-button-active-border, 1px solid var(--nutui-color-primary, #ff0f23));
|
|
158
172
|
}
|
|
159
173
|
.nut-tabs-titles-divider {
|
|
@@ -178,68 +192,29 @@
|
|
|
178
192
|
display: none;
|
|
179
193
|
}
|
|
180
194
|
|
|
181
|
-
[dir=rtl] .nut-tabs-titles-item-smile, [dir=rtl] .nut-tabs-titles-item-line,
|
|
182
|
-
.nut-rtl .nut-tabs-titles-item-smile,
|
|
183
|
-
.nut-rtl .nut-tabs-titles-item-line {
|
|
184
|
-
left: auto;
|
|
185
|
-
right: 50%;
|
|
186
|
-
transform: translate(50%, 0);
|
|
187
|
-
}
|
|
188
|
-
[dir=rtl] .nut-tabs-titles-divider .nut-tabs-titles-item::after,
|
|
189
|
-
.nut-rtl .nut-tabs-titles-divider .nut-tabs-titles-item::after {
|
|
190
|
-
right: auto;
|
|
191
|
-
left: 0;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.nut-tabs-horizontal {
|
|
195
|
-
flex-direction: column;
|
|
196
|
-
position: relative;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.nut-tabs-vertical {
|
|
200
|
-
flex-direction: row;
|
|
201
|
-
width: 100%;
|
|
202
|
-
}
|
|
203
195
|
.nut-tabs-vertical .nut-tabs-ellipsis {
|
|
204
196
|
text-overflow: ellipsis;
|
|
205
197
|
white-space: nowrap;
|
|
206
198
|
overflow: hidden;
|
|
207
199
|
}
|
|
208
200
|
.nut-tabs-vertical .nut-tabs-titles {
|
|
209
|
-
box-sizing: border-box;
|
|
210
201
|
flex-direction: column;
|
|
211
202
|
height: 100%;
|
|
212
|
-
padding: 0;
|
|
213
203
|
width: var(--nutui-tabs-vertical-titles-width, 100px);
|
|
214
204
|
flex-shrink: 0;
|
|
215
205
|
}
|
|
216
206
|
.nut-tabs-vertical .nut-tabs-titles .nut-tabs-list {
|
|
217
|
-
width: 100%;
|
|
218
|
-
display: flex;
|
|
219
207
|
flex-direction: column;
|
|
220
|
-
flex-shrink: 0;
|
|
221
|
-
}
|
|
222
|
-
.nut-tabs-vertical .nut-tabs-titles-line .nut-tabs-titles-item {
|
|
223
|
-
padding-left: 14px;
|
|
224
|
-
}
|
|
225
|
-
.nut-tabs-vertical .nut-tabs-titles-scrollable {
|
|
226
|
-
overflow-x: hidden;
|
|
227
|
-
overflow-y: auto;
|
|
228
208
|
}
|
|
229
209
|
.nut-tabs-vertical .nut-tabs-titles-item {
|
|
230
210
|
height: var(--nutui-tabs-vertical-titles-item-height, 40px);
|
|
231
|
-
margin: 0;
|
|
232
211
|
flex: none;
|
|
233
212
|
}
|
|
234
213
|
.nut-tabs-vertical .nut-tabs-titles-item-smile {
|
|
235
|
-
width: 0;
|
|
236
|
-
height: 0;
|
|
237
214
|
overflow: hidden;
|
|
238
215
|
transition: width 0.3s ease;
|
|
239
216
|
}
|
|
240
217
|
.nut-tabs-vertical .nut-tabs-titles-item-line {
|
|
241
|
-
width: 0;
|
|
242
|
-
height: 0;
|
|
243
218
|
transform: translate(0, -50%);
|
|
244
219
|
transition: height 0.3s ease;
|
|
245
220
|
}
|
|
@@ -259,21 +234,17 @@
|
|
|
259
234
|
right: -12px;
|
|
260
235
|
bottom: -2%;
|
|
261
236
|
left: auto;
|
|
262
|
-
width: 40px;
|
|
263
|
-
height: 20px;
|
|
264
237
|
transform: rotate(320deg);
|
|
265
238
|
}
|
|
266
239
|
.nut-tabs-vertical .nut-tabs-horizontal .nut-tabs-titles {
|
|
267
240
|
flex-direction: row;
|
|
268
|
-
overflow-x: auto;
|
|
269
|
-
overflow-y: hidden;
|
|
270
241
|
height: var(--nutui-tabs-titles-height, 44px);
|
|
242
|
+
width: 100%;
|
|
243
|
+
padding: 0 !important;
|
|
271
244
|
}
|
|
272
245
|
.nut-tabs-vertical .nut-tabs-horizontal .nut-tabs-titles .nut-tabs-list {
|
|
273
|
-
width: 100%;
|
|
274
|
-
display: flex;
|
|
275
246
|
flex-direction: row;
|
|
276
|
-
|
|
247
|
+
height: auto;
|
|
277
248
|
}
|
|
278
249
|
.nut-tabs-vertical .nut-tabs-horizontal .nut-tabs-content {
|
|
279
250
|
flex-direction: row;
|
|
@@ -284,6 +255,9 @@
|
|
|
284
255
|
.nut-tabs-vertical .nut-tabs-horizontal .nut-tabs-titles-item-active .nut-tabs-titles-item-line {
|
|
285
256
|
left: 50%;
|
|
286
257
|
transform: translate(-50%, 0);
|
|
258
|
+
width: var(--nutui-tabs-tab-line-width, 12px);
|
|
259
|
+
height: var(--nutui-tabs-tab-line-height, 2px);
|
|
260
|
+
background: var(--nutui-tabs-tab-line-color, var(--nutui-color-primary, #ff0f23));
|
|
287
261
|
}
|
|
288
262
|
.nut-tabs-vertical .nut-tabs-horizontal .nut-tabs-titles-item-active .nut-tabs-titles-item-smile {
|
|
289
263
|
left: 50%;
|
|
@@ -301,28 +275,26 @@
|
|
|
301
275
|
.nut-tabs-vertical .nut-tabs-content .nut-tabpane {
|
|
302
276
|
height: 100%;
|
|
303
277
|
}
|
|
304
|
-
|
|
278
|
+
|
|
279
|
+
.nut-tabs-content {
|
|
305
280
|
display: flex;
|
|
306
|
-
|
|
307
|
-
padding: 0 !important;
|
|
308
|
-
width: 100%;
|
|
281
|
+
box-sizing: border-box;
|
|
309
282
|
}
|
|
310
|
-
.nut-tabs-
|
|
311
|
-
|
|
312
|
-
align-items: center;
|
|
313
|
-
justify-content: center;
|
|
314
|
-
flex: 1 0 auto;
|
|
283
|
+
.nut-tabs-content-wrap {
|
|
284
|
+
overflow: hidden;
|
|
315
285
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
286
|
+
|
|
287
|
+
[dir=rtl] .nut-tabs-titles-item-smile, [dir=rtl] .nut-tabs-titles-item-line,
|
|
288
|
+
.nut-rtl .nut-tabs-titles-item-smile,
|
|
289
|
+
.nut-rtl .nut-tabs-titles-item-line {
|
|
290
|
+
left: auto;
|
|
291
|
+
right: 50%;
|
|
292
|
+
transform: translate(50%, 0);
|
|
320
293
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
background: var(--nutui-tabs-tab-line-color, var(--nutui-color-primary, #ff0f23));
|
|
294
|
+
[dir=rtl] .nut-tabs-titles-divider .nut-tabs-titles-item::after,
|
|
295
|
+
.nut-rtl .nut-tabs-titles-divider .nut-tabs-titles-item::after {
|
|
296
|
+
right: auto;
|
|
297
|
+
left: 0;
|
|
326
298
|
}
|
|
327
299
|
|
|
328
300
|
[dir=rtl] .nut-tabs-vertical .nut-tabs-titles-line .nut-tabs-titles-item,
|
|
@@ -352,12 +324,4 @@
|
|
|
352
324
|
right: 50%;
|
|
353
325
|
left: auto;
|
|
354
326
|
transform: translate(50%, 0) rotate(0deg);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.nut-tabs-content {
|
|
358
|
-
display: flex;
|
|
359
|
-
box-sizing: border-box;
|
|
360
|
-
}
|
|
361
|
-
.nut-tabs-content-wrap {
|
|
362
|
-
overflow: hidden;
|
|
363
327
|
}
|
|
@@ -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:
|
|
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
|
-
|
|
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
|
-
|
|
101
|
-
|
|
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
|
|
125
|
-
|
|
126
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
353
|
-
|
|
354
|
-
|
|
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
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
328
|
+
&-wrap {
|
|
329
|
+
overflow: hidden;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
369
332
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
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
|
-
}
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { BasicComponent } from "../../utils/typings";
|
|
3
3
|
export interface VideoProps extends BasicComponent {
|
|
4
4
|
source: {
|
|
@@ -17,4 +17,8 @@ export interface VideoProps extends BasicComponent {
|
|
|
17
17
|
onPause: (element: HTMLVideoElement) => void;
|
|
18
18
|
onPlayEnd: (element: HTMLVideoElement) => void;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
20
|
+
export type VideoRef = {
|
|
21
|
+
pause: () => void;
|
|
22
|
+
play: () => void;
|
|
23
|
+
};
|
|
24
|
+
export declare const Video: React.ForwardRefExoticComponent<Partial<VideoProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onPause" | "onPlay"> & React.RefAttributes<VideoRef>>;
|
|
@@ -31,7 +31,7 @@ var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typing
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
var classPrefix = "nut-video";
|
|
34
|
-
var Video =
|
|
34
|
+
var Video = /*#__PURE__*/ _react.default.forwardRef(function(props, ref) {
|
|
35
35
|
var _ref = (0, _object_spread._)({}, defaultProps, props), children = _ref.children, source = _ref.source, options = _ref.options, className = _ref.className, onPlay = _ref.onPlay, onPause = _ref.onPause, onPlayEnd = _ref.onPlayEnd, restProps = (0, _object_without_properties._)(_ref, [
|
|
36
36
|
"children",
|
|
37
37
|
"source",
|
|
@@ -72,6 +72,20 @@ var Video = function Video(props) {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
+
var pause = function pause() {
|
|
76
|
+
var _rootRef_current;
|
|
77
|
+
rootRef === null || rootRef === void 0 ? void 0 : (_rootRef_current = rootRef.current) === null || _rootRef_current === void 0 ? void 0 : _rootRef_current.pause();
|
|
78
|
+
};
|
|
79
|
+
var play = function play() {
|
|
80
|
+
var _rootRef_current;
|
|
81
|
+
rootRef === null || rootRef === void 0 ? void 0 : (_rootRef_current = rootRef.current) === null || _rootRef_current === void 0 ? void 0 : _rootRef_current.play();
|
|
82
|
+
};
|
|
83
|
+
_react.default.useImperativeHandle(ref, function() {
|
|
84
|
+
return {
|
|
85
|
+
pause: pause,
|
|
86
|
+
play: play
|
|
87
|
+
};
|
|
88
|
+
});
|
|
75
89
|
return /*#__PURE__*/ _react.default.createElement("div", (0, _object_spread._)({
|
|
76
90
|
className: classes
|
|
77
91
|
}, restProps), /*#__PURE__*/ _react.default.createElement("video", {
|
|
@@ -89,5 +103,5 @@ var Video = function Video(props) {
|
|
|
89
103
|
}), /*#__PURE__*/ _react.default.createElement("track", {
|
|
90
104
|
kind: "captions"
|
|
91
105
|
})));
|
|
92
|
-
};
|
|
106
|
+
});
|
|
93
107
|
Video.displayName = 'NutVideo';
|