@nutui/nutui-react 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.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- 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/uploader/uploader.js +20 -9
- 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/es/packages/configprovider/types.d.ts +1 -1
- 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/uploader/uploader.js +20 -9
- 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/nutui.react.umd.js +317 -167
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +39 -39
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +42 -42
- package/dist/style.css +1 -1
- package/dist/style.scss +41 -41
- 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
|
@@ -3,195 +3,121 @@
|
|
|
3
3
|
/* #ifndef harmony */
|
|
4
4
|
/* #endif */
|
|
5
5
|
.nut-step {
|
|
6
|
-
flex-grow: 0;
|
|
7
|
-
flex-shrink: 0;
|
|
8
|
-
flex: 1;
|
|
9
|
-
text-align: center;
|
|
10
|
-
font-size: 0;
|
|
11
|
-
}
|
|
12
|
-
.nut-step-head {
|
|
13
6
|
position: relative;
|
|
14
7
|
display: flex;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
margin-bottom: var(--nutui-steps-base-icon-margin-bottom, 12px);
|
|
17
8
|
}
|
|
18
|
-
.nut-step-line {
|
|
19
|
-
|
|
20
|
-
top: calc(var(--nutui-steps-base-icon-height, 25px) / 2);
|
|
21
|
-
left: calc(50% + (100% - var(--nutui-steps-base-line-width, 70%)) / 2);
|
|
22
|
-
height: var(--nutui-steps-base-line-height, 1px);
|
|
23
|
-
width: var(--nutui-steps-base-line-width, 70%);
|
|
24
|
-
background: var(--nutui-steps-base-line-background, var(--nutui-color-text-help, #888b94));
|
|
9
|
+
.nut-step-last .nut-step-line {
|
|
10
|
+
display: none;
|
|
25
11
|
}
|
|
26
|
-
.nut-step-
|
|
12
|
+
.nut-step-head {
|
|
27
13
|
position: relative;
|
|
28
14
|
display: flex;
|
|
29
15
|
align-items: center;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
height: var(--nutui-steps-base-icon-height, 25px);
|
|
33
|
-
line-height: var(--nutui-steps-base-icon-line-height, 25px);
|
|
34
|
-
font-size: var(--nutui-steps-base-icon-font-size, var(--nutui-font-size-s, 12px));
|
|
35
|
-
background-color: var(--nutui-steps-wait-icon-bg-color, var(--nutui-color-text-help, #888b94));
|
|
36
|
-
border-color: var(--nutui-steps-wait-icon-bg-color, var(--nutui-color-text-help, #888b94));
|
|
37
|
-
color: var(--nutui-steps-wait-icon-color, #ffffff);
|
|
16
|
+
height: var(--nutui-steps-base-head-height, 14px);
|
|
17
|
+
position: relative;
|
|
38
18
|
z-index: 1;
|
|
39
19
|
}
|
|
40
|
-
.nut-step-
|
|
41
|
-
|
|
42
|
-
|
|
20
|
+
.nut-step-head-text {
|
|
21
|
+
height: var(--nutui-steps-base-head-text-size, 12px);
|
|
22
|
+
width: var(--nutui-steps-base-head-text-size, 12px);
|
|
23
|
+
background-color: var(--nutui-steps-base-head-background-color, var(--nutui-color-background, #f2f3f5));
|
|
24
|
+
color: var(--nutui-steps-base-head-color, var(--nutui-color-text, #505259));
|
|
25
|
+
font-size: var(--nutui-steps-base-icon-size, var(--nutui-font-size-xxs, 10px));
|
|
43
26
|
}
|
|
44
|
-
.nut-step-icon
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
27
|
+
.nut-step-head-icon {
|
|
28
|
+
height: var(--nutui-steps-base-head-icon-size, 16px);
|
|
29
|
+
width: var(--nutui-steps-base-head-icon-size, 16px);
|
|
30
|
+
background-color: var(--nutui-steps-base-head-background-color, var(--nutui-color-background, #f2f3f5));
|
|
31
|
+
}
|
|
32
|
+
.nut-step-head-icon .nut-icon {
|
|
33
|
+
color: white;
|
|
34
|
+
}
|
|
35
|
+
.nut-step-head-dot {
|
|
36
|
+
height: var(--nutui-steps-base-head-dot-size, 6px);
|
|
37
|
+
width: var(--nutui-steps-base-head-dot-size, 6px);
|
|
38
|
+
background-color: var(--nutui-steps-base-head-dot-background-color, var(--nutui-color-text-disabled, #c2c4cc));
|
|
48
39
|
}
|
|
49
|
-
.nut-step-
|
|
40
|
+
.nut-step-head-dot, .nut-step-head-icon, .nut-step-head-text {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
50
44
|
border-radius: 50%;
|
|
51
|
-
|
|
52
|
-
border
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
border: var(--nutui-steps-base-head-border, none);
|
|
47
|
+
}
|
|
48
|
+
.nut-step-line {
|
|
49
|
+
position: absolute;
|
|
50
|
+
z-index: 0;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
}
|
|
55
|
+
.nut-step-line-inner {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex: 1;
|
|
58
|
+
height: var(--nutui-steps-base-line-height, 1px);
|
|
59
|
+
background: var(--nutui-steps-base-line-background, var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
|
|
53
60
|
}
|
|
54
61
|
.nut-step-main {
|
|
55
|
-
|
|
62
|
+
position: relative;
|
|
56
63
|
display: flex;
|
|
57
64
|
flex-direction: column;
|
|
58
65
|
justify-content: center;
|
|
59
|
-
|
|
66
|
+
min-height: var(--nutui-steps-base-head-height, 14px);
|
|
67
|
+
}
|
|
68
|
+
.nut-step-line, .nut-step-title {
|
|
69
|
+
background-color: #ffffff;
|
|
70
|
+
}
|
|
71
|
+
.nut-step-title {
|
|
72
|
+
position: relative;
|
|
73
|
+
z-index: 1;
|
|
60
74
|
}
|
|
61
75
|
.nut-step-title {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
font-size: var(--nutui-steps-base-title-font-size, var(--nutui-font-size-
|
|
76
|
+
height: 14px;
|
|
77
|
+
line-height: 14px;
|
|
78
|
+
font-size: var(--nutui-steps-base-title-font-size, var(--nutui-font-size-s, 12px));
|
|
65
79
|
color: var(--nutui-steps-base-title-color, var(--nutui-color-title, #1a1a1a));
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
white-space: nowrap;
|
|
66
82
|
}
|
|
67
83
|
.nut-step-description {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
.nut-step.nut-step-process .nut-step-icon {
|
|
76
|
-
background-color: var(--nutui-steps-process-icon-bg-color, var(--nutui-color-primary, #ff0f23));
|
|
77
|
-
border-color: var(--nutui-steps-process-icon-bg-color, var(--nutui-color-primary, #ff0f23));
|
|
78
|
-
color: var(--nutui-steps-process-icon-color, #ffffff);
|
|
79
|
-
}
|
|
80
|
-
.nut-step.nut-step-process .nut-step-title {
|
|
81
|
-
color: var(--nutui-steps-process-title-color, var(--nutui-color-primary, #ff0f23));
|
|
82
|
-
font-size: var(--nutui-steps-process-title-font-size, var(--nutui-font-size-base, 14px));
|
|
83
|
-
font-weight: var(--nutui-steps-process-title-font-weight, var(--nutui-font-weight-bold, 600));
|
|
84
|
-
}
|
|
85
|
-
.nut-step.nut-step-process .nut-step-description {
|
|
86
|
-
color: var(--nutui-steps-process-description-color, var(--nutui-color-text, #505259));
|
|
84
|
+
height: 16px;
|
|
85
|
+
line-height: 16px;
|
|
86
|
+
margin-top: var(--nutui-steps-base-title-margin-bottom, 2px);
|
|
87
|
+
font-size: var(--nutui-steps-base-description-font-size, var(--nutui-font-size-xxs, 10px));
|
|
88
|
+
color: var(--nutui-steps-base-description-color, var(--nutui-color-text-help, #888b94));
|
|
89
|
+
overflow: hidden;
|
|
87
90
|
}
|
|
88
|
-
.nut-step.nut-step-
|
|
89
|
-
|
|
91
|
+
.nut-step.nut-step-process .nut-step-head-icon,
|
|
92
|
+
.nut-step.nut-step-process .nut-step-head-text,
|
|
93
|
+
.nut-step.nut-step-process .nut-step-head-dot {
|
|
94
|
+
background-color: var(--nutui-steps-process-head-background-color, var(--nutui-color-primary, #ff0f23));
|
|
90
95
|
}
|
|
91
|
-
.nut-step.nut-step-
|
|
92
|
-
color: var(--nutui-steps-
|
|
96
|
+
.nut-step.nut-step-process .nut-step-head-text {
|
|
97
|
+
color: var(--nutui-steps-process-color, #ffffff);
|
|
93
98
|
}
|
|
94
|
-
.nut-step.nut-step-
|
|
95
|
-
|
|
96
|
-
border-color: var(--nutui-steps-finish-icon-border-color, var(--nutui-steps-finish-icon-color, var(--nutui-color-primary, #ff0f23)));
|
|
97
|
-
color: var(--nutui-steps-finish-icon-color, var(--nutui-color-primary, #ff0f23));
|
|
99
|
+
.nut-step.nut-step-wait .nut-step-head-icon .nut-icon {
|
|
100
|
+
color: var(--nutui-steps-wait-icon-color, var(--nutui-color-text-help, #888b94));
|
|
98
101
|
}
|
|
99
|
-
.nut-step.nut-step-finish .nut-step-
|
|
100
|
-
|
|
102
|
+
.nut-step.nut-step-finish .nut-step-head-icon .nut-icon {
|
|
103
|
+
color: var(--nutui-steps-finish-icon-color, var(--nutui-color-text-help, #888b94));
|
|
101
104
|
}
|
|
102
|
-
.nut-step.nut-step-
|
|
103
|
-
color: var(--nutui-steps-
|
|
105
|
+
.nut-step.nut-step-business .nut-step-head-text {
|
|
106
|
+
color: var(--nutui-steps-business-head-text-color, var(--nutui-color-service-pressed));
|
|
104
107
|
}
|
|
105
|
-
.nut-step.nut-step-
|
|
106
|
-
color: var(--nutui-steps-
|
|
108
|
+
.nut-step.nut-step-business .nut-step-title {
|
|
109
|
+
color: var(--nutui-steps-business-title-color, var(--nutui-color-service-pressed));
|
|
107
110
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
margin: var(--nutui-steps-dot-head-margin, 10px 0);
|
|
111
|
+
.nut-step.nut-step-business .nut-step-description {
|
|
112
|
+
color: var(--nutui-steps-business-description-color, var(--nutui-color-service-pressed));
|
|
111
113
|
}
|
|
112
|
-
.nut-
|
|
113
|
-
|
|
114
|
+
.nut-step.nut-step-business .nut-step-head-dot {
|
|
115
|
+
background-color: var(--nutui-steps-business-head-dot-background-color, var(--nutui-color-service-pressed));
|
|
114
116
|
}
|
|
115
|
-
.nut-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
border: var(--nutui-steps-dot-icon-border, 2px solid #ffffff);
|
|
119
|
-
border-radius: 50%;
|
|
120
|
-
box-sizing: content-box;
|
|
121
|
-
}
|
|
122
|
-
.nut-steps-dot .nut-step-wait .nut-step-icon {
|
|
123
|
-
background-color: var(--nutui-steps-dot-wait-icon-bg-color, var(--nutui-steps-wait-icon-bg-color, var(--nutui-color-text-help, #888b94)));
|
|
117
|
+
.nut-step.nut-step-business .nut-step-head-icon,
|
|
118
|
+
.nut-step.nut-step-business .nut-step-head-text {
|
|
119
|
+
background-color: var(--nutui-steps-business-head-background-color, var(--nutui-color-service));
|
|
124
120
|
}
|
|
125
|
-
.nut-
|
|
126
|
-
|
|
127
|
-
border-color: var(--nutui-steps-dot-finish-icon-bg-color, var(--nutui-steps-finish-icon-color, var(--nutui-color-primary, #ff0f23)));
|
|
128
|
-
}
|
|
129
|
-
.nut-steps-dot .nut-step-process .nut-step-icon {
|
|
130
|
-
position: relative;
|
|
131
|
-
}
|
|
132
|
-
.nut-steps-dot .nut-step-process .nut-step-icon:before {
|
|
133
|
-
content: "";
|
|
134
|
-
display: inline-block;
|
|
135
|
-
position: absolute;
|
|
136
|
-
left: 50%;
|
|
137
|
-
top: 50%;
|
|
138
|
-
margin-left: -7px;
|
|
139
|
-
margin-top: -7px;
|
|
140
|
-
width: 14px;
|
|
141
|
-
height: 14px;
|
|
142
|
-
background-color: var(--nutui-steps-process-icon-before-bg-color, var(--nutui-color-primary-stop-2, #ff0f23));
|
|
143
|
-
border-radius: 50%;
|
|
144
|
-
opacity: 0.23;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.nut-steps-horizontal.nut-steps-dot .nut-step-line {
|
|
148
|
-
top: 50%;
|
|
149
|
-
bottom: -50%;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.nut-steps-vertical .nut-step {
|
|
153
|
-
display: flex;
|
|
154
|
-
height: 33.34%;
|
|
155
|
-
}
|
|
156
|
-
.nut-steps-vertical .nut-step-line {
|
|
157
|
-
position: absolute;
|
|
158
|
-
display: inline-block;
|
|
159
|
-
width: 1px;
|
|
160
|
-
height: var(--nutui-steps-base-line-width, 70%);
|
|
161
|
-
background: var(--nutui-steps-base-line-background, var(--nutui-color-text-help, #888b94));
|
|
162
|
-
top: calc(var(--nutui-steps-base-icon-height, 25px) + (100% - var(--nutui-steps-base-line-width, 70%) - var(--nutui-steps-base-icon-margin-bottom, 12px)) / 2);
|
|
163
|
-
left: calc(50% - 1px);
|
|
164
|
-
}
|
|
165
|
-
.nut-steps-vertical.nut-steps-dot .nut-step-line {
|
|
166
|
-
top: calc(var(--nutui-steps-dot-icon-height, 6px) + (100% - var(--nutui-steps-base-line-width, 70%)) / 2);
|
|
167
|
-
}
|
|
168
|
-
.nut-steps-vertical .nut-step-main {
|
|
169
|
-
display: inline-block;
|
|
170
|
-
padding-left: 6%;
|
|
171
|
-
text-align: start;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
[dir=rtl] .nut-step-line,
|
|
175
|
-
.nut-rtl .nut-step-line {
|
|
176
|
-
left: auto;
|
|
177
|
-
right: calc(50% + (100% - var(--nutui-steps-base-line-width, 70%)) / 2);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
[dir=rtl] .nut-steps-dot .nut-step-process .nut-step-icon:before,
|
|
181
|
-
.nut-rtl .nut-steps-dot .nut-step-process .nut-step-icon:before {
|
|
182
|
-
left: auto;
|
|
183
|
-
right: 50%;
|
|
184
|
-
margin-left: 0;
|
|
185
|
-
margin-right: -7px;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
[dir=rtl] .nut-steps-vertical .nut-step-line,
|
|
189
|
-
.nut-rtl .nut-steps-vertical .nut-step-line {
|
|
190
|
-
left: auto;
|
|
191
|
-
right: calc(50% - 1px);
|
|
192
|
-
}
|
|
193
|
-
[dir=rtl] .nut-steps-vertical .nut-step-main,
|
|
194
|
-
.nut-rtl .nut-steps-vertical .nut-step-main {
|
|
195
|
-
padding-left: 0;
|
|
196
|
-
padding-right: 6%;
|
|
121
|
+
.nut-step.nut-step-business .nut-step-head-icon .nut-icon {
|
|
122
|
+
color: var(--nutui-steps-business-head-icon-color, var(--nutui-color-service-pressed));
|
|
197
123
|
}
|
|
@@ -1,257 +1,166 @@
|
|
|
1
1
|
.nut-step {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
flex: 1;
|
|
5
|
-
text-align: center;
|
|
6
|
-
font-size: 0;
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
7
4
|
|
|
8
|
-
&-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
margin-bottom: $steps-base-icon-margin-bottom;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// 计算方法:left = calc(50% + (100% - $steps-base-line-width) / 2)
|
|
16
|
-
// 如 width=70%时,left=65%; width=100%,left=50%;
|
|
17
|
-
&-line {
|
|
18
|
-
position: absolute;
|
|
19
|
-
top: calc($steps-base-icon-height / 2);
|
|
20
|
-
left: calc(50% + (100% - $steps-base-line-width) / 2);
|
|
21
|
-
height: $steps-base-line-height;
|
|
22
|
-
width: $steps-base-line-width;
|
|
23
|
-
background: $steps-base-line-background;
|
|
5
|
+
&-last {
|
|
6
|
+
.nut-step-line {
|
|
7
|
+
display: none;
|
|
8
|
+
}
|
|
24
9
|
}
|
|
25
10
|
|
|
26
|
-
&-
|
|
11
|
+
&-head {
|
|
27
12
|
position: relative;
|
|
28
13
|
display: flex;
|
|
29
14
|
align-items: center;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
height: $steps-base-icon-height;
|
|
33
|
-
line-height: $steps-base-icon-line-height;
|
|
34
|
-
font-size: $steps-base-icon-font-size;
|
|
35
|
-
background-color: $steps-wait-icon-bg-color;
|
|
36
|
-
border-color: $steps-wait-icon-bg-color;
|
|
37
|
-
color: $steps-wait-icon-color;
|
|
15
|
+
height: $steps-base-head-height;
|
|
16
|
+
position: relative;
|
|
38
17
|
z-index: 1;
|
|
39
18
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
19
|
+
&-text {
|
|
20
|
+
height: $steps-base-head-text-size;
|
|
21
|
+
width: $steps-base-head-text-size;
|
|
22
|
+
background-color: $steps-base-head-background-color;
|
|
23
|
+
color: $steps-base-head-color;
|
|
24
|
+
font-size: $steps-base-head-size;
|
|
43
25
|
}
|
|
44
26
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
27
|
+
&-icon {
|
|
28
|
+
height: $steps-base-head-icon-size;
|
|
29
|
+
width: $steps-base-head-icon-size;
|
|
30
|
+
background-color: $steps-base-head-background-color;
|
|
31
|
+
|
|
32
|
+
.nut-icon {
|
|
33
|
+
color: white;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-dot {
|
|
38
|
+
height: $steps-base-head-dot-size;
|
|
39
|
+
width: $steps-base-head-dot-size;
|
|
40
|
+
background-color: $steps-base-head-dot-background-color;
|
|
49
41
|
}
|
|
50
42
|
|
|
51
|
-
|
|
43
|
+
&-dot,
|
|
44
|
+
&-icon,
|
|
45
|
+
&-text {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
52
49
|
border-radius: 50%;
|
|
53
|
-
|
|
54
|
-
border
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
border: $steps-base-head-border;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-line {
|
|
56
|
+
position: absolute;
|
|
57
|
+
z-index: 0;
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
|
|
62
|
+
&-inner {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex: 1;
|
|
65
|
+
height: $steps-base-line-height;
|
|
66
|
+
background: $steps-base-line-background;
|
|
55
67
|
}
|
|
56
68
|
}
|
|
57
69
|
|
|
58
70
|
&-main {
|
|
59
|
-
|
|
71
|
+
position: relative;
|
|
60
72
|
display: flex;
|
|
61
73
|
flex-direction: column;
|
|
62
74
|
justify-content: center;
|
|
63
|
-
|
|
75
|
+
min-height: $steps-base-head-height;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-line,
|
|
79
|
+
&-title {
|
|
80
|
+
background-color: #ffffff;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&-title {
|
|
84
|
+
position: relative;
|
|
85
|
+
z-index: 1;
|
|
64
86
|
}
|
|
65
87
|
|
|
66
88
|
&-title {
|
|
67
|
-
|
|
68
|
-
|
|
89
|
+
height: 14px;
|
|
90
|
+
line-height: 14px;
|
|
69
91
|
font-size: $steps-base-title-font-size;
|
|
70
92
|
color: $steps-base-title-color;
|
|
93
|
+
overflow: hidden;
|
|
94
|
+
white-space: nowrap;
|
|
71
95
|
}
|
|
72
96
|
|
|
73
97
|
&-description {
|
|
74
|
-
|
|
98
|
+
height: 16px;
|
|
99
|
+
line-height: 16px;
|
|
100
|
+
margin-top: $steps-base-description-margin-top;
|
|
75
101
|
font-size: $steps-base-description-font-size;
|
|
76
102
|
color: $steps-base-description-color;
|
|
103
|
+
overflow: hidden;
|
|
77
104
|
}
|
|
78
105
|
|
|
79
|
-
|
|
80
|
-
.nut-step-line {
|
|
81
|
-
display: none;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
106
|
+
// 流程状态-当前
|
|
85
107
|
&.nut-step-process {
|
|
86
|
-
.nut-step-icon
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
color: $steps-process-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.nut-step-title {
|
|
93
|
-
color: $steps-process-title-color;
|
|
94
|
-
font-size: $steps-process-title-font-size;
|
|
95
|
-
font-weight: $steps-process-title-font-weight;
|
|
108
|
+
.nut-step-head-icon,
|
|
109
|
+
.nut-step-head-text,
|
|
110
|
+
.nut-step-head-dot {
|
|
111
|
+
background-color: $steps-process-head-background-color;
|
|
96
112
|
}
|
|
97
113
|
|
|
98
|
-
.nut-step-
|
|
99
|
-
color: $steps-process-
|
|
114
|
+
.nut-step-head-text {
|
|
115
|
+
color: $steps-process-color;
|
|
100
116
|
}
|
|
101
117
|
}
|
|
102
118
|
|
|
119
|
+
// 流程状态-等待
|
|
103
120
|
&.nut-step-wait {
|
|
104
|
-
.nut-step-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
.nut-step-description {
|
|
109
|
-
color: $steps-wait-description-color;
|
|
121
|
+
.nut-step-head-icon {
|
|
122
|
+
.nut-icon {
|
|
123
|
+
color: $steps-wait-icon-color;
|
|
124
|
+
}
|
|
110
125
|
}
|
|
111
126
|
}
|
|
112
127
|
|
|
128
|
+
// 流程状态-完成
|
|
113
129
|
&.nut-step-finish {
|
|
114
|
-
.nut-step-icon {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
130
|
+
.nut-step-head-icon {
|
|
131
|
+
.nut-icon {
|
|
132
|
+
color: $steps-finish-icon-color;
|
|
133
|
+
}
|
|
118
134
|
}
|
|
135
|
+
}
|
|
119
136
|
|
|
120
|
-
|
|
121
|
-
|
|
137
|
+
// 强化业务属性展示
|
|
138
|
+
&.nut-step-business {
|
|
139
|
+
.nut-step-head-text {
|
|
140
|
+
color: $steps-business-head-text-color;
|
|
122
141
|
}
|
|
123
142
|
|
|
124
143
|
.nut-step-title {
|
|
125
|
-
color: $steps-
|
|
144
|
+
color: $steps-business-title-color;
|
|
126
145
|
}
|
|
127
146
|
|
|
128
147
|
.nut-step-description {
|
|
129
|
-
color: $steps-
|
|
148
|
+
color: $steps-business-description-color;
|
|
130
149
|
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.nut-steps-dot {
|
|
135
|
-
.nut-step-head {
|
|
136
|
-
margin: $steps-dot-head-margin;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.nut-step-line {
|
|
140
|
-
top: 7px;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.nut-step-icon {
|
|
144
|
-
width: $steps-dot-icon-width;
|
|
145
|
-
height: $steps-dot-icon-height;
|
|
146
|
-
border: $steps-dot-icon-border;
|
|
147
|
-
border-radius: 50%;
|
|
148
|
-
box-sizing: content-box;
|
|
149
|
-
}
|
|
150
150
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
background-color: $steps-dot-wait-icon-bg-color;
|
|
151
|
+
.nut-step-head-dot {
|
|
152
|
+
background-color: $steps-business-head-dot-background-color;
|
|
154
153
|
}
|
|
155
|
-
}
|
|
156
154
|
|
|
157
|
-
|
|
158
|
-
.nut-step-
|
|
159
|
-
background-color: $steps-
|
|
160
|
-
border-color: $steps-dot-finish-icon-border-color;
|
|
155
|
+
.nut-step-head-icon,
|
|
156
|
+
.nut-step-head-text {
|
|
157
|
+
background-color: $steps-business-head-background-color;
|
|
161
158
|
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.nut-step-process {
|
|
165
|
-
.nut-step-icon {
|
|
166
|
-
position: relative;
|
|
167
159
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
position: absolute;
|
|
172
|
-
left: 50%;
|
|
173
|
-
top: 50%;
|
|
174
|
-
margin-left: -7px;
|
|
175
|
-
margin-top: -7px;
|
|
176
|
-
width: 14px;
|
|
177
|
-
height: 14px;
|
|
178
|
-
background-color: $steps-process-icon-before-bg-color;
|
|
179
|
-
border-radius: 50%;
|
|
180
|
-
opacity: 0.23;
|
|
160
|
+
.nut-step-head-icon {
|
|
161
|
+
.nut-icon {
|
|
162
|
+
color: $steps-business-head-icon-color;
|
|
181
163
|
}
|
|
182
164
|
}
|
|
183
165
|
}
|
|
184
166
|
}
|
|
185
|
-
|
|
186
|
-
.nut-steps-horizontal {
|
|
187
|
-
&.nut-steps-dot {
|
|
188
|
-
.nut-step-line {
|
|
189
|
-
top: 50%;
|
|
190
|
-
bottom: -50%;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.nut-steps-vertical {
|
|
196
|
-
.nut-step {
|
|
197
|
-
display: flex;
|
|
198
|
-
height: 33.34%;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.nut-step-line {
|
|
202
|
-
position: absolute;
|
|
203
|
-
display: inline-block;
|
|
204
|
-
width: 1px;
|
|
205
|
-
height: $steps-base-line-width;
|
|
206
|
-
background: $steps-base-line-background;
|
|
207
|
-
top: calc(
|
|
208
|
-
$steps-base-icon-height +
|
|
209
|
-
(100% - $steps-base-line-width - $steps-base-icon-margin-bottom) / 2
|
|
210
|
-
);
|
|
211
|
-
left: calc(50% - 1px);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
&.nut-steps-dot {
|
|
215
|
-
.nut-step-line {
|
|
216
|
-
top: calc($steps-dot-icon-height + (100% - $steps-base-line-width) / 2);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.nut-step-main {
|
|
221
|
-
display: inline-block;
|
|
222
|
-
padding-left: 6%;
|
|
223
|
-
text-align: start;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
[dir='rtl'] .nut-step,
|
|
227
|
-
.nut-rtl .nut-step {
|
|
228
|
-
&-line {
|
|
229
|
-
left: auto;
|
|
230
|
-
right: calc(50% + (100% - $steps-base-line-width) / 2);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
[dir='rtl'] .nut-steps-dot,
|
|
234
|
-
.nut-rtl .nut-steps-dot {
|
|
235
|
-
.nut-step-process {
|
|
236
|
-
.nut-step-icon {
|
|
237
|
-
&:before {
|
|
238
|
-
left: auto;
|
|
239
|
-
right: 50%;
|
|
240
|
-
margin-left: 0;
|
|
241
|
-
margin-right: -7px;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
[dir='rtl'] .nut-steps-vertical,
|
|
247
|
-
.nut-rtl .nut-steps-vertical {
|
|
248
|
-
.nut-step-line {
|
|
249
|
-
left: auto;
|
|
250
|
-
right: calc(50% - 1px);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.nut-step-main {
|
|
254
|
-
padding-left: 0;
|
|
255
|
-
padding-right: 6%;
|
|
256
|
-
}
|
|
257
|
-
}
|