@nutui/nutui-react-taro 3.0.11-patch.0 → 3.0.12

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 (108) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  3. package/dist/cjs/packages/progress/progress.js +69 -33
  4. package/dist/cjs/packages/progress/style/progress.scss +5 -21
  5. package/dist/cjs/packages/progress/style/style.css +5 -19
  6. package/dist/cjs/packages/progress/style/style.harmony.css +5 -19
  7. package/dist/cjs/packages/progress/style-jmapp/progress.scss +5 -21
  8. package/dist/cjs/packages/progress/style-jmapp/style.css +4 -18
  9. package/dist/cjs/packages/progress/style-jrkf/progress.scss +5 -21
  10. package/dist/cjs/packages/progress/style-jrkf/style.css +4 -18
  11. package/dist/cjs/packages/range/range.js +163 -175
  12. package/dist/cjs/packages/range/style/range.scss +6 -2
  13. package/dist/cjs/packages/range/style/style.css +3 -1
  14. package/dist/cjs/packages/range/style/style.harmony.css +3 -1
  15. package/dist/cjs/packages/range/style-jmapp/range.scss +6 -2
  16. package/dist/cjs/packages/range/style-jmapp/style.css +3 -1
  17. package/dist/cjs/packages/range/style-jrkf/range.scss +6 -2
  18. package/dist/cjs/packages/range/style-jrkf/style.css +3 -1
  19. package/dist/cjs/packages/range/utils.d.ts +3 -0
  20. package/dist/cjs/packages/searchbar/searchbar.js +181 -77
  21. package/dist/cjs/packages/searchbar/style/searchbar.scss +99 -25
  22. package/dist/cjs/packages/searchbar/style/style.css +102 -38
  23. package/dist/cjs/packages/searchbar/style/style.harmony.css +127 -68
  24. package/dist/cjs/packages/searchbar/style-jmapp/searchbar.scss +99 -25
  25. package/dist/cjs/packages/searchbar/style-jmapp/style.css +85 -21
  26. package/dist/cjs/packages/searchbar/style-jrkf/searchbar.scss +99 -25
  27. package/dist/cjs/packages/searchbar/style-jrkf/style.css +85 -21
  28. package/dist/cjs/packages/step/step.d.ts +2 -2
  29. package/dist/cjs/packages/step/step.js +80 -45
  30. package/dist/cjs/packages/step/style/step.scss +104 -195
  31. package/dist/cjs/packages/step/style/style.css +85 -159
  32. package/dist/cjs/packages/step/style/style.harmony.css +103 -159
  33. package/dist/cjs/packages/step/style-jmapp/step.scss +104 -195
  34. package/dist/cjs/packages/step/style-jmapp/style.css +88 -162
  35. package/dist/cjs/packages/step/style-jrkf/step.scss +104 -195
  36. package/dist/cjs/packages/step/style-jrkf/style.css +88 -162
  37. package/dist/cjs/packages/steps/steps.js +23 -8
  38. package/dist/cjs/packages/steps/style/steps.scss +328 -4
  39. package/dist/cjs/packages/steps/style/style.css +219 -2
  40. package/dist/cjs/packages/steps/style/style.harmony.css +256 -2
  41. package/dist/cjs/packages/steps/style-jmapp/steps.scss +328 -4
  42. package/dist/cjs/packages/steps/style-jmapp/style.css +219 -2
  43. package/dist/cjs/packages/steps/style-jrkf/steps.scss +328 -4
  44. package/dist/cjs/packages/steps/style-jrkf/style.css +219 -2
  45. package/dist/cjs/packages/uploader/uploader.js +21 -27
  46. package/dist/cjs/types/spec/progress/base.d.ts +6 -0
  47. package/dist/cjs/types/spec/progress/taro.d.ts +4 -0
  48. package/dist/cjs/types/spec/searchbar/base.d.ts +3 -0
  49. package/dist/cjs/types/spec/steps/base.d.ts +11 -2
  50. package/dist/es/packages/configprovider/types.d.ts +1 -1
  51. package/dist/es/packages/progress/progress.js +70 -34
  52. package/dist/es/packages/progress/style/progress.scss +5 -21
  53. package/dist/es/packages/progress/style/style.css +5 -19
  54. package/dist/es/packages/progress/style/style.harmony.css +5 -19
  55. package/dist/es/packages/progress/style-jmapp/progress.scss +5 -21
  56. package/dist/es/packages/progress/style-jmapp/style.css +4 -18
  57. package/dist/es/packages/progress/style-jrkf/progress.scss +5 -21
  58. package/dist/es/packages/progress/style-jrkf/style.css +4 -18
  59. package/dist/es/packages/range/range.js +163 -175
  60. package/dist/es/packages/range/style/range.scss +6 -2
  61. package/dist/es/packages/range/style/style.css +3 -1
  62. package/dist/es/packages/range/style/style.harmony.css +3 -1
  63. package/dist/es/packages/range/style-jmapp/range.scss +6 -2
  64. package/dist/es/packages/range/style-jmapp/style.css +3 -1
  65. package/dist/es/packages/range/style-jrkf/range.scss +6 -2
  66. package/dist/es/packages/range/style-jrkf/style.css +3 -1
  67. package/dist/es/packages/range/utils.d.ts +3 -0
  68. package/dist/es/packages/searchbar/searchbar.js +183 -79
  69. package/dist/es/packages/searchbar/style/searchbar.scss +99 -25
  70. package/dist/es/packages/searchbar/style/style.css +102 -38
  71. package/dist/es/packages/searchbar/style/style.harmony.css +127 -68
  72. package/dist/es/packages/searchbar/style-jmapp/searchbar.scss +99 -25
  73. package/dist/es/packages/searchbar/style-jmapp/style.css +85 -21
  74. package/dist/es/packages/searchbar/style-jrkf/searchbar.scss +99 -25
  75. package/dist/es/packages/searchbar/style-jrkf/style.css +85 -21
  76. package/dist/es/packages/step/step.d.ts +2 -2
  77. package/dist/es/packages/step/step.js +81 -46
  78. package/dist/es/packages/step/style/step.scss +104 -195
  79. package/dist/es/packages/step/style/style.css +85 -159
  80. package/dist/es/packages/step/style/style.harmony.css +103 -159
  81. package/dist/es/packages/step/style-jmapp/step.scss +104 -195
  82. package/dist/es/packages/step/style-jmapp/style.css +88 -162
  83. package/dist/es/packages/step/style-jrkf/step.scss +104 -195
  84. package/dist/es/packages/step/style-jrkf/style.css +88 -162
  85. package/dist/es/packages/steps/steps.js +23 -8
  86. package/dist/es/packages/steps/style/steps.scss +328 -4
  87. package/dist/es/packages/steps/style/style.css +219 -2
  88. package/dist/es/packages/steps/style/style.harmony.css +256 -2
  89. package/dist/es/packages/steps/style-jmapp/steps.scss +328 -4
  90. package/dist/es/packages/steps/style-jmapp/style.css +219 -2
  91. package/dist/es/packages/steps/style-jrkf/steps.scss +328 -4
  92. package/dist/es/packages/steps/style-jrkf/style.css +219 -2
  93. package/dist/es/packages/uploader/uploader.js +21 -27
  94. package/dist/es/types/spec/progress/base.d.ts +24 -0
  95. package/dist/es/types/spec/progress/taro.d.ts +4 -0
  96. package/dist/es/types/spec/searchbar/base.d.ts +10 -1
  97. package/dist/es/types/spec/steps/base.d.ts +26 -5
  98. package/dist/nutui.react.umd.js +530 -391
  99. package/dist/style-jmapp.css +1 -1
  100. package/dist/style-jmapp.scss +42 -42
  101. package/dist/style-jrkf.css +1 -1
  102. package/dist/style-jrkf.scss +41 -41
  103. package/dist/style.css +1 -1
  104. package/dist/style.scss +37 -37
  105. package/dist/styles/variables-jmapp.scss +133 -79
  106. package/dist/styles/variables-jrkf.scss +134 -80
  107. package/dist/styles/variables.scss +148 -89
  108. package/package.json +1 -1
