vdesign-ui 0.3.0 → 0.3.1

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 (167) hide show
  1. package/README.md +58 -58
  2. package/dist/components/actionbar/index.js +8 -8
  3. package/dist/components/actionbar/index.vue +39 -39
  4. package/dist/components/actionbar/style.less +44 -44
  5. package/dist/components/actionbar-cell/index.js +7 -7
  6. package/dist/components/actionbar-cell/index.vue +42 -42
  7. package/dist/components/actions/index.js +6 -6
  8. package/dist/components/actions/index.vue +77 -77
  9. package/dist/components/actions/style.less +109 -109
  10. package/dist/components/actions-cell/index.js +6 -6
  11. package/dist/components/actions-cell/index.vue +94 -94
  12. package/dist/components/actions-cell/style.less +38 -38
  13. package/dist/components/activityviews/index.js +8 -8
  14. package/dist/components/activityviews/index.vue +192 -192
  15. package/dist/components/activityviews/style.less +161 -161
  16. package/dist/components/badge/index.js +8 -8
  17. package/dist/components/badge/index.vue +49 -49
  18. package/dist/components/badge/style.less +54 -54
  19. package/dist/components/button/index.js +8 -8
  20. package/dist/components/button/index.vue +93 -93
  21. package/dist/components/button/style.less +558 -558
  22. package/dist/components/calendar/index-element.vue +84 -84
  23. package/dist/components/calendar/index.js +7 -7
  24. package/dist/components/calendar/index.vue +53 -53
  25. package/dist/components/calendar/style.less +138 -138
  26. package/dist/components/checkbox/index.js +8 -8
  27. package/dist/components/checkbox/index.vue +161 -161
  28. package/dist/components/checkbox/style.less +288 -288
  29. package/dist/components/checkbox-group/index.js +7 -7
  30. package/dist/components/checkbox-group/index.vue +73 -73
  31. package/dist/components/common/state/index.vue +33 -33
  32. package/dist/components/common/state/style.less +47 -47
  33. package/dist/components/data-list/index.js +10 -10
  34. package/dist/components/data-list/index.vue +19 -19
  35. package/dist/components/data-list/style.less +623 -623
  36. package/dist/components/datetime-picker/index.js +7 -7
  37. package/dist/components/datetime-picker/index.vue +39 -39
  38. package/dist/components/datetime-picker/style.less +23 -23
  39. package/dist/components/dialog/index.js +8 -8
  40. package/dist/components/dialog/index.vue +164 -164
  41. package/dist/components/dialog/overlay-manager.js +18 -18
  42. package/dist/components/dialog/style.less +138 -138
  43. package/dist/components/divider/index.js +8 -8
  44. package/dist/components/divider/index.vue +54 -54
  45. package/dist/components/divider/style.less +92 -92
  46. package/dist/components/dropdown/index.js +8 -8
  47. package/dist/components/dropdown/index.vue +218 -218
  48. package/dist/components/dropdown/style.less +432 -432
  49. package/dist/components/empty/index.js +8 -8
  50. package/dist/components/empty/index.vue +138 -138
  51. package/dist/components/empty/style.less +60 -60
  52. package/dist/components/footer/index.js +6 -6
  53. package/dist/components/footer/index.vue +33 -33
  54. package/dist/components/footer/style.less +20 -20
  55. package/dist/components/footnav/index.js +6 -6
  56. package/dist/components/footnav/index.vue +93 -93
  57. package/dist/components/footnav/style.less +22 -22
  58. package/dist/components/footnav-item/index.js +6 -6
  59. package/dist/components/footnav-item/index.vue +50 -50
  60. package/dist/components/footnav-item/style.less +39 -39
  61. package/dist/components/form/index.js +6 -6
  62. package/dist/components/form/index.vue +14 -14
  63. package/dist/components/headnav/index.js +6 -6
  64. package/dist/components/headnav/index.vue +185 -185
  65. package/dist/components/headnav/style.less +231 -231
  66. package/dist/components/icon/font/iconfont.css +163 -163
  67. package/dist/components/icon/font/iconfont.js +5 -5
  68. package/dist/components/icon/index.js +9 -9
  69. package/dist/components/icon/index.vue +96 -96
  70. package/dist/components/icon/style.less +44 -44
  71. package/dist/components/input/calcTextareaHeight.js +162 -162
  72. package/dist/components/input/index.js +8 -8
  73. package/dist/components/input/index.vue +345 -345
  74. package/dist/components/input/style.less +471 -471
  75. package/dist/components/list/index.js +8 -8
  76. package/dist/components/list/index.vue +152 -152
  77. package/dist/components/list/style.less +213 -213
  78. package/dist/components/loading/index.js +6 -6
  79. package/dist/components/loading/index.vue +68 -68
  80. package/dist/components/loading/style.less +53 -53
  81. package/dist/components/mixins/clickoutside.js +81 -81
  82. package/dist/components/mixins/dom.js +41 -41
  83. package/dist/components/mixins/languageMixin.js +43 -43
  84. package/dist/components/mixins/outlineConfigPlugin.js +45 -45
  85. package/dist/components/mixins/router-link.js +22 -22
  86. package/dist/components/mixins/themeMixin.js +43 -43
  87. package/dist/components/noticebar/index.js +8 -8
  88. package/dist/components/noticebar/index.vue +258 -258
  89. package/dist/components/noticebar/style.less +333 -333
  90. package/dist/components/overlay/index.js +8 -8
  91. package/dist/components/overlay/index.vue +184 -184
  92. package/dist/components/overlay/style.less +24 -24
  93. package/dist/components/pagebreak/index.js +6 -6
  94. package/dist/components/pagebreak/index.vue +67 -67
  95. package/dist/components/pagebreak/style.less +41 -41
  96. package/dist/components/password/index.js +8 -8
  97. package/dist/components/password/index.vue +64 -64
  98. package/dist/components/popover/index.js +8 -8
  99. package/dist/components/popover/index.vue +100 -100
  100. package/dist/components/popover/style.less +346 -346
  101. package/dist/components/popover/vue-popover.vue +314 -314
  102. package/dist/components/popup/index.js +7 -7
  103. package/dist/components/popup/index.vue +165 -165
  104. package/dist/components/popup/style.less +78 -78
  105. package/dist/components/radio/index.js +8 -8
  106. package/dist/components/radio/index.vue +184 -184
  107. package/dist/components/radio/style.less +300 -300
  108. package/dist/components/radio-group/index.js +7 -7
  109. package/dist/components/radio-group/index.vue +62 -62
  110. package/dist/components/result/index.js +8 -8
  111. package/dist/components/result/index.vue +73 -73
  112. package/dist/components/result/style.less +43 -43
  113. package/dist/components/search/index.js +8 -8
  114. package/dist/components/search/index.vue +70 -70
  115. package/dist/components/selector/index.js +8 -8
  116. package/dist/components/selector/index.vue +161 -161
  117. package/dist/components/selector/style.less +484 -484
  118. package/dist/components/skeleton/index.js +6 -6
  119. package/dist/components/skeleton/index.vue +207 -207
  120. package/dist/components/skeleton/style.less +196 -196
  121. package/dist/components/slider/draggable.js +49 -49
  122. package/dist/components/slider/index.js +6 -6
  123. package/dist/components/slider/index.vue +167 -167
  124. package/dist/components/slider/style.less +99 -99
  125. package/dist/components/slider/utils.js +59 -59
  126. package/dist/components/step/index.js +7 -7
  127. package/dist/components/step/index.vue +48 -48
  128. package/dist/components/step/style.less +66 -66
  129. package/dist/components/step-item/index.js +7 -7
  130. package/dist/components/step-item/index.vue +126 -126
  131. package/dist/components/step-item/style.less +399 -399
  132. package/dist/components/stepper/index.js +8 -8
  133. package/dist/components/stepper/index.vue +150 -150
  134. package/dist/components/style/index.vue +42 -42
  135. package/dist/components/switch/index.js +8 -8
  136. package/dist/components/switch/index.vue +72 -72
  137. package/dist/components/switch/style.less +56 -56
  138. package/dist/components/tab/index.js +7 -7
  139. package/dist/components/tab/index.vue +97 -97
  140. package/dist/components/tabs/index.js +8 -8
  141. package/dist/components/tabs/index.vue +356 -356
  142. package/dist/components/tabs/style.less +511 -504
  143. package/dist/components/tag/index.js +6 -6
  144. package/dist/components/tag/index.vue +64 -64
  145. package/dist/components/tag/style.less +210 -210
  146. package/dist/components/title/index.js +8 -8
  147. package/dist/components/title/index.vue +99 -99
  148. package/dist/components/title/style.less +187 -187
  149. package/dist/components/toast/index.js +139 -139
  150. package/dist/components/toast/index.vue +50 -50
  151. package/dist/components/toast/style.less +58 -58
  152. package/dist/components/transition/index.js +8 -8
  153. package/dist/components/transition/index.vue +13 -13
  154. package/dist/components/transition/style.less +208 -208
  155. package/dist/components/upload/index.js +6 -6
  156. package/dist/components/upload/index.vue +106 -106
  157. package/dist/components/upload/style.less +147 -147
  158. package/dist/components/utils/assist.js +34 -34
  159. package/dist/components/utils/env.js +21 -21
  160. package/dist/locale/ar.js +97 -97
  161. package/dist/locale/en.js +97 -97
  162. package/dist/locale/zh.js +97 -97
  163. package/dist/token.css +9 -9
  164. package/dist/vdesign-ui.common.js +83 -83
  165. package/dist/vdesign-ui.css +1 -1
  166. package/dist/vdesign-ui.umd.js +83 -83
  167. package/package.json +113 -113
