@nutui/nutui-react 3.0.11 → 3.0.13-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -7
- package/dist/cjs/packages/address/style/address.scss +114 -0
- package/dist/cjs/packages/address/style/style.css +103 -0
- package/dist/cjs/packages/address/style-jmapp/address.scss +114 -0
- package/dist/cjs/packages/address/style-jmapp/style.css +103 -0
- package/dist/cjs/packages/address/style-jrkf/address.scss +114 -0
- package/dist/cjs/packages/address/style-jrkf/style.css +103 -0
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/elevator/style/css.js +0 -2
- package/dist/cjs/packages/elevator/style/elevator.scss +116 -95
- package/dist/cjs/packages/elevator/style/index.js +0 -2
- package/dist/cjs/packages/elevator/style/style.css +98 -83
- package/dist/cjs/packages/elevator/style-jmapp/css.js +0 -2
- package/dist/cjs/packages/elevator/style-jmapp/elevator.scss +116 -95
- package/dist/cjs/packages/elevator/style-jmapp/index.js +0 -2
- package/dist/cjs/packages/elevator/style-jmapp/style.css +98 -83
- package/dist/cjs/packages/elevator/style-jrkf/css.js +0 -2
- package/dist/cjs/packages/elevator/style-jrkf/elevator.scss +116 -95
- package/dist/cjs/packages/elevator/style-jrkf/index.js +0 -2
- package/dist/cjs/packages/elevator/style-jrkf/style.css +98 -83
- package/dist/cjs/packages/input/input.js +3 -0
- package/dist/cjs/packages/progress/progress.js +38 -17
- package/dist/cjs/packages/progress/style/progress.scss +5 -21
- package/dist/cjs/packages/progress/style/style.css +5 -19
- package/dist/cjs/packages/progress/style-jmapp/progress.scss +5 -21
- package/dist/cjs/packages/progress/style-jmapp/style.css +4 -18
- package/dist/cjs/packages/progress/style-jrkf/progress.scss +5 -21
- package/dist/cjs/packages/progress/style-jrkf/style.css +4 -18
- package/dist/cjs/packages/range/range.js +5 -11
- package/dist/cjs/packages/range/style/range.scss +6 -2
- package/dist/cjs/packages/range/style/style.css +3 -1
- package/dist/cjs/packages/range/style-jmapp/range.scss +6 -2
- package/dist/cjs/packages/range/style-jmapp/style.css +3 -1
- package/dist/cjs/packages/range/style-jrkf/range.scss +6 -2
- package/dist/cjs/packages/range/style-jrkf/style.css +3 -1
- package/dist/cjs/packages/range/utils.d.ts +3 -0
- package/dist/cjs/packages/range/utils.js +24 -0
- package/dist/cjs/packages/searchbar/searchbar.js +162 -87
- package/dist/cjs/packages/searchbar/style/searchbar.scss +99 -25
- package/dist/cjs/packages/searchbar/style/style.css +102 -38
- package/dist/cjs/packages/searchbar/style-jmapp/searchbar.scss +99 -25
- package/dist/cjs/packages/searchbar/style-jmapp/style.css +85 -21
- package/dist/cjs/packages/searchbar/style-jrkf/searchbar.scss +99 -25
- package/dist/cjs/packages/searchbar/style-jrkf/style.css +85 -21
- package/dist/cjs/packages/step/step.js +74 -33
- package/dist/cjs/packages/step/style/step.scss +104 -195
- package/dist/cjs/packages/step/style/style.css +85 -159
- package/dist/cjs/packages/step/style-jmapp/step.scss +104 -195
- package/dist/cjs/packages/step/style-jmapp/style.css +88 -162
- package/dist/cjs/packages/step/style-jrkf/step.scss +104 -195
- package/dist/cjs/packages/step/style-jrkf/style.css +88 -162
- package/dist/cjs/packages/steps/steps.js +23 -8
- package/dist/cjs/packages/steps/style/steps.scss +328 -4
- package/dist/cjs/packages/steps/style/style.css +219 -2
- package/dist/cjs/packages/steps/style-jmapp/steps.scss +328 -4
- package/dist/cjs/packages/steps/style-jmapp/style.css +219 -2
- package/dist/cjs/packages/steps/style-jrkf/steps.scss +328 -4
- package/dist/cjs/packages/steps/style-jrkf/style.css +219 -2
- package/dist/cjs/packages/swiper/swiper.js +52 -43
- package/dist/cjs/packages/textarea/textarea.d.ts +2 -2
- package/dist/cjs/packages/textarea/textarea.js +25 -8
- package/dist/cjs/packages/uploader/uploader.js +20 -9
- package/dist/cjs/types/spec/lottie/taro.d.ts +1 -0
- package/dist/cjs/types/spec/progress/base.d.ts +6 -0
- package/dist/cjs/types/spec/progress/taro.d.ts +4 -0
- package/dist/cjs/types/spec/searchbar/base.d.ts +3 -0
- package/dist/cjs/types/spec/steps/base.d.ts +11 -2
- package/dist/cjs/types/spec/swiper/base.d.ts +4 -0
- package/dist/cjs/types/spec/swiper/taro.d.ts +4 -0
- package/dist/es/packages/address/style/address.scss +114 -0
- package/dist/es/packages/address/style/style.css +103 -0
- package/dist/es/packages/address/style-jmapp/address.scss +114 -0
- package/dist/es/packages/address/style-jmapp/style.css +103 -0
- package/dist/es/packages/address/style-jrkf/address.scss +114 -0
- package/dist/es/packages/address/style-jrkf/style.css +103 -0
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/elevator/style/css.js +0 -2
- package/dist/es/packages/elevator/style/elevator.scss +116 -95
- package/dist/es/packages/elevator/style/index.js +0 -2
- package/dist/es/packages/elevator/style/style.css +98 -83
- package/dist/es/packages/elevator/style-jmapp/css.js +0 -2
- package/dist/es/packages/elevator/style-jmapp/elevator.scss +116 -95
- package/dist/es/packages/elevator/style-jmapp/index.js +0 -2
- package/dist/es/packages/elevator/style-jmapp/style.css +98 -83
- package/dist/es/packages/elevator/style-jrkf/css.js +0 -2
- package/dist/es/packages/elevator/style-jrkf/elevator.scss +116 -95
- package/dist/es/packages/elevator/style-jrkf/index.js +0 -2
- package/dist/es/packages/elevator/style-jrkf/style.css +98 -83
- package/dist/es/packages/input/input.js +3 -0
- package/dist/es/packages/progress/progress.js +38 -17
- package/dist/es/packages/progress/style/progress.scss +5 -21
- package/dist/es/packages/progress/style/style.css +5 -19
- package/dist/es/packages/progress/style-jmapp/progress.scss +5 -21
- package/dist/es/packages/progress/style-jmapp/style.css +4 -18
- package/dist/es/packages/progress/style-jrkf/progress.scss +5 -21
- package/dist/es/packages/progress/style-jrkf/style.css +4 -18
- package/dist/es/packages/range/range.js +5 -11
- package/dist/es/packages/range/style/range.scss +6 -2
- package/dist/es/packages/range/style/style.css +3 -1
- package/dist/es/packages/range/style-jmapp/range.scss +6 -2
- package/dist/es/packages/range/style-jmapp/style.css +3 -1
- package/dist/es/packages/range/style-jrkf/range.scss +6 -2
- package/dist/es/packages/range/style-jrkf/style.css +3 -1
- package/dist/es/packages/range/utils.d.ts +3 -0
- package/dist/es/packages/range/utils.js +6 -0
- package/dist/es/packages/searchbar/searchbar.js +163 -89
- package/dist/es/packages/searchbar/style/searchbar.scss +99 -25
- package/dist/es/packages/searchbar/style/style.css +102 -38
- package/dist/es/packages/searchbar/style-jmapp/searchbar.scss +99 -25
- package/dist/es/packages/searchbar/style-jmapp/style.css +85 -21
- package/dist/es/packages/searchbar/style-jrkf/searchbar.scss +99 -25
- package/dist/es/packages/searchbar/style-jrkf/style.css +85 -21
- package/dist/es/packages/step/step.js +75 -34
- package/dist/es/packages/step/style/step.scss +104 -195
- package/dist/es/packages/step/style/style.css +85 -159
- package/dist/es/packages/step/style-jmapp/step.scss +104 -195
- package/dist/es/packages/step/style-jmapp/style.css +88 -162
- package/dist/es/packages/step/style-jrkf/step.scss +104 -195
- package/dist/es/packages/step/style-jrkf/style.css +88 -162
- package/dist/es/packages/steps/steps.js +23 -8
- package/dist/es/packages/steps/style/steps.scss +328 -4
- package/dist/es/packages/steps/style/style.css +219 -2
- package/dist/es/packages/steps/style-jmapp/steps.scss +328 -4
- package/dist/es/packages/steps/style-jmapp/style.css +219 -2
- package/dist/es/packages/steps/style-jrkf/steps.scss +328 -4
- package/dist/es/packages/steps/style-jrkf/style.css +219 -2
- package/dist/es/packages/swiper/swiper.js +53 -44
- package/dist/es/packages/textarea/textarea.d.ts +2 -2
- package/dist/es/packages/textarea/textarea.js +26 -9
- package/dist/es/packages/uploader/uploader.js +20 -9
- package/dist/es/types/spec/lottie/taro.d.ts +1 -0
- package/dist/es/types/spec/progress/base.d.ts +24 -0
- package/dist/es/types/spec/progress/taro.d.ts +4 -0
- package/dist/es/types/spec/searchbar/base.d.ts +10 -1
- package/dist/es/types/spec/steps/base.d.ts +26 -5
- package/dist/es/types/spec/swiper/base.d.ts +5 -1
- package/dist/es/types/spec/swiper/taro.d.ts +4 -0
- package/dist/nutui.react.umd.js +399 -223
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +44 -44
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +37 -37
- package/dist/style.css +1 -1
- package/dist/style.scss +37 -37
- package/dist/styles/variables-jmapp.scss +133 -79
- package/dist/styles/variables-jrkf.scss +134 -80
- package/dist/styles/variables.scss +148 -89
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
}
|
|
@@ -1,8 +1,332 @@
|
|
|
1
1
|
.nut-steps {
|
|
2
2
|
display: flex;
|
|
3
|
-
}
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
}
|