@@ -7,18 +7,23 @@ import classNames from "classnames";
7
7
  import { DataContext } from "./context";
8
8
  import { ComponentDefaults } from "../../utils/typings";
9
9
  var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
10
- value: 0,
11
10
  direction: 'horizontal',
12
- dot: false
11
+ layout: 'single',
12
+ type: 'text',
13
+ status: 'default',
14
+ value: 0,
15
+ icon: null
13
16
  });
14
17
  export var Steps = function(props) {
15
18
  var propSteps = _object_spread({}, defaultProps, props);
16
- var children = propSteps.children, value = propSteps.value, direction = propSteps.direction, className = propSteps.className, dot = propSteps.dot, onStepClick = propSteps.onStepClick, restProps = _object_without_properties(propSteps, [
17
- "children",
18
- "value",
19
+ var direction = propSteps.direction, value = propSteps.value, layout = propSteps.layout, status = propSteps.status, type = propSteps.type, className = propSteps.className, children = propSteps.children, onStepClick = propSteps.onStepClick, restProps = _object_without_properties(propSteps, [
19
20
  "direction",
21
+ "value",
22
+ "layout",
23
+ "status",
24
+ "type",
20
25
  "className",
21
- "dot",
26
+ "children",
22
27
  "onStepClick"
23
28
  ]);
24
29
  var parentSteps = {
@@ -26,11 +31,21 @@ export var Steps = function(props) {
26
31
  };
27
32
  var classPrefix = "nut-steps";
28
33
  var _obj;
29
- var classes = classNames(classPrefix, (_obj = {}, _define_property(_obj, "".concat(classPrefix, "-").concat(direction), true), _define_property(_obj, "".concat(classPrefix, "-dot"), !!dot), _obj), className);
34
+ var classes = classNames(classPrefix, (_obj = {}, _define_property(_obj, "".concat(classPrefix, "-").concat(direction), true), _define_property(_obj, "".concat(classPrefix, "-").concat(direction, "-count-").concat(React.Children.count(children)), true), _define_property(_obj, "".concat(classPrefix, "-").concat(direction, "-").concat(layout), true), _define_property(_obj, "".concat(classPrefix, "-").concat(direction, "-").concat(type), true), _define_property(_obj, "".concat(classPrefix, "-").concat(direction, "-").concat(status), true), _obj), className);
30
35
  return /*#__PURE__*/ React.createElement(DataContext.Provider, {
31
36
  value: parentSteps
32
37
  }, /*#__PURE__*/ React.createElement("div", _object_spread({
33
38
  className: classes
34
- }, restProps), children));
39
+ }, restProps), React.Children.map(children, function(child, index) {
40
+ if (/*#__PURE__*/ React.isValidElement(child)) {
41
+ return /*#__PURE__*/ React.cloneElement(child, {
42
+ // @ts-ignore
43
+ className: classNames(child.props.className, {
44
+ 'nut-step-last': index === React.Children.count(children) - 1
45
+ })
46
+ });
47
+ }
48
+ return child;
49
+ })));
35
50
  };