@@ -1,505 +1,512 @@
1
- @tabs-prefix-cls: vd-tabs;
2
- @tab-prefix-cls: vd-tab;
3
-
4
- .@{tabs-prefix-cls} {
5
-
6
- &__wrap {
7
- position: relative;
8
- width: 100%;
9
- }
10
-
11
- &--sticky {
12
- position: sticky;
13
- top: 0;
14
- z-index: 99;
15
- }
16
-
17
- &__nav{
18
- display: flex;
19
- align-items: center;
20
- &--primary {
21
- position: relative;
22
- white-space: nowrap;
23
- padding-inline-start: var(--spacing-tab-primary-margin_left);
24
- height: var(--height-super-large);
25
- line-height: var(--height-super-large);
26
-
27
- .@{tab-prefix-cls}{
28
- position: relative;
29
- display: inline-block;
30
- cursor: pointer;
31
- padding-inline-start: var(--spacing-tab-primary-padding_left);
32
- padding-inline-end: var(--spacing-tab-primary-padding_right);
33
- color: var(--color-tab-primary-text-default);
34
- font-size: var(--en-single-f-d-r-fontSize);
35
- font-weight: var(--en-single-f-d-r-fontWeight);
36
-
37
- &--active {
38
- color: var(--color-tab-primary-text-active);
39
- font-size: var(--en-single-f-e-s-fontSize);
40
- font-weight: var(--en-single-f-e-s-fontWeight);
41
-
42
- &::before {
43
- content: "";
44
- bottom: 11px;
45
- height: var(--height-tab-primary-bar);
46
- width: var(--width-tab-primary-bar);
47
- display: block;
48
- position: absolute;
49
- background-color: var(--color-tab-primary-bar-active);
50
- left: 50%;
51
- transform: translateX(-50%);
52
- border-radius: var(--radius-tab-primary_bar);
53
- }
54
- }
55
- &__none--line {
56
- &::before {
57
- display: none;
58
- }
59
- }
60
- }
61
- }
62
-
63
- &--card {
64
- position: relative;
65
- display: flex;
66
- padding-inline-start: 20px;
67
- padding-inline-end: 20px;
68
- height: var(--height-super-large);
69
- line-height: var(--height-super-large);
70
-
71
- .@{tab-prefix-cls}{
72
- min-width: 1%;
73
- flex: 1;
74
- display: flex;
75
- justify-content: center;
76
- align-items: center;
77
- position: relative;
78
- cursor: pointer;
79
- text-align: center;
80
- color: var(--color-tab-primary-text-default);
81
- font-size: var(--en-single-f-d-r-fontSize);
82
- font-weight: var(--en-single-f-d-r-fontWeight);
83
-
84
- &--active {
85
- color: var(--color-tab-primary-text-active);
86
- font-size: var(--en-single-f-e-s-fontSize);
87
- font-weight: var(--en-single-f-e-s-fontWeight);
88
-
89
- &::before {
90
- content: "";
91
- bottom: 11px;
92
- height: var(--height-tab-primary-bar);
93
- width: var(--width-tab-primary-bar);
94
- display: block;
95
- position: absolute;
96
- background-color: var(--color-tab-primary-bar-active);
97
- left: 50%;
98
- transform: translateX(-50%);
99
- border-radius: 1px;
100
- }
101
- }
102
- &__none--line {
103
- &::before {
104
- display: none;
105
- }
106
- }
107
- }
108
- }
109
-
110
- &--secondary {
111
- display: flex;
112
- align-items: center;
113
- position: relative;
114
- padding-inline-start: var(--spacing-tab-secondary-margin_left);
115
- height: var(--height-tab-secondary);
116
- line-height: var(--height-tab-secondary);
117
-
118
- .@{tab-prefix-cls}{
119
- position: relative;
120
- display: inline-block;
121
- cursor: pointer;
122
- margin-inline-start: var(--spacing-tab-secondary-padding_left);
123
- margin-inline-end: var(--spacing-tab-secondary-padding_right);
124
- color: var(--color-tab-primary-text-default);
125
- font-size: var(--en-single-f-c-r-fontSize);
126
- font-weight: var(--en-single-f-c-r-fontWeight);
127
- &--active {
128
- color: var(--color-tab-primary-text-active);
129
- font-size: var(--en-single-f-c-s-fontSize);
130
- font-weight: var(--en-single-f-c-s-fontWeight);
131
-
132
- &::before {
133
- content: "";
134
- bottom: 0;
135
- height: var(--height-tab-secondary-bar);
136
- display: block;
137
- position: absolute;
138
- background-color: var(--color-tab-secondary-bar-active);
139
- left: 0;
140
- right: 0;
141
- width: 100%;
142
- border-radius: var(--radius-tab-secondary-bar_top) var(--radius-tab-secondary-bar_top) var(--radius-tab-secondary-bar_bottom) var(--radius-tab-secondary-bar_bottom);
143
- }
144
- }
145
- &__none--line {
146
- &::before {
147
- display: none;
148
- }
149
- }
150
- }
151
-
152
- }
153
-
154
-
155
-
156
- &--capsule {
157
- position: relative;
158
- white-space: nowrap;
159
- align-items: center;
160
- padding-inline-start: var(--spacing-tab-capsule-margin_left);
161
- height: var(--height-tab-capsule);
162
- line-height: var(--height-tab-capsule);
163
-
164
-
165
- .@{tab-prefix-cls}{
166
- position: relative;
167
- display: inline-block;
168
- cursor: pointer;
169
- vertical-align: middle;
170
- height: var(--height-tab-capsule_btn);
171
- line-height: var(--height-tab-capsule_btn);
172
- padding-inline-start: var(--spacing-tab-capsule_btn-padding_left);
173
- padding-inline-end: var(--spacing-tab-capsule_btn-padding_right);
174
- margin-inline-start: var(--spacing-tab-capsule_btn-margin_right);
175
- margin-inline-end: var(--spacing-tab-capsule_btn-margin_right);
176
- background-color: var(--color-tab-capsule_btn-bg-default);
177
- color: var(--color-tab-capsule-text-default);
178
- font-size: var(--en-single-f-c-r-fontSize);
179
- font-weight: var(--en-single-f-c-r-fontWeight);
180
- border-radius: var(--radius-tab-capsule_button);
181
-
182
- &--active {
183
- color: var(--color-tab-capsule-text-active);
184
- font-size: var(--en-single-f-c-s-fontSize);
185
- font-weight: var(--en-single-f-c-s-fontWeight);
186
- background-color: var(--color-tab-capsule_btn-bg-active);
187
- }
188
- }
189
- }
190
-
191
-
192
- &--selector-l {
193
- position: relative;
194
- display: flex;
195
- background-color: var(--color-tab-selector-bg-default);
196
- border-radius: var(--radius-tab-selector_card);
197
- padding-inline-start: var(--spacing-tab-selector-margin_left);
198
- padding-inline-end: var(--spacing-tab-selector-margin_right);
199
- padding-block-start: var(--spacing-tab-selector-margin_top);
200
- padding-block-end: var(--spacing-tab-selector-margin_bottom);
201
-
202
- .@{tab-prefix-cls}{
203
- flex: 1;
204
- position: relative;
205
- display: inline-block;
206
- text-align: center;
207
- cursor: pointer;
208
- height: var(--height-tab-selector_l_btn);
209
- line-height: var(--height-tab-selector_l_btn);
210
- color: var(--color-tab-selector-text-default);
211
- font-size: var(--en-single-f-c-r-fontSize);
212
- font-weight: var(--en-single-f-c-r-fontWeight);
213
-
214
- &--active {
215
- color: var(--color-tab-selector-text-active);
216
- font-size: var(--en-single-f-c-s-fontSize);
217
- font-weight: var(--en-single-f-c-s-fontWeight);
218
- background-color: var(--color-tab-selector-bg-active);
219
- box-shadow: var(--shadow-s1);
220
- border-radius: var(--radius-tab-selector_card);
221
- }
222
- }
223
-
224
- }
225
-
226
-
227
-
228
- &--selector-m{
229
- position: relative;
230
- display: flex;
231
- background-color: var(--color-tab-selector-bg-default);
232
- border-radius: var(--radius-tab-selector_card);
233
- padding-inline-start: var(--spacing-tab-selector-margin_left);
234
- padding-inline-end: var(--spacing-tab-selector-margin_right);
235
- padding-block-start: var(--spacing-tab-selector-margin_top);
236
- padding-block-end: var(--spacing-tab-selector-margin_bottom);
237
-
238
- .@{tab-prefix-cls}{
239
- flex: 1;
240
- position: relative;
241
- display: inline-block;
242
- text-align: center;
243
- cursor: pointer;
244
- height: var(--height-tab-selector_m_btn);
245
- line-height: var(--height-tab-selector_m_btn);
246
- color: var(--color-tab-selector-text-default);
247
- font-size: var(--en-single-f-b-r-fontSize);
248
- font-weight: var(--en-single-f-b-r-fontWeight);
249
-
250
- &--active {
251
- color: var(--color-tab-selector-text-active);
252
- font-size: var(--en-single-f-b-s-fontSize);
253
- font-weight: var(--en-single-f-b-s-fontWeight);
254
- background-color: var(--color-tab-selector-bg-active);
255
- box-shadow: var(--shadow-s1);
256
- border-radius: var(--radius-tab-selector_card);
257
- }
258
- }
259
-
260
- }
261
-
262
-
263
- &--filter {
264
- position: relative;
265
- display: flex;
266
- height: var(--height-tab-filter);
267
- line-height: var(--height-tab-filter);
268
- padding-inline-start: var(--spacing-tab-filter-margin_y);
269
- padding-inline-end: var(--spacing-tab-filter-margin_y);
270
-
271
- .@{tab-prefix-cls}{
272
- flex: 1;
273
- position: relative;
274
- cursor: pointer;
275
- text-align: center;
276
- color: var(--color-tab-filter-text-default);
277
- font-size: var(--en-single-f-c-r-fontSize);
278
- font-weight: var(--en-single-f-c-r-fontWeight);
279
- &--active {
280
- color: var(--color-tab-filter-text-active);
281
- font-size: var(--en-single-f-c-s-fontSize);
282
- font-weight: var(--en-single-f-c-s-fontWeight);
283
-
284
- }
285
- }
286
-
287
-
288
- }
289
-
290
- &--click-filter {
291
- position: relative;
292
- display: flex;
293
- height: var(--height-tab-filter);
294
- line-height: var(--height-tab-filter);
295
-
296
- .@{tab-prefix-cls}{
297
- flex: 1;
298
- position: relative;
299
- cursor: pointer;
300
- text-align: center;
301
- color: var(--color-tab-double_click_filter-text-default);
302
- font-size: var(--en-single-f-c-r-fontSize);
303
- font-weight: var(--en-single-f-c-r-fontWeight);
304
- &--active {
305
- color: var(--color-tab-double_click_filter-text-active);
306
- font-size: var(--en-single-f-c-s-fontSize);
307
- font-weight: var(--en-single-f-c-s-fontWeight);
308
- }
309
- }
310
-
311
-
312
- }
313
- }
314
-
315
- &__scroll {
316
- overflow-x: auto;
317
- position: relative;
318
- height: 100%;
319
- &--left{
320
- position: absolute;
321
- left: 0;
322
- top: 0;
323
- height: 100%;
324
- z-index: 10;
325
- &::before {
326
- content: '';
327
- position: absolute;
328
- z-index: 1;
329
- top: 50%;
330
- transform: translateY(-50%);
331
- left: 0;
332
- width: 20px;
333
- height: 48px;
334
- background-color: var(--bg-color-1);
335
- }
336
- &::after {
337
- content: '';
338
- box-shadow: 4px 0 6px rgba(0, 0, 0, 0.05);
339
- position: absolute;
340
- top: 50%;
341
- transform: translateY(-50%);
342
- left: 0;
343
- width: 20px;
344
- height: 30px;
345
- background-color: transparent;
346
- }
347
- }
348
- &--right{
349
- position: absolute;
350
- right: 0;
351
- top: 0;
352
- height: 100%;
353
- z-index: 10;
354
- &::before {
355
- content: '';
356
- position: absolute;
357
- z-index: 1;
358
- top: 50%;
359
- transform: translateY(-50%);
360
- right: 0;
361
- width: 20px;
362
- height: 48px;
363
- background-color: var(--bg-color-1);
364
- }
365
- &::after {
366
- content: '';
367
- box-shadow: -4px 0 6px rgba(0, 0, 0, 0.05);
368
- position: absolute;
369
- top: 50%;
370
- transform: translateY(-50%);
371
- right: 0;
372
- width: 20px;
373
- height: 30px;
374
- background-color: transparent;
375
- }
376
- }
377
-
378
-
379
- }
380
-
381
- &__menu {
382
- display: flex;
383
- justify-content: space-between;
384
- align-items: center;
385
-
386
-
387
- &--right {
388
- position: relative;
389
- z-index: 11;
390
- // margin-inline-start: -12px;
391
- display: flex;
392
- height: var(--icon-large);
393
- padding-inline-end: var(--spacing-tab-primary_icon-margin_right);
394
- color: var(--text-color-h1);
395
-
396
- // &::before {
397
- // content: '';
398
- // position: absolute;
399
- // margin-inline-start: -16px;
400
- // width: 16px;
401
- // height: 100%;
402
- // background-image: linear-gradient(to left, var(--bg-color-1) 0%, rgba(255, 255, 255, 0) 100%);
403
- // }
404
-
405
- }
406
- &--margin{
407
- margin-inline-start: -12px;
408
- }
409
- &--btn {
410
- cursor: pointer;
411
- font-size: var(--icon-large)!important;
412
- }
413
-
414
- }
415
-
416
- &__wrap--bg {
417
- background-color: transparent;
418
- }
419
-
420
- &--complete {
421
- overflow-x: auto;
422
- overflow-y: hidden;
423
- -webkit-overflow-scrolling: touch;
424
- padding-inline-end: var(--spacing-tab-primary_icon-margin_right);
425
- &::-webkit-scrollbar {
426
- display: none;
427
- }
428
- }
429
-
430
-
431
- &__content--animated {
432
- overflow: hidden;
433
- }
434
- &__track {
435
- display: flex;
436
- transition: transform 0.3s;
437
- position: relative;
438
- width: 100%;
439
- height: 100%;
440
- will-change: left;
441
- }
442
-
443
-
444
- }
445
-
446
- .@{tab-prefix-cls}{
447
-
448
- &__text {
449
- display: flex;
450
- align-items: center;
451
- justify-content: center;
452
- }
453
-
454
- &__text--ellipsis {
455
- display: -webkit-box;
456
- overflow: hidden;
457
- -webkit-line-clamp: 1;
458
- -webkit-box-orient: vertical;
459
- }
460
-
461
- &__pane {
462
- flex-shrink: 0;
463
- width: 100%;
464
- &--inactive {
465
- height: 0;
466
- overflow: hidden;
467
- }
468
- }
469
-
470
- }
471
-
472
-
473
-
474
- [lang|='ar'] , [dir='rtl']{
475
- // .@{tabs-prefix-cls}__scroll {
476
- // &::before {
477
- // right: 0;
478
- // left: auto;
479
- // }
480
- // &::after {
481
- // right: 0;
482
- // left: auto;
483
- // box-shadow: -4px 0 6px rgba(0, 0, 0, 0.05);
484
- // }
485
- // }
486
- .@{tabs-prefix-cls}__menu--right::before {
487
- transform: scaleX(-1);
488
- }
489
- }
490
-
491
- [theme='dark'] {
492
- .@{tabs-prefix-cls}__scroll {
493
- &::after {
494
- box-shadow: 4px 0 6px rgba(0, 0, 0, 0.35);
495
- }
496
- }
497
- }
498
-
499
- [theme='dark'][lang|='ar'], [dir='rtl']{
500
- // .@{tabs-prefix-cls}__scroll {
501
- // &::after {
502
- // box-shadow: -4px 0 6px rgba(0, 0, 0, 0.35);
503
- // }
504
- // }
1
+ @tabs-prefix-cls: vd-tabs;
2
+ @tab-prefix-cls: vd-tab;
3
+
4
+ .@{tabs-prefix-cls} {
5
+
6
+ &__wrap {
7
+ position: relative;
8
+ width: 100%;
9
+ }
10
+
11
+ &--sticky {
12
+ position: sticky;
13
+ top: 0;
14
+ z-index: 99;
15
+ }
16
+
17
+ &__nav{
18
+ display: flex;
19
+ align-items: center;
20
+ &--primary {
21
+ position: relative;
22
+ white-space: nowrap;
23
+ padding-inline-start: var(--spacing-tab-primary-margin_left);
24
+ height: var(--height-super-large);
25
+ line-height: var(--height-super-large);
26
+
27
+ .@{tab-prefix-cls}{
28
+ position: relative;
29
+ display: inline-block;
30
+ cursor: pointer;
31
+ padding-inline-start: var(--spacing-tab-primary-padding_left);
32
+ padding-inline-end: var(--spacing-tab-primary-padding_right);
33
+ color: var(--color-tab-primary-text-default);
34
+ font-size: var(--en-single-f-d-r-fontSize);
35
+ font-weight: var(--en-single-f-d-r-fontWeight);
36
+
37
+ &--active {
38
+ color: var(--color-tab-primary-text-active);
39
+ font-size: var(--en-single-f-e-s-fontSize);
40
+ font-weight: var(--en-single-f-e-s-fontWeight);
41
+
42
+ &::before {
43
+ content: "";
44
+ bottom: 11px;
45
+ height: var(--height-tab-primary-bar);
46
+ width: var(--width-tab-primary-bar);
47
+ display: block;
48
+ position: absolute;
49
+ background-color: var(--color-tab-primary-bar-active);
50
+ left: 50%;
51
+ transform: translateX(-50%);
52
+ border-radius: var(--radius-tab-primary_bar);
53
+ }
54
+ }
55
+ &__none--line {
56
+ &::before {
57
+ display: none;
58
+ }
59
+ }
60
+ }
61
+ }
62
+
63
+ &--card {
64
+ position: relative;
65
+ display: flex;
66
+ padding-inline-start: 20px;
67
+ padding-inline-end: 20px;
68
+ height: var(--height-super-large);
69
+ line-height: var(--height-super-large);
70
+
71
+ .@{tab-prefix-cls}{
72
+ min-width: 1%;
73
+ flex: 1;
74
+ display: flex;
75
+ justify-content: center;
76
+ align-items: center;
77
+ position: relative;
78
+ cursor: pointer;
79
+ text-align: center;
80
+ color: var(--color-tab-primary-text-default);
81
+ font-size: var(--en-single-f-d-r-fontSize);
82
+ font-weight: var(--en-single-f-d-r-fontWeight);
83
+
84
+ &--active {
85
+ color: var(--color-tab-primary-text-active);
86
+ font-size: var(--en-single-f-e-s-fontSize);
87
+ font-weight: var(--en-single-f-e-s-fontWeight);
88
+
89
+ &::before {
90
+ content: "";
91
+ bottom: 11px;
92
+ height: var(--height-tab-primary-bar);
93
+ width: var(--width-tab-primary-bar);
94
+ display: block;
95
+ position: absolute;
96
+ background-color: var(--color-tab-primary-bar-active);
97
+ left: 50%;
98
+ transform: translateX(-50%);
99
+ border-radius: 1px;
100
+ }
101
+ }
102
+ &__none--line {
103
+ &::before {
104
+ display: none;
105
+ }
106
+ }
107
+ }
108
+ }
109
+
110
+ &--secondary {
111
+ display: flex;
112
+ align-items: center;
113
+ position: relative;
114
+ padding-inline-start: var(--spacing-tab-secondary-margin_left);
115
+ height: var(--height-tab-secondary);
116
+ line-height: var(--height-tab-secondary);
117
+
118
+ .@{tab-prefix-cls}{
119
+ position: relative;
120
+ display: inline-block;
121
+ cursor: pointer;
122
+ margin-inline-start: var(--spacing-tab-secondary-padding_left);
123
+ margin-inline-end: var(--spacing-tab-secondary-padding_right);
124
+ color: var(--color-tab-primary-text-default);
125
+ font-size: var(--en-single-f-c-r-fontSize);
126
+ font-weight: var(--en-single-f-c-r-fontWeight);
127
+ &--active {
128
+ color: var(--color-tab-primary-text-active);
129
+ font-size: var(--en-single-f-c-s-fontSize);
130
+ font-weight: var(--en-single-f-c-s-fontWeight);
131
+
132
+ &::before {
133
+ content: "";
134
+ bottom: 0;
135
+ height: var(--height-tab-secondary-bar);
136
+ display: block;
137
+ position: absolute;
138
+ background-color: var(--color-tab-secondary-bar-active);
139
+ left: 0;
140
+ right: 0;
141
+ width: 100%;
142
+ border-radius: var(--radius-tab-secondary-bar_top) var(--radius-tab-secondary-bar_top) var(--radius-tab-secondary-bar_bottom) var(--radius-tab-secondary-bar_bottom);
143
+ }
144
+ }
145
+ &__none--line {
146
+ &::before {
147
+ display: none;
148
+ }
149
+ }
150
+ }
151
+
152
+ }
153
+
154
+
155
+
156
+ &--capsule {
157
+ position: relative;
158
+ white-space: nowrap;
159
+ align-items: center;
160
+ padding-inline-start: var(--spacing-tab-capsule-margin_left);
161
+ height: var(--height-tab-capsule);
162
+ line-height: var(--height-tab-capsule);
163
+
164
+
165
+ .@{tab-prefix-cls}{
166
+ position: relative;
167
+ display: inline-block;
168
+ cursor: pointer;
169
+ vertical-align: middle;
170
+ height: var(--height-tab-capsule_btn);
171
+ line-height: var(--height-tab-capsule_btn);
172
+ padding-inline-start: var(--spacing-tab-capsule_btn-padding_left);
173
+ padding-inline-end: var(--spacing-tab-capsule_btn-padding_right);
174
+ margin-inline-start: var(--spacing-tab-capsule_btn-margin_right);
175
+ margin-inline-end: var(--spacing-tab-capsule_btn-margin_right);
176
+ background-color: var(--color-tab-capsule_btn-bg-default);
177
+ color: var(--color-tab-capsule-text-default);
178
+ font-size: var(--en-single-f-c-r-fontSize);
179
+ font-weight: var(--en-single-f-c-r-fontWeight);
180
+ border-radius: var(--radius-tab-capsule_button);
181
+
182
+ &--active {
183
+ color: var(--color-tab-capsule-text-active);
184
+ font-size: var(--en-single-f-c-s-fontSize);
185
+ font-weight: var(--en-single-f-c-s-fontWeight);
186
+ background-color: var(--color-tab-capsule_btn-bg-active);
187
+ }
188
+ }
189
+ }
190
+
191
+
192
+ &--selector-l {
193
+ position: relative;
194
+ display: flex;
195
+ background-color: var(--color-tab-selector-bg-default);
196
+ border-radius: var(--radius-tab-selector_card);
197
+ padding-inline-start: var(--spacing-tab-selector-margin_left);
198
+ padding-inline-end: var(--spacing-tab-selector-margin_right);
199
+ padding-block-start: var(--spacing-tab-selector-margin_top);
200
+ padding-block-end: var(--spacing-tab-selector-margin_bottom);
201
+
202
+ .@{tab-prefix-cls}{
203
+ flex: 1;
204
+ position: relative;
205
+ display: inline-block;
206
+ text-align: center;
207
+ cursor: pointer;
208
+ height: var(--height-tab-selector_l_btn);
209
+ line-height: var(--height-tab-selector_l_btn);
210
+ color: var(--color-tab-selector-text-default);
211
+ font-size: var(--en-single-f-c-r-fontSize);
212
+ font-weight: var(--en-single-f-c-r-fontWeight);
213
+
214
+ &--active {
215
+ color: var(--color-tab-selector-text-active);
216
+ font-size: var(--en-single-f-c-s-fontSize);
217
+ font-weight: var(--en-single-f-c-s-fontWeight);
218
+ background-color: var(--color-tab-selector-bg-active);
219
+ box-shadow: var(--shadow-s1);
220
+ border-radius: var(--radius-tab-selector_card);
221
+ }
222
+ }
223
+
224
+ }
225
+
226
+
227
+
228
+ &--selector-m{
229
+ position: relative;
230
+ display: flex;
231
+ background-color: var(--color-tab-selector-bg-default);
232
+ border-radius: var(--radius-tab-selector_card);
233
+ padding-inline-start: var(--spacing-tab-selector-margin_left);
234
+ padding-inline-end: var(--spacing-tab-selector-margin_right);
235
+ padding-block-start: var(--spacing-tab-selector-margin_top);
236
+ padding-block-end: var(--spacing-tab-selector-margin_bottom);
237
+
238
+ .@{tab-prefix-cls}{
239
+ flex: 1;
240
+ position: relative;
241
+ display: inline-block;
242
+ text-align: center;
243
+ cursor: pointer;
244
+ height: var(--height-tab-selector_m_btn);
245
+ line-height: var(--height-tab-selector_m_btn);
246
+ color: var(--color-tab-selector-text-default);
247
+ font-size: var(--en-single-f-b-r-fontSize);
248
+ font-weight: var(--en-single-f-b-r-fontWeight);
249
+
250
+ &--active {
251
+ color: var(--color-tab-selector-text-active);
252
+ font-size: var(--en-single-f-b-s-fontSize);
253
+ font-weight: var(--en-single-f-b-s-fontWeight);
254
+ background-color: var(--color-tab-selector-bg-active);
255
+ box-shadow: var(--shadow-s1);
256
+ border-radius: var(--radius-tab-selector_card);
257
+ }
258
+ }
259
+
260
+ }
261
+
262
+
263
+ &--filter {
264
+ position: relative;
265
+ display: flex;
266
+ height: var(--height-tab-filter);
267
+ line-height: var(--height-tab-filter);
268
+ padding-inline-start: var(--spacing-tab-filter-margin_y);
269
+ padding-inline-end: var(--spacing-tab-filter-margin_y);
270
+
271
+ .@{tab-prefix-cls}{
272
+ flex: 1;
273
+ position: relative;
274
+ cursor: pointer;
275
+ text-align: center;
276
+ color: var(--color-tab-filter-text-default);
277
+ font-size: var(--en-single-f-c-r-fontSize);
278
+ font-weight: var(--en-single-f-c-r-fontWeight);
279
+ &--active {
280
+ color: var(--color-tab-filter-text-active);
281
+ font-size: var(--en-single-f-c-s-fontSize);
282
+ font-weight: var(--en-single-f-c-s-fontWeight);
283
+
284
+ }
285
+ }
286
+
287
+
288
+ }
289
+
290
+ &--click-filter {
291
+ position: relative;
292
+ display: flex;
293
+ height: var(--height-tab-filter);
294
+ line-height: var(--height-tab-filter);
295
+
296
+ .@{tab-prefix-cls}{
297
+ flex: 1;
298
+ position: relative;
299
+ cursor: pointer;
300
+ text-align: center;
301
+ color: var(--color-tab-double_click_filter-text-default);
302
+ font-size: var(--en-single-f-c-r-fontSize);
303
+ font-weight: var(--en-single-f-c-r-fontWeight);
304
+ &--active {
305
+ color: var(--color-tab-double_click_filter-text-active);
306
+ font-size: var(--en-single-f-c-s-fontSize);
307
+ font-weight: var(--en-single-f-c-s-fontWeight);
308
+ }
309
+ }
310
+
311
+
312
+ }
313
+ }
314
+
315
+ &__scroll {
316
+ overflow-x: auto;
317
+ position: relative;
318
+ height: 100%;
319
+ &--left{
320
+ position: absolute;
321
+ left: 0;
322
+ top: 0;
323
+ height: 100%;
324
+ z-index: 10;
325
+ &::before {
326
+ content: '';
327
+ position: absolute;
328
+ z-index: 1;
329
+ top: 50%;
330
+ transform: translateY(-50%);
331
+ left: 0;
332
+ width: 20px;
333
+ height: 48px;
334
+ background-color: var(--bg-color-1);
335
+ }
336
+ &::after {
337
+ content: '';
338
+ box-shadow: 4px 0 6px rgba(0, 0, 0, 0.05);
339
+ position: absolute;
340
+ top: 50%;
341
+ transform: translateY(-50%);
342
+ left: 0;
343
+ width: 20px;
344
+ height: 30px;
345
+ background-color: transparent;
346
+ }
347
+ }
348
+ &--right{
349
+ position: absolute;
350
+ right: 0;
351
+ top: 0;
352
+ height: 100%;
353
+ z-index: 10;
354
+ &::before {
355
+ content: '';
356
+ position: absolute;
357
+ z-index: 1;
358
+ top: 50%;
359
+ transform: translateY(-50%);
360
+ right: 0;
361
+ width: 20px;
362
+ height: 48px;
363
+ background-color: var(--bg-color-1);
364
+ }
365
+ &::after {
366
+ content: '';
367
+ box-shadow: -4px 0 6px rgba(0, 0, 0, 0.05);
368
+ position: absolute;
369
+ top: 50%;
370
+ transform: translateY(-50%);
371
+ right: 0;
372
+ width: 20px;
373
+ height: 30px;
374
+ background-color: transparent;
375
+ }
376
+ }
377
+
378
+
379
+ }
380
+
381
+ &__menu {
382
+ display: flex;
383
+ justify-content: space-between;
384
+ align-items: center;
385
+
386
+
387
+ &--right {
388
+ position: relative;
389
+ z-index: 11;
390
+ // margin-inline-start: -12px;
391
+ display: flex;
392
+ height: var(--icon-large);
393
+ padding-inline-end: var(--spacing-tab-primary_icon-margin_right);
394
+ color: var(--text-color-h1);
395
+
396
+ // &::before {
397
+ // content: '';
398
+ // position: absolute;
399
+ // margin-inline-start: -16px;
400
+ // width: 16px;
401
+ // height: 100%;
402
+ // background-image: linear-gradient(to left, var(--bg-color-1) 0%, rgba(255, 255, 255, 0) 100%);
403
+ // }
404
+
405
+ }
406
+ &--margin{
407
+ margin-inline-start: -12px;
408
+ }
409
+ &--btn {
410
+ cursor: pointer;
411
+ font-size: var(--icon-large)!important;
412
+ }
413
+
414
+ }
415
+
416
+ &__wrap--bg {
417
+ background-color: transparent;
418
+ }
419
+
420
+ &--complete {
421
+ overflow-x: auto;
422
+ overflow-y: hidden;
423
+ -webkit-overflow-scrolling: touch;
424
+ padding-inline-end: var(--spacing-tab-primary_icon-margin_right);
425
+ &::-webkit-scrollbar {
426
+ display: none;
427
+ }
428
+ }
429
+
430
+
431
+ &__content--animated {
432
+ overflow: hidden;
433
+ }
434
+ &__track {
435
+ display: flex;
436
+ transition: transform 0.3s;
437
+ position: relative;
438
+ width: 100%;
439
+ height: 100%;
440
+ will-change: left;
441
+ }
442
+
443
+
444
+ }
445
+
446
+ .@{tab-prefix-cls}{
447
+
448
+ &__text {
449
+ display: flex;
450
+ align-items: center;
451
+ justify-content: center;
452
+ }
453
+
454
+ &__text--ellipsis {
455
+ display: -webkit-box;
456
+ overflow: hidden;
457
+ -webkit-line-clamp: 1;
458
+ -webkit-box-orient: vertical;
459
+ }
460
+
461
+ &__pane {
462
+ flex-shrink: 0;
463
+ width: 100%;
464
+ &--inactive {
465
+ height: 0;
466
+ overflow: hidden;
467
+ }
468
+ }
469
+
470
+ }
471
+
472
+
473
+
474
+ [lang|='ar'] , [dir='rtl']{
475
+ // .@{tabs-prefix-cls}__scroll {
476
+ // &::before {
477
+ // right: 0;
478
+ // left: auto;
479
+ // }
480
+ // &::after {
481
+ // right: 0;
482
+ // left: auto;
483
+ // box-shadow: -4px 0 6px rgba(0, 0, 0, 0.05);
484
+ // }
485
+ // }
486
+ .@{tabs-prefix-cls}__menu--right::before {
487
+ transform: scaleX(-1);
488
+ }
489
+ }
490
+
491
+ [theme='dark'] {
492
+ .@{tabs-prefix-cls}__scroll {
493
+ &--left{
494
+ &::after {
495
+ box-shadow: 4px 0 6px rgba(0, 0, 0, 0.7);
496
+ }
497
+ }
498
+ &--right{
499
+ &::after {
500
+ box-shadow: -4px 0 6px rgba(0, 0, 0, 0.7);
501
+ }
502
+ }
503
+ }
504
+ }
505
+
506
+ [theme='dark'][lang|='ar'], [dir='rtl']{
507
+ // .@{tabs-prefix-cls}__scroll {
508
+ // &::after {
509
+ // box-shadow: -4px 0 6px rgba(0, 0, 0, 0.35);
510
+ // }
511
+ // }
505
512
  }