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,399 +1,399 @@
1
- @prefix: ~"vd-step-item";
2
-
3
- .@{prefix} {
4
- position: relative;
5
-
6
- &.vd-step-horizontal {
7
- flex: 1;
8
- width: 100%;
9
- display: flex;
10
- justify-content: center;
11
- padding-block-start: calc(var(--spacing-steps-horizontal-padding_x) + var(--icon-steps-size) + var(--spacing-steps-horizontal_icon-margin_bottom));
12
-
13
- .vd-step-u-dot {
14
- position: absolute;
15
- // inset-inline-end: 50%;
16
- right: 50%;
17
- transform: translateX(50%);
18
- z-index: 2;
19
- display: flex;
20
- justify-content: center;
21
- align-items: center;
22
- color: inherit;
23
- width: var(--icon-steps-size);
24
- height: var(--icon-steps-size);
25
- top: var(--spacing-steps-horizontal-padding_x);
26
-
27
- .vd-iconfont {
28
- color: inherit;
29
- font-size: var(--icon-steps-size);
30
- }
31
-
32
- &::before {
33
- content: "";
34
- width: calc(var(--icon-steps-size) * 0.5);
35
- height: calc(var(--icon-steps-size) * 0.5);
36
- border-radius: 999em;
37
- overflow: hidden;
38
- background-color: var(--bg-color-1);
39
- border: 2px solid var(--text-color-h3);
40
- box-sizing: border-box;
41
- }
42
- }
43
-
44
- .vd-step-u-line {
45
- position: absolute;
46
- top: calc(var(--spacing-steps-horizontal-padding_x) + var(--icon-steps-size)/2);
47
- // inset-inline-end: 0;
48
- right: 0;
49
- z-index: 1;
50
- width: 100%;
51
- height: var(--height-steps-border-default);
52
- background: linear-gradient(to left,
53
- transparent 0%,
54
- transparent 50%,
55
- var(--color-steps-border-default) 50%,
56
- var(--color-steps-border-default) 100%);
57
- background-size: 5px var(--height-steps-border-default);
58
- background-repeat: repeat-x;
59
- }
60
-
61
- .vd-step-u-text {
62
- min-width: 0;
63
- word-break: break-word;
64
- text-align: center;
65
- // not_started
66
- color: var(--color-steps-text-not_started);
67
- font-size: var(--en-multi-f-c-r-fontSize);
68
- font-weight: var(--en-multi-f-c-r-fontWeight);
69
- line-height: var(--en-multi-f-c-r-lineHeight);
70
-
71
- &__title {
72
- overflow: hidden;
73
- display: -webkit-box;
74
- -webkit-box-orient: vertical;
75
- -webkit-line-clamp: 2;
76
- }
77
-
78
- &__description {
79
- overflow: hidden;
80
- display: -webkit-box;
81
- -webkit-box-orient: vertical;
82
- -webkit-line-clamp: 3;
83
- // description_text
84
- color: var(--color-steps-description_text);
85
- font-size: var(--en-multi-f-b-r-fontSize);
86
- font-weight: var(--en-multi-f-b-r-fontWeight);
87
- line-height: var(--en-multi-f-b-r-lineHeight);
88
- }
89
- }
90
-
91
- &.vd-step-active {
92
-
93
- .vd-step-u-text {
94
- color: var(--color-steps-text-complete);
95
- font-size: var(--en-multi-f-c-r-fontSize);
96
- font-weight: var(--en-multi-f-c-r-fontWeight);
97
- line-height: var(--en-multi-f-c-r-lineHeight);
98
- }
99
-
100
- .vd-step-u-dot {
101
- &::before {
102
- border: 2px solid var(--primary-color);
103
- }
104
- }
105
-
106
- .vd-step-u-line {
107
- height: var(--height-steps-border-hover);
108
- background: var(--color-steps-border-hover);
109
- }
110
- }
111
-
112
- &.vd-step-afoot {
113
-
114
- .vd-step-u-dot::before {
115
- content: none;
116
- }
117
-
118
- .vd-step-u-text {
119
- color: var(--color-steps-text-afoot);
120
- font-size: var(--en-multi-f-c-s-fontSize);
121
- font-weight: var(--en-multi-f-c-s-fontWeight);
122
- line-height: var(--en-multi-f-c-s-lineHeight);
123
- }
124
-
125
- .vd-step-u-line::after {
126
- content: "";
127
- position: absolute;
128
- top: 0;
129
- // inset-inline-start: 0;
130
- left: 0;
131
- width: 50%;
132
- height: var(--height-steps-border-hover);
133
- background: var(--color-steps-border-hover);
134
- }
135
- }
136
-
137
- &.vd-step-warning {
138
-
139
- .vd-step-u-dot::before {
140
- content: none;
141
- }
142
-
143
- .vd-step-u-text {
144
- color: var(--color-steps-text-warning);
145
- font-size: var(--en-multi-f-c-s-fontSize);
146
- font-weight: var(--en-multi-f-c-s-fontWeight);
147
- line-height: var(--en-multi-f-c-s-lineHeight);
148
- }
149
-
150
- .vd-step-u-line::after {
151
- content: "";
152
- position: absolute;
153
- top: 0;
154
- // inset-inline-start: 0;
155
- left: 0;
156
- width: 50%;
157
- height: var(--height-steps-border-hover);
158
- background: var(--color-steps-border-hover);
159
- }
160
- }
161
- }
162
-
163
- // vertical
164
- &.vd-step-vertical {
165
- width: 100%;
166
- padding-inline-start: calc(var(--spacing-steps-vertical-padding_y) + var(--icon-steps-size) + var(--spacing-steps-vertical_icon-margin_right));
167
-
168
- &:not(:last-child) {
169
- padding-block-end: var(--spacing-steps-vertical_description_text-margin_bottom);
170
- }
171
-
172
- .vd-step-u-dot {
173
- position: absolute;
174
- top: 0;
175
- // inset-inline-start: var(--spacing-steps-vertical-padding_y);
176
- left: var(--spacing-steps-vertical-padding_y);
177
- z-index: 2;
178
- display: flex;
179
- justify-content: center;
180
- align-items: center;
181
- color: inherit;
182
- width: var(--icon-steps-size);
183
- height: var(--icon-steps-size);
184
-
185
- .vd-iconfont {
186
- color: inherit;
187
- font-size: var(--icon-steps-size);
188
- }
189
-
190
- &::before {
191
- content: "";
192
- width: calc(var(--icon-steps-size) * 0.5);
193
- height: calc(var(--icon-steps-size) * 0.5);
194
- border-radius: 999em;
195
- overflow: hidden;
196
- background-color: var(--bg-color-1);
197
- border: 2px solid var(--text-color-h3);
198
- box-sizing: border-box;
199
- }
200
- }
201
-
202
- .vd-step-u-line {
203
- position: absolute;
204
- z-index: 1;
205
- top: calc(var(--icon-steps-size)/2);
206
- // inset-inline-start: calc(var(--spacing-steps-vertical-padding_y) + var(--icon-steps-size)/2);
207
- left: calc(var(--spacing-steps-vertical-padding_y) + var(--icon-steps-size)/2);
208
- width: var(--height-steps-border-default);
209
- height: 100%;
210
- background: linear-gradient(to bottom,
211
- transparent 0%,
212
- transparent 50%,
213
- var(--color-steps-border-default) 50%,
214
- var(--color-steps-border-default) 100%);
215
- background-size: 1px 5px;
216
- background-repeat: repeat-y;
217
- }
218
-
219
- .vd-step-u-text {
220
- min-width: 0;
221
- word-break: break-word;
222
- text-align: start;
223
- // not_started
224
- color: var(--color-steps-text-not_started);
225
- font-size: var(--en-multi-f-c-r-fontSize);
226
- font-weight: var(--en-multi-f-c-r-fontWeight);
227
- line-height: var(--en-multi-f-c-r-lineHeight);
228
-
229
- &__title {
230
- overflow: hidden;
231
- display: -webkit-box;
232
- -webkit-box-orient: vertical;
233
- -webkit-line-clamp: 2;
234
- }
235
-
236
- &__description {
237
- overflow: hidden;
238
- display: -webkit-box;
239
- -webkit-box-orient: vertical;
240
- -webkit-line-clamp: 3;
241
- // description_text
242
- color: var(--color-steps-description_text);
243
- font-size: var(--en-multi-f-b-r-fontSize);
244
- font-weight: var(--en-multi-f-b-r-fontWeight);
245
- line-height: var(--en-multi-f-b-r-lineHeight);
246
- }
247
- }
248
-
249
-
250
- &.vd-step-active {
251
-
252
- .vd-step-u-text {
253
- color: var(--color-steps-text-complete);
254
- font-size: var(--en-multi-f-c-r-fontSize);
255
- font-weight: var(--en-multi-f-c-r-fontWeight);
256
- line-height: var(--en-multi-f-c-r-lineHeight);
257
- }
258
-
259
- .vd-step-u-dot {
260
- &::before {
261
- border: 2px solid var(--primary-color);
262
- }
263
- }
264
-
265
- .vd-step-u-line::after {
266
- content: "";
267
- position: absolute;
268
- z-index: 1;
269
- top: 0;
270
- // inset-inline-start: 0;
271
- left: 0;
272
- height: 100%;
273
- width: var(--height-steps-border-default);
274
- background: var(--color-steps-border-hover);
275
- }
276
-
277
- // 复杂 css 条件,但:has兼容性不够
278
- &:not(:has(+ :is(.vd-step-active, .vd-step-afoot, .vd-step-warning))) {
279
- .vd-step-u-line::after {
280
- height: 50% !important;
281
- }
282
- }
283
- }
284
-
285
-
286
- &.vd-step-warning {
287
- .vd-step-u-line::after {
288
- height: 100%;
289
- }
290
-
291
- .vd-step-u-text {
292
- color: var(--color-steps-text-warning);
293
- font-size: var(--en-multi-f-c-s-fontSize);
294
- font-weight: var(--en-multi-f-c-s-fontWeight);
295
- line-height: var(--en-multi-f-c-s-lineHeight);
296
- }
297
-
298
- .vd-step-u-dot::before {
299
- content: none;
300
- }
301
-
302
- &+.vd-step-active {
303
- .vd-step-u-line::after {
304
- height: 100%;
305
- }
306
- }
307
- }
308
-
309
-
310
- &.vd-step-afoot {
311
- .u-line::after {
312
- height: 100%;
313
- }
314
-
315
- .vd-step-u-text {
316
- color: var(--color-steps-text-afoot);
317
- font-size: var(--en-multi-f-c-s-fontSize);
318
- font-weight: var(--en-multi-f-c-s-fontWeight);
319
- line-height: var(--en-multi-f-c-s-lineHeight);
320
- }
321
-
322
- .vd-step-u-dot::before {
323
- content: none;
324
- }
325
-
326
- &+.vd-step-active {
327
- .vd-step-u-line::after {
328
- height: 100%;
329
- }
330
- }
331
- }
332
- }
333
-
334
- // basic
335
- &.vd-step-basic {
336
- flex: 1;
337
- width: 100%;
338
- display: flex;
339
- justify-content: center;
340
- padding-top: var(--spacing-steps-basic-padding_top);
341
- padding-bottom: var(--spacing-steps-basic-padding_bottom);
342
- margin-inline-start: var(--spacing-steps-basic-padding_y);
343
-
344
- &:last-child {
345
- margin-inline-end: var(--spacing-steps-basic-padding_y);
346
- }
347
-
348
- .vd-step-u-line {
349
- width: 100%;
350
- height: var(--height-steps-basic-default);
351
- border-radius: var(--radius-steps-basic);
352
- background: var(--color-steps-basic-default);
353
- }
354
-
355
- &.vd-step-active {
356
- .vd-step-u-line {
357
- height: var(--height-steps-basic-hover);
358
- background: var(--color-steps-basic-hover);
359
- }
360
- }
361
- }
362
- }
363
-
364
-
365
- [lang|='ar'] , [dir='rtl']{
366
- .vd-step-horizontal .vd-step-u-dot {
367
- transform: translateX(-50%);
368
- right: inherit;
369
- left: 50%;
370
- }
371
- .vd-step-item.vd-step-horizontal .vd-step-u-line {
372
- right: inherit;
373
- left: 0;
374
- }
375
- .vd-step-item.vd-step-horizontal.vd-step-afoot .vd-step-u-line::after {
376
- left: inherit;
377
- right: 0;
378
- }
379
- .vd-step-item.vd-step-horizontal.vd-step-warning .vd-step-u-line::after {
380
- left: inherit;
381
- right: 0;
382
- }
383
- // vertical
384
- .vd-step-item.vd-step-vertical .vd-step-u-dot {
385
- left: inherit;
386
- right: var(--spacing-steps-vertical-padding_y);
387
- }
388
- .vd-step-item.vd-step-vertical .vd-step-u-line {
389
- left: inherit;
390
- right: calc(var(--spacing-steps-vertical-padding_y) + var(--icon-steps-size) / 2);
391
- }
392
- .vd-step-item.vd-step-vertical.vd-step-active .vd-step-u-line::after {
393
- left: inherit;
394
- right: 0;
395
- }
396
- // .vd-step-u-dot .vd-svg-icon {
397
- // transform: scaleX(1);
398
- // }
399
- }
1
+ @prefix: ~"vd-step-item";
2
+
3
+ .@{prefix} {
4
+ position: relative;
5
+
6
+ &.vd-step-horizontal {
7
+ flex: 1;
8
+ width: 100%;
9
+ display: flex;
10
+ justify-content: center;
11
+ padding-block-start: calc(var(--spacing-steps-horizontal-padding_x) + var(--icon-steps-size) + var(--spacing-steps-horizontal_icon-margin_bottom));
12
+
13
+ .vd-step-u-dot {
14
+ position: absolute;
15
+ // inset-inline-end: 50%;
16
+ right: 50%;
17
+ transform: translateX(50%);
18
+ z-index: 2;
19
+ display: flex;
20
+ justify-content: center;
21
+ align-items: center;
22
+ color: inherit;
23
+ width: var(--icon-steps-size);
24
+ height: var(--icon-steps-size);
25
+ top: var(--spacing-steps-horizontal-padding_x);
26
+
27
+ .vd-iconfont {
28
+ color: inherit;
29
+ font-size: var(--icon-steps-size);
30
+ }
31
+
32
+ &::before {
33
+ content: "";
34
+ width: calc(var(--icon-steps-size) * 0.5);
35
+ height: calc(var(--icon-steps-size) * 0.5);
36
+ border-radius: 999em;
37
+ overflow: hidden;
38
+ background-color: var(--bg-color-1);
39
+ border: 2px solid var(--text-color-h3);
40
+ box-sizing: border-box;
41
+ }
42
+ }
43
+
44
+ .vd-step-u-line {
45
+ position: absolute;
46
+ top: calc(var(--spacing-steps-horizontal-padding_x) + var(--icon-steps-size)/2);
47
+ // inset-inline-end: 0;
48
+ right: 0;
49
+ z-index: 1;
50
+ width: 100%;
51
+ height: var(--height-steps-border-default);
52
+ background: linear-gradient(to left,
53
+ transparent 0%,
54
+ transparent 50%,
55
+ var(--color-steps-border-default) 50%,
56
+ var(--color-steps-border-default) 100%);
57
+ background-size: 5px var(--height-steps-border-default);
58
+ background-repeat: repeat-x;
59
+ }
60
+
61
+ .vd-step-u-text {
62
+ min-width: 0;
63
+ word-break: break-word;
64
+ text-align: center;
65
+ // not_started
66
+ color: var(--color-steps-text-not_started);
67
+ font-size: var(--en-multi-f-c-r-fontSize);
68
+ font-weight: var(--en-multi-f-c-r-fontWeight);
69
+ line-height: var(--en-multi-f-c-r-lineHeight);
70
+
71
+ &__title {
72
+ overflow: hidden;
73
+ display: -webkit-box;
74
+ -webkit-box-orient: vertical;
75
+ -webkit-line-clamp: 2;
76
+ }
77
+
78
+ &__description {
79
+ overflow: hidden;
80
+ display: -webkit-box;
81
+ -webkit-box-orient: vertical;
82
+ -webkit-line-clamp: 3;
83
+ // description_text
84
+ color: var(--color-steps-description_text);
85
+ font-size: var(--en-multi-f-b-r-fontSize);
86
+ font-weight: var(--en-multi-f-b-r-fontWeight);
87
+ line-height: var(--en-multi-f-b-r-lineHeight);
88
+ }
89
+ }
90
+
91
+ &.vd-step-active {
92
+
93
+ .vd-step-u-text {
94
+ color: var(--color-steps-text-complete);
95
+ font-size: var(--en-multi-f-c-r-fontSize);
96
+ font-weight: var(--en-multi-f-c-r-fontWeight);
97
+ line-height: var(--en-multi-f-c-r-lineHeight);
98
+ }
99
+
100
+ .vd-step-u-dot {
101
+ &::before {
102
+ border: 2px solid var(--primary-color);
103
+ }
104
+ }
105
+
106
+ .vd-step-u-line {
107
+ height: var(--height-steps-border-hover);
108
+ background: var(--color-steps-border-hover);
109
+ }
110
+ }
111
+
112
+ &.vd-step-afoot {
113
+
114
+ .vd-step-u-dot::before {
115
+ content: none;
116
+ }
117
+
118
+ .vd-step-u-text {
119
+ color: var(--color-steps-text-afoot);
120
+ font-size: var(--en-multi-f-c-s-fontSize);
121
+ font-weight: var(--en-multi-f-c-s-fontWeight);
122
+ line-height: var(--en-multi-f-c-s-lineHeight);
123
+ }
124
+
125
+ .vd-step-u-line::after {
126
+ content: "";
127
+ position: absolute;
128
+ top: 0;
129
+ // inset-inline-start: 0;
130
+ left: 0;
131
+ width: 50%;
132
+ height: var(--height-steps-border-hover);
133
+ background: var(--color-steps-border-hover);
134
+ }
135
+ }
136
+
137
+ &.vd-step-warning {
138
+
139
+ .vd-step-u-dot::before {
140
+ content: none;
141
+ }
142
+
143
+ .vd-step-u-text {
144
+ color: var(--color-steps-text-warning);
145
+ font-size: var(--en-multi-f-c-s-fontSize);
146
+ font-weight: var(--en-multi-f-c-s-fontWeight);
147
+ line-height: var(--en-multi-f-c-s-lineHeight);
148
+ }
149
+
150
+ .vd-step-u-line::after {
151
+ content: "";
152
+ position: absolute;
153
+ top: 0;
154
+ // inset-inline-start: 0;
155
+ left: 0;
156
+ width: 50%;
157
+ height: var(--height-steps-border-hover);
158
+ background: var(--color-steps-border-hover);
159
+ }
160
+ }
161
+ }
162
+
163
+ // vertical
164
+ &.vd-step-vertical {
165
+ width: 100%;
166
+ padding-inline-start: calc(var(--spacing-steps-vertical-padding_y) + var(--icon-steps-size) + var(--spacing-steps-vertical_icon-margin_right));
167
+
168
+ &:not(:last-child) {
169
+ padding-block-end: var(--spacing-steps-vertical_description_text-margin_bottom);
170
+ }
171
+
172
+ .vd-step-u-dot {
173
+ position: absolute;
174
+ top: 0;
175
+ // inset-inline-start: var(--spacing-steps-vertical-padding_y);
176
+ left: var(--spacing-steps-vertical-padding_y);
177
+ z-index: 2;
178
+ display: flex;
179
+ justify-content: center;
180
+ align-items: center;
181
+ color: inherit;
182
+ width: var(--icon-steps-size);
183
+ height: var(--icon-steps-size);
184
+
185
+ .vd-iconfont {
186
+ color: inherit;
187
+ font-size: var(--icon-steps-size);
188
+ }
189
+
190
+ &::before {
191
+ content: "";
192
+ width: calc(var(--icon-steps-size) * 0.5);
193
+ height: calc(var(--icon-steps-size) * 0.5);
194
+ border-radius: 999em;
195
+ overflow: hidden;
196
+ background-color: var(--bg-color-1);
197
+ border: 2px solid var(--text-color-h3);
198
+ box-sizing: border-box;
199
+ }
200
+ }
201
+
202
+ .vd-step-u-line {
203
+ position: absolute;
204
+ z-index: 1;
205
+ top: calc(var(--icon-steps-size)/2);
206
+ // inset-inline-start: calc(var(--spacing-steps-vertical-padding_y) + var(--icon-steps-size)/2);
207
+ left: calc(var(--spacing-steps-vertical-padding_y) + var(--icon-steps-size)/2);
208
+ width: var(--height-steps-border-default);
209
+ height: 100%;
210
+ background: linear-gradient(to bottom,
211
+ transparent 0%,
212
+ transparent 50%,
213
+ var(--color-steps-border-default) 50%,
214
+ var(--color-steps-border-default) 100%);
215
+ background-size: 1px 5px;
216
+ background-repeat: repeat-y;
217
+ }
218
+
219
+ .vd-step-u-text {
220
+ min-width: 0;
221
+ word-break: break-word;
222
+ text-align: start;
223
+ // not_started
224
+ color: var(--color-steps-text-not_started);
225
+ font-size: var(--en-multi-f-c-r-fontSize);
226
+ font-weight: var(--en-multi-f-c-r-fontWeight);
227
+ line-height: var(--en-multi-f-c-r-lineHeight);
228
+
229
+ &__title {
230
+ overflow: hidden;
231
+ display: -webkit-box;
232
+ -webkit-box-orient: vertical;
233
+ -webkit-line-clamp: 2;
234
+ }
235
+
236
+ &__description {
237
+ overflow: hidden;
238
+ display: -webkit-box;
239
+ -webkit-box-orient: vertical;
240
+ -webkit-line-clamp: 3;
241
+ // description_text
242
+ color: var(--color-steps-description_text);
243
+ font-size: var(--en-multi-f-b-r-fontSize);
244
+ font-weight: var(--en-multi-f-b-r-fontWeight);
245
+ line-height: var(--en-multi-f-b-r-lineHeight);
246
+ }
247
+ }
248
+
249
+
250
+ &.vd-step-active {
251
+
252
+ .vd-step-u-text {
253
+ color: var(--color-steps-text-complete);
254
+ font-size: var(--en-multi-f-c-r-fontSize);
255
+ font-weight: var(--en-multi-f-c-r-fontWeight);
256
+ line-height: var(--en-multi-f-c-r-lineHeight);
257
+ }
258
+
259
+ .vd-step-u-dot {
260
+ &::before {
261
+ border: 2px solid var(--primary-color);
262
+ }
263
+ }
264
+
265
+ .vd-step-u-line::after {
266
+ content: "";
267
+ position: absolute;
268
+ z-index: 1;
269
+ top: 0;
270
+ // inset-inline-start: 0;
271
+ left: 0;
272
+ height: 100%;
273
+ width: var(--height-steps-border-default);
274
+ background: var(--color-steps-border-hover);
275
+ }
276
+
277
+ // 复杂 css 条件,但:has兼容性不够
278
+ &:not(:has(+ :is(.vd-step-active, .vd-step-afoot, .vd-step-warning))) {
279
+ .vd-step-u-line::after {
280
+ height: 50% !important;
281
+ }
282
+ }
283
+ }
284
+
285
+
286
+ &.vd-step-warning {
287
+ .vd-step-u-line::after {
288
+ height: 100%;
289
+ }
290
+
291
+ .vd-step-u-text {
292
+ color: var(--color-steps-text-warning);
293
+ font-size: var(--en-multi-f-c-s-fontSize);
294
+ font-weight: var(--en-multi-f-c-s-fontWeight);
295
+ line-height: var(--en-multi-f-c-s-lineHeight);
296
+ }
297
+
298
+ .vd-step-u-dot::before {
299
+ content: none;
300
+ }
301
+
302
+ &+.vd-step-active {
303
+ .vd-step-u-line::after {
304
+ height: 100%;
305
+ }
306
+ }
307
+ }
308
+
309
+
310
+ &.vd-step-afoot {
311
+ .u-line::after {
312
+ height: 100%;
313
+ }
314
+
315
+ .vd-step-u-text {
316
+ color: var(--color-steps-text-afoot);
317
+ font-size: var(--en-multi-f-c-s-fontSize);
318
+ font-weight: var(--en-multi-f-c-s-fontWeight);
319
+ line-height: var(--en-multi-f-c-s-lineHeight);
320
+ }
321
+
322
+ .vd-step-u-dot::before {
323
+ content: none;
324
+ }
325
+
326
+ &+.vd-step-active {
327
+ .vd-step-u-line::after {
328
+ height: 100%;
329
+ }
330
+ }
331
+ }
332
+ }
333
+
334
+ // basic
335
+ &.vd-step-basic {
336
+ flex: 1;
337
+ width: 100%;
338
+ display: flex;
339
+ justify-content: center;
340
+ padding-top: var(--spacing-steps-basic-padding_top);
341
+ padding-bottom: var(--spacing-steps-basic-padding_bottom);
342
+ margin-inline-start: var(--spacing-steps-basic-padding_y);
343
+
344
+ &:last-child {
345
+ margin-inline-end: var(--spacing-steps-basic-padding_y);
346
+ }
347
+
348
+ .vd-step-u-line {
349
+ width: 100%;
350
+ height: var(--height-steps-basic-default);
351
+ border-radius: var(--radius-steps-basic);
352
+ background: var(--color-steps-basic-default);
353
+ }
354
+
355
+ &.vd-step-active {
356
+ .vd-step-u-line {
357
+ height: var(--height-steps-basic-hover);
358
+ background: var(--color-steps-basic-hover);
359
+ }
360
+ }
361
+ }
362
+ }
363
+
364
+
365
+ [lang|='ar'] , [dir='rtl']{
366
+ .vd-step-horizontal .vd-step-u-dot {
367
+ transform: translateX(-50%);
368
+ right: inherit;
369
+ left: 50%;
370
+ }
371
+ .vd-step-item.vd-step-horizontal .vd-step-u-line {
372
+ right: inherit;
373
+ left: 0;
374
+ }
375
+ .vd-step-item.vd-step-horizontal.vd-step-afoot .vd-step-u-line::after {
376
+ left: inherit;
377
+ right: 0;
378
+ }
379
+ .vd-step-item.vd-step-horizontal.vd-step-warning .vd-step-u-line::after {
380
+ left: inherit;
381
+ right: 0;
382
+ }
383
+ // vertical
384
+ .vd-step-item.vd-step-vertical .vd-step-u-dot {
385
+ left: inherit;
386
+ right: var(--spacing-steps-vertical-padding_y);
387
+ }
388
+ .vd-step-item.vd-step-vertical .vd-step-u-line {
389
+ left: inherit;
390
+ right: calc(var(--spacing-steps-vertical-padding_y) + var(--icon-steps-size) / 2);
391
+ }
392
+ .vd-step-item.vd-step-vertical.vd-step-active .vd-step-u-line::after {
393
+ left: inherit;
394
+ right: 0;
395
+ }
396
+ // .vd-step-u-dot .vd-svg-icon {
397
+ // transform: scaleX(1);
398
+ // }
399
+ }