36
51
  Steps.displayName = 'NutSteps';
@@ -1,8 +1,332 @@
1
1
  .nut-steps {
2
2
  display: flex;
3
- }
4
3
 
5
- .nut-steps-vertical {
6
- height: 100%;
7
- flex-flow: column;
4
+ // 横向滚动条
5
+ &-horizontal {
6
+ flex-flow: row;
7
+
8
+ .nut-step {
9
+ &-head {
10
+ background-color: $steps-background-color;
11
+
12
+ &-icon {
13
+ .nut-icon {
14
+ height: 10px;
15
+ width: 10px;
16
+ }
17
+
18
+ .nut-image {
19
+ width: 100%;
20
+ height: 100%;
21
+ background-color: $steps-background-color;
22
+ img {
23
+ vertical-align: top;
24
+ }
25
+ }
26
+ }
27
+ }
28
+
29
+ // 流程状态-当前
30
+ &.nut-step-process {
31
+ .nut-step-title {
32
+ color: $steps-process-title-color;
33
+ }
34
+
35
+ .nut-step-description {
36
+ color: $steps-process-description-color;
37
+ }
38
+ }
39
+
40
+ // 流程状态-等待
41
+ &.nut-step-wait {
42
+ .nut-step-title {
43
+ color: $steps-wait-title-color;
44
+ }
45
+
46
+ .nut-step-description {
47
+ color: $steps-wait-description-color;
48
+ }
49
+ }
50
+
51
+ // 流程状态-完成
52
+ &.nut-step-finish {
53
+ }
54
+ }
55
+
56
+ &-single {
57
+ .nut-step {
58
+ padding-right: $steps-horizontal-item-padding-right;
59
+
60
+ &-last {
61
+ padding-right: 0 !important;
62
+ }
63
+
64
+ &-line {
65
+ top: 0;
66
+ right: 0;
67
+ height: $steps-base-head-height;
68
+ width: $steps-horizontal-item-padding-right;
69
+ padding: $steps-horizontal-item-line-padding;
70
+ box-sizing: border-box;
71
+ }
72
+
73
+ &-title,
74
+ &-description {
75
+ padding-left: 4px;
76
+ }
77
+
78
+ &-special {
79
+ padding-right: $steps-horizontal-item-special-padding-right;
80
+
81
+ .nut-step-line {
82
+ width: 100%;
83
+ }
84
+
85
+ .nut-step-title {
86
+ padding-right: 8px;
87
+ width: fit-content;
88
+ }
89
+ }
90
+ }
91
+
92
+ &.nut-steps-horizontal-count-3 {
93
+ .nut-step-special {
94
+ padding-right: $steps-horizontal-item-special-3-padding-right;
95
+ }
96
+ }
97
+ }
98
+
99
+ &-double {
100
+ width: 100%;
101
+ justify-content: space-between;
102
+
103
+ .nut-step {
104
+ flex-direction: column;
105
+ align-items: center;
106
+ flex: 1;
107
+
108
+ &-line {
109
+ top: 0;
110
+ right: -50%;
111
+ height: $steps-base-head-height;
112
+ width: 100%;
113
+
114
+ &-inner {
115
+ display: inline-flex;
116
+ height: $steps-base-line-height;
117
+ width: 100%;
118
+ background: $steps-base-line-background;
119
+ }
120
+ }
121
+
122
+ &-head {
123
+ justify-content: center;
124
+ margin-bottom: 6px;
125
+
126
+ &-dot-wrap,
127
+ &-icon-wrap,
128
+ &-text-wrap {
129
+ background-color: $steps-background-color;
130
+ padding: $steps-horizontal-item-line-padding;
131
+ }
132
+ }
133
+
134
+ &-head-icon {
135
+ height: $steps-double-head-icon-size;
136
+ width: $steps-double-head-icon-size;
137
+
138
+ .nut-icon {
139
+ height: 12px;
140
+ width: 12px;
141
+ }
142
+ }
143
+
144
+ &-main {
145
+ align-items: center;
146
+ margin-left: 0;
147
+ margin-top: 2px;
148
+ }
149
+ }
150
+
151
+ &.nut-steps-horizontal-icon {
152
+ .nut-step {
153
+ &-head,
154
+ &-line {
155
+ height: $steps-double-head-icon-size;
156
+ }
157
+ }
158
+ }
159
+
160
+ &.nut-steps-horizontal-dot {
161
+ .nut-step {
162
+ &-head,
163
+ &-line {
164
+ height: $steps-base-head-dot-size;
165
+ }
166
+ }
167
+ }
168
+
169
+ &.nut-steps-horizontal-text {
170
+ .nut-step {
171
+ &-head,
172
+ &-line {
173
+ height: $steps-base-head-text-size;
174
+ }
175
+ }
176
+ }
177
+ }
178
+ }
179
+
180
+ // 纵向滚动条
181
+ &-vertical {
182
+ /* #ifdef harmony*/
183
+ flex: 1;
184
+ min-width: 0;
185
+ /* #endif */
186
+ flex-direction: column;
187
+
188
+ .nut-step {
189
+ padding-bottom: $steps-vertical-item-padding-bottom;
190
+
191
+ &-last {
192
+ padding-bottom: 0 !important;
193
+ }
194
+
195
+ &-line {
196
+ height: calc(100% - 4px);
197
+ width: 1px;
198
+ bottom: 0;
199
+
200
+ &-inner {
201
+ height: 100%;
202
+ }
203
+ }
204
+
205
+ &-head {
206
+ align-items: center;
207
+ justify-content: center;
208
+ height: 18px;
209
+
210
+ &-icon {
211
+ width: $steps-vertical-head-icon-size;
212
+ height: $steps-vertical-head-icon-size;
213
+
214
+ .nut-icon {
215
+ height: 12px;
216
+ width: 12px;
217
+ }
218
+ }
219
+ }
220
+
221
+ &-main {
222
+ flex: 1;
223
+ min-width: 0;
224
+ height: auto;
225
+ margin-left: 8px;
226
+ }
227
+
228
+ &-title {
229
+ display: flex;
230
+ align-items: center;
231
+ height: $steps-vertical-line-height;
232
+ font-size: $steps-vertical-title-font-size;
233
+ overflow: auto;
234
+ font-weight: 500;
235
+ margin-bottom: $steps-vertical-title-margin-bottom;
236
+ }
237
+
238
+ &-description {
239
+ margin: $steps-vertical-description-margin;
240
+ height: auto;
241
+ line-height: $steps-vertical-line-height;
242
+ color: $color-title;
243
+ font-size: $steps-vertical-description-font-size;
244
+ box-sizing: border-box;
245
+ }
246
+
247
+ &-head-dot-wrap,
248
+ &-head-icon-wrap,
249
+ &-head-text-wrap {
250
+ display: flex;
251
+ align-items: center;
252
+ justify-content: center;
253
+ width: 100%;
254
+ background-color: white;
255
+ position: relative;
256
+ z-index: 1;
257
+ }
258
+
259
+ &-head-dot-wrap {
260
+ height: calc($steps-base-head-dot-size + 8px);
261
+ }
262
+
263
+ &-head-icon-wrap {
264
+ height: calc($steps-vertical-head-icon-size + 8px);
265
+ }
266
+
267
+ &-head-text-wrap {
268
+ height: calc($steps-base-head-text-size + 8px);
269
+ }
270
+ }
271
+
272
+ &-icon {
273
+ .nut-step {
274
+ &-head {
275
+ width: calc($steps-vertical-head-icon-size + 1px);
276
+ min-width: calc($steps-vertical-head-icon-size + 1px);
277
+ }
278
+
279
+ &-line {
280
+ left: calc($steps-vertical-head-icon-size / 2);
281
+ }
282
+ }
283
+ }
284
+
285
+ &-dot {
286
+ .nut-step {
287
+ &-head {
288
+ width: calc($steps-base-head-dot-size + 1px);
289
+ }
290
+
291
+ &-line {
292
+ left: calc($steps-base-head-dot-size / 2);
293
+ }
294
+ }
295
+ }
296
+
297
+ &-text {
298
+ .nut-step {
299
+ &-head {
300
+ width: calc($steps-base-head-text-size + 1px);
301
+ min-width: calc($steps-base-head-text-size + 1px);
302
+ }
303
+
304
+ &-line {
305
+ left: calc($steps-base-head-text-size / 2);
306
+ }
307
+ }
308
+ }
309
+ }
310
+
311
+ &-horizontal-enhanced,
312
+ &-vertical-enhanced {
313
+ .nut-step-finish {
314
+ .nut-step-head-icon,
315
+ .nut-step-head-text {
316
+ background-color: $steps-enhanced-finish-head-background-color;
317
+
318
+ .nut-icon {
319
+ color: $steps-enhanced-finish-head-icon-color;
320
+ }
321
+ }
322
+
323
+ .nut-step-head-text {
324
+ color: $steps-enhanced-finish-head-text-color;
325
+ }
326
+
327
+ .nut-step-head-dot {
328
+ background-color: $steps-enhanced-finish-head-dot-background-color;
329
+ }
330
+ }
331
+ }
8
332
  }
