@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.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/progress/progress.js +69 -33
- 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/style.harmony.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 +163 -175
- 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/style.harmony.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/searchbar/searchbar.js +181 -77
- 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/style.harmony.css +127 -68
- 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.d.ts +2 -2
- package/dist/cjs/packages/step/step.js +80 -45
- 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/style.harmony.css +103 -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/style.harmony.css +256 -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 +21 -27
- 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 +70 -34
- 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/style.harmony.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 +163 -175
- 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/style.harmony.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/searchbar/searchbar.js +183 -79
- 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/style.harmony.css +127 -68
- 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.d.ts +2 -2
- package/dist/es/packages/step/step.js +81 -46
- 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/style.harmony.css +103 -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/style.harmony.css +256 -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 +21 -27
- 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 +530 -391
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +42 -42
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +41 -41
- 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
|
@@ -21,7 +21,8 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
21
21
|
});
|
|
22
22
|
export var Progress = function(props) {
|
|
23
23
|
var rtl = useRtl();
|
|
24
|
-
var _ref = _object_spread({}, defaultProps, props), className = _ref.className, style = _ref.style, percent = _ref.percent, background = _ref.background, color = _ref.color, strokeWidth = _ref.strokeWidth, showText = _ref.showText, animated = _ref.animated, children = _ref.children, lazy = _ref.lazy, delay = _ref.delay,
|
|
24
|
+
var _ref = _object_spread({}, defaultProps, props), className = _ref.className, style = _ref.style, percent = _ref.percent, background = _ref.background, color = _ref.color, strokeWidth = _ref.strokeWidth, showText = _ref.showText, animated = _ref.animated, children = _ref.children, lazy = _ref.lazy, delay = _ref.delay, // tc
|
|
25
|
+
showInfo = _ref.showInfo, borderRadius = _ref.borderRadius, fontSize = _ref.fontSize, activeColor = _ref.activeColor, backgroundColor = _ref.backgroundColor, active = _ref.active, activeMode = _ref.activeMode, duration = _ref.duration, ariaLabel = _ref.ariaLabel, onActiveEnd = _ref.onActiveEnd, rest = _object_without_properties(_ref, [
|
|
25
26
|
"className",
|
|
26
27
|
"style",
|
|
27
28
|
"percent",
|
|
@@ -32,24 +33,51 @@ export var Progress = function(props) {
|
|
|
32
33
|
"animated",
|
|
33
34
|
"children",
|
|
34
35
|
"lazy",
|
|
35
|
-
"delay"
|
|
36
|
+
"delay",
|
|
37
|
+
"showInfo",
|
|
38
|
+
"borderRadius",
|
|
39
|
+
"fontSize",
|
|
40
|
+
"activeColor",
|
|
41
|
+
"backgroundColor",
|
|
42
|
+
"active",
|
|
43
|
+
"activeMode",
|
|
44
|
+
"duration",
|
|
45
|
+
"ariaLabel",
|
|
46
|
+
"onActiveEnd"
|
|
36
47
|
]);
|
|
37
48
|
var classPrefix = 'nut-progress';
|
|
49
|
+
var _props_showText, _ref1;
|
|
50
|
+
var effectiveShowText = (_ref1 = (_props_showText = props.showText) !== null && _props_showText !== void 0 ? _props_showText : showInfo) !== null && _ref1 !== void 0 ? _ref1 : defaultProps.showText;
|
|
51
|
+
var _props_color, _ref2;
|
|
52
|
+
var effectiveColor = (_ref2 = (_props_color = props.color) !== null && _props_color !== void 0 ? _props_color : activeColor) !== null && _ref2 !== void 0 ? _ref2 : defaultProps.color;
|
|
53
|
+
var _props_background, _ref3;
|
|
54
|
+
var effectiveBgColor = (_ref3 = (_props_background = props.background) !== null && _props_background !== void 0 ? _props_background : backgroundColor) !== null && _ref3 !== void 0 ? _ref3 : defaultProps.background;
|
|
55
|
+
var _props_animated, _ref4;
|
|
56
|
+
var effectiveAnimated = (_ref4 = (_props_animated = props.animated) !== null && _props_animated !== void 0 ? _props_animated : active) !== null && _ref4 !== void 0 ? _ref4 : defaultProps.animated;
|
|
38
57
|
var _obj;
|
|
39
|
-
var classesInner = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-inner"), true), _define_property(_obj, "".concat(classPrefix, "-active"),
|
|
40
|
-
var stylesOuter = {
|
|
41
|
-
width: '100%',
|
|
42
|
-
backgroundColor: background
|
|
43
|
-
};
|
|
58
|
+
var classesInner = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-inner"), true), _define_property(_obj, "".concat(classPrefix, "-active"), effectiveAnimated), _obj));
|
|
44
59
|
var _useState = _sliced_to_array(useState(percent), 2), displayPercent = _useState[0], setDispalyPercent = _useState[1];
|
|
45
|
-
var
|
|
46
|
-
|
|
47
|
-
|
|
60
|
+
var getStyles = function() {
|
|
61
|
+
// 基础样式
|
|
62
|
+
var baseStyles = {
|
|
63
|
+
height: strokeWidth && pxTransform(Number(strokeWidth)),
|
|
64
|
+
borderRadius: borderRadius && pxTransform(parseInt(borderRadius.toString()))
|
|
65
|
+
};
|
|
66
|
+
var transitionStyle = {
|
|
67
|
+
transition: "width ".concat(duration || 300, "ms ease-in-out")
|
|
68
|
+
};
|
|
69
|
+
return {
|
|
70
|
+
outer: _object_spread({
|
|
71
|
+
width: '100%',
|
|
72
|
+
backgroundColor: effectiveBgColor
|
|
73
|
+
}, baseStyles),
|
|
74
|
+
inner: _object_spread({
|
|
75
|
+
width: "".concat(displayPercent, "%"),
|
|
76
|
+
background: effectiveColor || '#FF0F23'
|
|
77
|
+
}, baseStyles, transitionStyle)
|
|
78
|
+
};
|
|
48
79
|
};
|
|
49
|
-
|
|
50
|
-
stylesOuter.height = pxTransform(Number(strokeWidth));
|
|
51
|
-
stylesInner.height = pxTransform(Number(strokeWidth));
|
|
52
|
-
}
|
|
80
|
+
var _getStyles = getStyles(), stylesOuter = _getStyles.outer, stylesInner = _getStyles.inner;
|
|
53
81
|
var handlePercent = function() {
|
|
54
82
|
var timer = null;
|
|
55
83
|
if (delay) {
|
|
@@ -64,9 +92,24 @@ export var Progress = function(props) {
|
|
|
64
92
|
};
|
|
65
93
|
};
|
|
66
94
|
useEffect(function() {
|
|
67
|
-
|
|
95
|
+
var timer = null;
|
|
96
|
+
if (activeMode === 'backwards') {
|
|
97
|
+
setDispalyPercent(0);
|
|
98
|
+
timer = setTimeout(function() {
|
|
99
|
+
setDispalyPercent(percent);
|
|
100
|
+
}, duration || 300);
|
|
101
|
+
} else {
|
|
102
|
+
setDispalyPercent(percent);
|
|
103
|
+
}
|
|
104
|
+
return function() {
|
|
105
|
+
if (timer) {
|
|
106
|
+
clearTimeout(timer);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
68
109
|
}, [
|
|
69
|
-
percent
|
|
110
|
+
percent,
|
|
111
|
+
activeMode,
|
|
112
|
+
duration
|
|
70
113
|
]);
|
|
71
114
|
var _useState1 = _sliced_to_array(useState(false), 2), intersecting = _useState1[0], setIntersecting = _useState1[1];
|
|
72
115
|
var progressRef = useRef(null);
|
|
@@ -154,7 +197,8 @@ export var Progress = function(props) {
|
|
|
154
197
|
};
|
|
155
198
|
var computeInnerStyle = function() {
|
|
156
199
|
var style = {
|
|
157
|
-
backgroundColor:
|
|
200
|
+
backgroundColor: effectiveColor || '#ff0f23',
|
|
201
|
+
fontSize: fontSize && pxTransform(parseInt(fontSize.toString()))
|
|
158
202
|
};
|
|
159
203
|
if (harmony()) {
|
|
160
204
|
style.width = harmony() ? pxTransform("".concat(percent, "%").length * 9 + 4) : "".concat(percent, "%").length * 9 + 4;
|
|
@@ -165,7 +209,8 @@ export var Progress = function(props) {
|
|
|
165
209
|
ref: progressRef,
|
|
166
210
|
id: selector,
|
|
167
211
|
className: classNames(classPrefix, className),
|
|
168
|
-
style: style
|
|
212
|
+
style: style,
|
|
213
|
+
"aria-label": ariaLabel
|
|
169
214
|
}, rest), /*#__PURE__*/ React.createElement(View, {
|
|
170
215
|
className: "".concat(classPrefix, "-outer"),
|
|
171
216
|
style: stylesOuter
|
|
@@ -173,22 +218,13 @@ export var Progress = function(props) {
|
|
|
173
218
|
className: classesInner,
|
|
174
219
|
style: _object_spread_props(_object_spread({}, stylesInner), {
|
|
175
220
|
position: 'relative'
|
|
176
|
-
})
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
position: 'relative'
|
|
180
|
-
}, rtl ? 'left' : 'right', computeRight())
|
|
181
|
-
}, /*#__PURE__*/ React.createElement(View, {
|
|
221
|
+
}),
|
|
222
|
+
onTransitionEnd: onActiveEnd
|
|
223
|
+
})), effectiveShowText && /*#__PURE__*/ React.createElement(View, {
|
|
182
224
|
className: "".concat(classPrefix, "-text"),
|
|
183
|
-
style:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
top: -(strokeWidth ? (Number(strokeWidth) + 8 - 9) / 2 + 5 : 9)
|
|
188
|
-
})
|
|
189
|
-
}, children || /*#__PURE__*/ React.createElement(View, {
|
|
190
|
-
className: "".concat(classPrefix, "-text-inner"),
|
|
191
|
-
style: computeInnerStyle()
|
|
192
|
-
}, "".concat(percent, "%")))))));
|
|
225
|
+
style: {
|
|
226
|
+
fontSize: fontSize && parseInt(fontSize.toString())
|
|
227
|
+
}
|
|
228
|
+
}, children || "".concat(percent, "%")));
|
|
193
229
|
};
|
|
194
230
|
Progress.displayName = 'NutProgress';
|
|
@@ -5,11 +5,10 @@
|
|
|
5
5
|
width: 100%;
|
|
6
6
|
|
|
7
7
|
&-outer {
|
|
8
|
-
flex:
|
|
8
|
+
flex: 1;
|
|
9
9
|
border-radius: $progress-border-radius;
|
|
10
10
|
height: $progress-height;
|
|
11
11
|
background: $progress-background;
|
|
12
|
-
|
|
13
12
|
.nut-progress-active:before {
|
|
14
13
|
content: '';
|
|
15
14
|
position: absolute;
|
|
@@ -35,26 +34,11 @@
|
|
|
35
34
|
&-text {
|
|
36
35
|
display: flex;
|
|
37
36
|
align-items: center;
|
|
38
|
-
position: absolute;
|
|
39
|
-
top: $progress-text-position-top;
|
|
40
|
-
bottom: $progress-text-position-bottom;
|
|
41
37
|
transition: all 0.4s;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
flex-direction: row;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
align-items: center;
|
|
49
|
-
height: 100%;
|
|
50
|
-
width: 100%;
|
|
51
|
-
color: $progress-text-color;
|
|
52
|
-
padding: $progress-text-padding;
|
|
53
|
-
border-radius: $progress-text-border-radius;
|
|
54
|
-
font-size: $progress-text-font-size;
|
|
55
|
-
line-height: 1;
|
|
56
|
-
background: $progress-text-background;
|
|
57
|
-
}
|
|
38
|
+
margin-left: 12px;
|
|
39
|
+
color: $color-text-help;
|
|
40
|
+
font-family: PingFang SC;
|
|
41
|
+
font-size: $progress-text-font-size;
|
|
58
42
|
}
|
|
59
43
|
|
|
60
44
|
@keyframes progressActive {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
width: 100%;
|
|
10
10
|
}
|
|
11
11
|
.nut-progress-outer {
|
|
12
|
-
flex:
|
|
12
|
+
flex: 1;
|
|
13
13
|
border-radius: var(--nutui-progress-border-radius, 12px);
|
|
14
14
|
height: var(--nutui-progress-height, 10px);
|
|
15
15
|
background: var(--nutui-progress-background, var(--nutui-color-background, #f2f3f5));
|
|
@@ -36,25 +36,11 @@
|
|
|
36
36
|
.nut-progress-text {
|
|
37
37
|
display: flex;
|
|
38
38
|
align-items: center;
|
|
39
|
-
position: absolute;
|
|
40
|
-
top: var(--nutui-progress-text-position-top, -4px);
|
|
41
|
-
bottom: var(--nutui-progress-text-position-bottom, -4px);
|
|
42
39
|
transition: all 0.4s;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
flex-direction: row;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
align-items: center;
|
|
50
|
-
height: 100%;
|
|
51
|
-
width: 100%;
|
|
52
|
-
color: var(--nutui-progress-text-color, #ffffff);
|
|
53
|
-
padding: var(--nutui-progress-text-padding, 0 5px);
|
|
54
|
-
border-radius: var(--nutui-progress-text-border-radius, 5px);
|
|
55
|
-
font-size: var(--nutui-progress-text-font-size, 9px);
|
|
56
|
-
line-height: 1;
|
|
57
|
-
background: var(--nutui-progress-text-background, linear-gradient(135deg, var(--nutui-color-primary-stop-1, #ff475d) 0%, var(--nutui-color-primary-stop-2, #ff0f23) 100%));
|
|
40
|
+
margin-left: 12px;
|
|
41
|
+
color: var(--nutui-color-text-help, #888b94);
|
|
42
|
+
font-family: PingFang SC;
|
|
43
|
+
font-size: var(--nutui-progress-text-font-size, 13px);
|
|
58
44
|
}
|
|
59
45
|
@keyframes progressActive {
|
|
60
46
|
0% {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
width: 100%;
|
|
10
10
|
}
|
|
11
11
|
.nut-progress-outer {
|
|
12
|
-
flex:
|
|
12
|
+
flex: 1;
|
|
13
13
|
border-radius: 12px;
|
|
14
14
|
height: 10px;
|
|
15
15
|
background: #f2f3f5;
|
|
@@ -36,25 +36,11 @@
|
|
|
36
36
|
.nut-progress-text {
|
|
37
37
|
display: flex;
|
|
38
38
|
align-items: center;
|
|
39
|
-
position: absolute;
|
|
40
|
-
top: -4px;
|
|
41
|
-
bottom: -4px;
|
|
42
39
|
transition: all 0.4s;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
flex-direction: row;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
align-items: center;
|
|
50
|
-
height: 100%;
|
|
51
|
-
width: 100%;
|
|
52
|
-
color: #ffffff;
|
|
53
|
-
padding: 0 5px;
|
|
54
|
-
border-radius: 5px;
|
|
55
|
-
font-size: 9px;
|
|
56
|
-
line-height: 1;
|
|
57
|
-
background: linear-gradient(135deg, #ff475d 0%, #ff0f23 100%);
|
|
40
|
+
margin-left: 12px;
|
|
41
|
+
color: #888b94;
|
|
42
|
+
font-family: PingFang SC;
|
|
43
|
+
font-size: 13px;
|
|
58
44
|
}
|
|
59
45
|
@keyframes progressActive {
|
|
60
46
|
0% {
|
|
@@ -5,11 +5,10 @@
|
|
|
5
5
|
width: 100%;
|
|
6
6
|
|
|
7
7
|
&-outer {
|
|
8
|
-
flex:
|
|
8
|
+
flex: 1;
|
|
9
9
|
border-radius: $progress-border-radius;
|
|
10
10
|
height: $progress-height;
|
|
11
11
|
background: $progress-background;
|
|
12
|
-
|
|
13
12
|
.nut-progress-active:before {
|
|
14
13
|
content: '';
|
|
15
14
|
position: absolute;
|
|
@@ -35,26 +34,11 @@
|
|
|
35
34
|
&-text {
|
|
36
35
|
display: flex;
|
|
37
36
|
align-items: center;
|
|
38
|
-
position: absolute;
|
|
39
|
-
top: $progress-text-position-top;
|
|
40
|
-
bottom: $progress-text-position-bottom;
|
|
41
37
|
transition: all 0.4s;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
flex-direction: row;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
align-items: center;
|
|
49
|
-
height: 100%;
|
|
50
|
-
width: 100%;
|
|
51
|
-
color: $progress-text-color;
|
|
52
|
-
padding: $progress-text-padding;
|
|
53
|
-
border-radius: $progress-text-border-radius;
|
|
54
|
-
font-size: $progress-text-font-size;
|
|
55
|
-
line-height: 1;
|
|
56
|
-
background: $progress-text-background;
|
|
57
|
-
}
|
|
38
|
+
margin-left: 12px;
|
|
39
|
+
color: $color-text-help;
|
|
40
|
+
font-family: PingFang SC;
|
|
41
|
+
font-size: $progress-text-font-size;
|
|
58
42
|
}
|
|
59
43
|
|
|
60
44
|
@keyframes progressActive {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
width: 100%;
|
|
10
10
|
}
|
|
11
11
|
.nut-progress-outer {
|
|
12
|
-
flex:
|
|
12
|
+
flex: 1;
|
|
13
13
|
border-radius: var(--nutui-progress-border-radius, 12px);
|
|
14
14
|
height: var(--nutui-progress-height, 10px);
|
|
15
15
|
background: var(--nutui-progress-background, var(--nutui-color-surface-1));
|
|
@@ -36,25 +36,11 @@
|
|
|
36
36
|
.nut-progress-text {
|
|
37
37
|
display: flex;
|
|
38
38
|
align-items: center;
|
|
39
|
-
position: absolute;
|
|
40
|
-
top: var(--nutui-progress-text-position-top, -4px);
|
|
41
|
-
bottom: var(--nutui-progress-text-position-bottom, -4px);
|
|
42
39
|
transition: all 0.4s;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: row;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
align-items: center;
|
|
50
|
-
height: 100%;
|
|
51
|
-
width: 100%;
|
|
52
|
-
color: var(--nutui-progress-text-color, var(--nutui-color-text-dark));
|
|
53
|
-
padding: var(--nutui-progress-text-padding, 0 5px);
|
|
54
|
-
border-radius: var(--nutui-progress-text-border-radius, 5px);
|
|
40
|
+
margin-left: 12px;
|
|
41
|
+
color: var(--nutui-color-text-help);
|
|
42
|
+
font-family: PingFang SC;
|
|
55
43
|
font-size: var(--nutui-progress-text-font-size, 9px);
|
|
56
|
-
line-height: 1;
|
|
57
|
-
background: var(--nutui-progress-text-background, #ff0f23);
|
|
58
44
|
}
|
|
59
45
|
@keyframes progressActive {
|
|
60
46
|
0% {
|
|
@@ -5,11 +5,10 @@
|
|
|
5
5
|
width: 100%;
|
|
6
6
|
|
|
7
7
|
&-outer {
|
|
8
|
-
flex:
|
|
8
|
+
flex: 1;
|
|
9
9
|
border-radius: $progress-border-radius;
|
|
10
10
|
height: $progress-height;
|
|
11
11
|
background: $progress-background;
|
|
12
|
-
|
|
13
12
|
.nut-progress-active:before {
|
|
14
13
|
content: '';
|
|
15
14
|
position: absolute;
|
|
@@ -35,26 +34,11 @@
|
|
|
35
34
|
&-text {
|
|
36
35
|
display: flex;
|
|
37
36
|
align-items: center;
|
|
38
|
-
position: absolute;
|
|
39
|
-
top: $progress-text-position-top;
|
|
40
|
-
bottom: $progress-text-position-bottom;
|
|
41
37
|
transition: all 0.4s;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
flex-direction: row;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
align-items: center;
|
|
49
|
-
height: 100%;
|
|
50
|
-
width: 100%;
|
|
51
|
-
color: $progress-text-color;
|
|
52
|
-
padding: $progress-text-padding;
|
|
53
|
-
border-radius: $progress-text-border-radius;
|
|
54
|
-
font-size: $progress-text-font-size;
|
|
55
|
-
line-height: 1;
|
|
56
|
-
background: $progress-text-background;
|
|
57
|
-
}
|
|
38
|
+
margin-left: 12px;
|
|
39
|
+
color: $color-text-help;
|
|
40
|
+
font-family: PingFang SC;
|
|
41
|
+
font-size: $progress-text-font-size;
|
|
58
42
|
}
|
|
59
43
|
|
|
60
44
|
@keyframes progressActive {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
width: 100%;
|
|
10
10
|
}
|
|
11
11
|
.nut-progress-outer {
|
|
12
|
-
flex:
|
|
12
|
+
flex: 1;
|
|
13
13
|
border-radius: var(--nutui-progress-border-radius, 12px);
|
|
14
14
|
height: var(--nutui-progress-height, 10px);
|
|
15
15
|
background: var(--nutui-progress-background, var(--nutui-color-surface-1));
|
|
@@ -36,25 +36,11 @@
|
|
|
36
36
|
.nut-progress-text {
|
|
37
37
|
display: flex;
|
|
38
38
|
align-items: center;
|
|
39
|
-
position: absolute;
|
|
40
|
-
top: var(--nutui-progress-text-position-top, -4px);
|
|
41
|
-
bottom: var(--nutui-progress-text-position-bottom, -4px);
|
|
42
39
|
transition: all 0.4s;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: row;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
align-items: center;
|
|
50
|
-
height: 100%;
|
|
51
|
-
width: 100%;
|
|
52
|
-
color: var(--nutui-progress-text-color, var(--nutui-color-text-dark));
|
|
53
|
-
padding: var(--nutui-progress-text-padding, 0 5px);
|
|
54
|
-
border-radius: var(--nutui-progress-text-border-radius, 5px);
|
|
40
|
+
margin-left: 12px;
|
|
41
|
+
color: var(--nutui-color-text-help);
|
|
42
|
+
font-family: PingFang SC;
|
|
55
43
|
font-size: var(--nutui-progress-text-font-size, 9px);
|
|
56
|
-
line-height: 1;
|
|
57
|
-
background: var(--nutui-progress-text-background, var(--nutui-progress-color, linear-gradient(135deg, var(--nutui-color-primary-stop-1, #ff9999) 0%, var(--nutui-color-primary-stop-2, #ff6666) 100%)));
|
|
58
44
|
}
|
|
59
45
|
@keyframes progressActive {
|
|
60
46
|
0% {
|