@@ -5,8 +5,225 @@
5
5
  .nut-steps {
6
6
  display: flex;
7
7
  }
8
-
8
+ .nut-steps-horizontal {
9
+ flex-flow: row;
10
+ }
11
+ .nut-steps-horizontal .nut-step-head {
12
+ background-color: var(--nutui-steps-background-color, #ffffff);
13
+ }
14
+ .nut-steps-horizontal .nut-step-head-icon .nut-icon {
15
+ height: 10px;
16
+ width: 10px;
17
+ }
18
+ .nut-steps-horizontal .nut-step-head-icon .nut-image {
19
+ width: 100%;
20
+ height: 100%;
21
+ background-color: var(--nutui-steps-background-color, #ffffff);
22
+ }
23
+ .nut-steps-horizontal .nut-step-head-icon .nut-image img {
24
+ vertical-align: top;
25
+ }
26
+ .nut-steps-horizontal .nut-step.nut-step-process .nut-step-title {
27
+ color: var(--nutui-steps-process-title-color, var(--nutui-color-primary, #ff0f23));
28
+ }
29
+ .nut-steps-horizontal .nut-step.nut-step-process .nut-step-description {
30
+ color: var(--nutui-steps-process-description-color, var(--nutui-color-primary, #ff0f23));
31
+ }
32
+ .nut-steps-horizontal .nut-step.nut-step-wait .nut-step-title {
33
+ color: var(--nutui-steps-wait-title-color, var(--nutui-color-title, #1a1a1a));
34
+ }
35
+ .nut-steps-horizontal .nut-step.nut-step-wait .nut-step-description {
36
+ color: var(--nutui-steps-wait-description-color, var(--nutui-color-text, #505259));
37
+ }
38
+ .nut-steps-horizontal-single .nut-step {
39
+ padding-right: var(--nutui-steps-horizontal-item-padding-right, 28px);
40
+ }
41
+ .nut-steps-horizontal-single .nut-step-last {
42
+ padding-right: 0 !important;
43
+ }
44
+ .nut-steps-horizontal-single .nut-step-line {
45
+ top: 0;
46
+ right: 0;
47
+ height: var(--nutui-steps-base-head-height, 14px);
48
+ width: var(--nutui-steps-horizontal-item-padding-right, 28px);
49
+ padding: var(--nutui-steps-horizontal-item-line-padding, 0 8px);
50
+ box-sizing: border-box;
51
+ }
52
+ .nut-steps-horizontal-single .nut-step-title, .nut-steps-horizontal-single .nut-step-description {
53
+ padding-left: 4px;
54
+ }
55
+ .nut-steps-horizontal-single .nut-step-special {
56
+ padding-right: var(--nutui-steps-horizontal-item-special-padding-right, 22px);
57
+ }
58
+ .nut-steps-horizontal-single .nut-step-special .nut-step-line {
59
+ width: 100%;
60
+ }
61
+ .nut-steps-horizontal-single .nut-step-special .nut-step-title {
62
+ padding-right: 8px;
63
+ width: fit-content;
64
+ }
65
+ .nut-steps-horizontal-single.nut-steps-horizontal-count-3 .nut-step-special {
66
+ padding-right: var(--nutui-steps-horizontal-item-special-3-padding-right, 9px);
67
+ }
68
+ .nut-steps-horizontal-double {
69
+ width: 100%;
70
+ justify-content: space-between;
71
+ }
72
+ .nut-steps-horizontal-double .nut-step {
73
+ flex-direction: column;
74
+ align-items: center;
75
+ flex: 1;
76
+ }
77
+ .nut-steps-horizontal-double .nut-step-line {
78
+ top: 0;
79
+ right: -50%;
80
+ height: var(--nutui-steps-base-head-height, 14px);
81
+ width: 100%;
82
+ }
83
+ .nut-steps-horizontal-double .nut-step-line-inner {
84
+ display: inline-flex;
85
+ height: var(--nutui-steps-base-line-height, 1px);
86
+ width: 100%;
87
+ background: var(--nutui-steps-base-line-background, var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
88
+ }
89
+ .nut-steps-horizontal-double .nut-step-head {
90
+ justify-content: center;
91
+ margin-bottom: 6px;
92
+ }
93
+ .nut-steps-horizontal-double .nut-step-head-dot-wrap, .nut-steps-horizontal-double .nut-step-head-icon-wrap, .nut-steps-horizontal-double .nut-step-head-text-wrap {
94
+ background-color: var(--nutui-steps-background-color, #ffffff);
95
+ padding: var(--nutui-steps-horizontal-item-line-padding, 0 8px);
96
+ }
97
+ .nut-steps-horizontal-double .nut-step-head-icon {
98
+ height: var(--nutui-steps-base-head-icon-size-right, 20px);
99
+ width: var(--nutui-steps-base-head-icon-size-right, 20px);
100
+ }
101
+ .nut-steps-horizontal-double .nut-step-head-icon .nut-icon {
102
+ height: 12px;
103
+ width: 12px;
104
+ }
105
+ .nut-steps-horizontal-double .nut-step-main {
106
+ align-items: center;
107
+ margin-left: 0;
108
+ margin-top: 2px;
109
+ }
110
+ .nut-steps-horizontal-double.nut-steps-horizontal-icon .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-icon .nut-step-line {
111
+ height: var(--nutui-steps-base-head-icon-size-right, 20px);
112
+ }
113
+ .nut-steps-horizontal-double.nut-steps-horizontal-dot .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-dot .nut-step-line {
114
+ height: var(--nutui-steps-base-head-dot-size, 6px);
115
+ }
116
+ .nut-steps-horizontal-double.nut-steps-horizontal-text .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-text .nut-step-line {
117
+ height: var(--nutui-steps-base-head-text-size, 12px);
118
+ }
9
119
  .nut-steps-vertical {
120
+ /* #ifdef harmony*/
121
+ flex: 1;
122
+ min-width: 0;
123
+ /* #endif */
124
+ flex-direction: column;
125
+ }
126
+ .nut-steps-vertical .nut-step {
127
+ padding-bottom: var(--nutui-steps-vertical-item-padding-bottom, 13px);
128
+ }
129
+ .nut-steps-vertical .nut-step-last {
130
+ padding-bottom: 0 !important;
131
+ }
132
+ .nut-steps-vertical .nut-step-line {
133
+ height: calc(100% - 4px);
134
+ width: 1px;
135
+ bottom: 0;
136
+ }
137
+ .nut-steps-vertical .nut-step-line-inner {
10
138
  height: 100%;
11
- flex-flow: column;
139
+ }
140
+ .nut-steps-vertical .nut-step-head {
141
+ align-items: center;
142
+ justify-content: center;
143
+ height: 18px;
144
+ }
145
+ .nut-steps-vertical .nut-step-head-icon {
146
+ width: var(--nutui-steps-vertical-item-icon-size, 20px);
147
+ height: var(--nutui-steps-vertical-item-icon-size, 20px);
148
+ }
149
+ .nut-steps-vertical .nut-step-head-icon .nut-icon {
150
+ height: 12px;
151
+ width: 12px;
152
+ }
153
+ .nut-steps-vertical .nut-step-main {
154
+ flex: 1;
155
+ min-width: 0;
156
+ height: auto;
157
+ margin-left: 8px;
158
+ }
159
+ .nut-steps-vertical .nut-step-title {
160
+ display: flex;
161
+ align-items: center;
162
+ height: var(--nutui-steps-vertical-line-height, 18px);
163
+ font-size: var(--nutui-steps-vertical-title-font-size, var(--nutui-font-size-l, 16px));
164
+ overflow: auto;
165
+ font-weight: 500;
166
+ margin-bottom: var(--nutui-steps-vertical-title-margin-bottom, 4px);
167
+ }
168
+ .nut-steps-vertical .nut-step-description {
169
+ margin: var(--nutui-steps-vertical-description-margin, 0 0 1px);
170
+ height: auto;
171
+ line-height: var(--nutui-steps-vertical-line-height, 18px);
172
+ color: var(--nutui-color-title, #1a1a1a);
173
+ font-size: var(--nutui-steps-vertical-description-font-size, var(--nutui-font-size-base, 14px));
174
+ box-sizing: border-box;
175
+ }
176
+ .nut-steps-vertical .nut-step-head-dot-wrap, .nut-steps-vertical .nut-step-head-icon-wrap, .nut-steps-vertical .nut-step-head-text-wrap {
177
+ display: flex;
178
+ align-items: center;
179
+ justify-content: center;
180
+ width: 100%;
181
+ background-color: white;
182
+ position: relative;
183
+ z-index: 1;
184
+ }
185
+ .nut-steps-vertical .nut-step-head-dot-wrap {
186
+ height: calc(var(--nutui-steps-base-head-dot-size, 6px) + 8px);
187
+ }
188
+ .nut-steps-vertical .nut-step-head-icon-wrap {
189
+ height: calc(var(--nutui-steps-vertical-item-icon-size, 20px) + 8px);
190
+ }
191
+ .nut-steps-vertical .nut-step-head-text-wrap {
192
+ height: calc(var(--nutui-steps-base-head-text-size, 12px) + 8px);
193
+ }
194
+ .nut-steps-vertical-icon .nut-step-head {
195
+ width: calc(var(--nutui-steps-vertical-item-icon-size, 20px) + 1px);
196
+ min-width: calc(var(--nutui-steps-vertical-item-icon-size, 20px) + 1px);
197
+ }
198
+ .nut-steps-vertical-icon .nut-step-line {
199
+ left: calc(var(--nutui-steps-vertical-item-icon-size, 20px) / 2);
200
+ }
201
+ .nut-steps-vertical-dot .nut-step-head {
202
+ width: calc(var(--nutui-steps-base-head-dot-size, 6px) + 1px);
203
+ }
204
+ .nut-steps-vertical-dot .nut-step-line {
205
+ left: calc(var(--nutui-steps-base-head-dot-size, 6px) / 2);
206
+ }
207
+ .nut-steps-vertical-text .nut-step-head {
208
+ width: calc(var(--nutui-steps-base-head-text-size, 12px) + 1px);
209
+ min-width: calc(var(--nutui-steps-base-head-text-size, 12px) + 1px);
210
+ }
211
+ .nut-steps-vertical-text .nut-step-line {
212
+ left: calc(var(--nutui-steps-base-head-text-size, 12px) / 2);
213
+ }
214
+ .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-icon,
215
+ .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-icon,
216
+ .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-text {
217
+ background-color: var(--nutui-steps-enhanced-finish-head-background-color, var(--nutui-color-primary-light-pressed, #ffebf1));
218
+ }
219
+ .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-icon .nut-icon,
220
+ .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text .nut-icon, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-icon .nut-icon,
221
+ .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-text .nut-icon {
222
+ color: var(--nutui-steps-enhanced-finish-head-icon-color, var(--nutui-color-primary-stop-1, #ff475d));
223
+ }
224
+ .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-text {
225
+ color: var(--nutui-steps-enhanced-finish-head-text-color, var(--nutui-color-primary-stop-1, #ff475d));
226
+ }
227
+ .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-dot, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-dot {
228
+ background-color: var(--nutui-steps-enhanced-finish-head-dot-background-color, var(--nutui-color-primary-disabled-special, #ffadbe));
12
229
  }