@arco-design/mobile-react 2.22.0 → 2.22.2
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/README.en-US.md +2 -2
- package/README.md +2 -2
- package/cjs/action-sheet/style/css/index.css +2 -2
- package/cjs/action-sheet/style/index.less +1 -1
- package/cjs/dialog/style/css/index.css +2 -2
- package/cjs/dialog/style/index.less +1 -1
- package/cjs/pull-refresh/android-pull-refresh.js +2 -0
- package/cjs/pull-refresh/ios-pull-refresh.js +3 -2
- package/cjs/pull-refresh/model.d.ts +6 -2
- package/cjs/steps/demo/style/css/mobile.css +8 -2
- package/cjs/steps/index.d.ts +1 -1
- package/cjs/steps/index.js +5 -1
- package/cjs/steps/step.js +5 -3
- package/cjs/steps/style/css/index.css +78 -23
- package/cjs/steps/style/index.less +92 -24
- package/cjs/steps/type.d.ts +12 -0
- package/cjs/tabs/index.js +3 -2
- package/cjs/tabs/style/css/index.css +8 -8
- package/cjs/tabs/style/index.less +4 -4
- package/dist/index.js +19 -9
- package/dist/index.min.js +3 -3
- package/dist/style.css +87 -35
- package/dist/style.min.css +1 -1
- package/esm/action-sheet/style/css/index.css +2 -2
- package/esm/action-sheet/style/index.less +1 -1
- package/esm/dialog/style/css/index.css +2 -2
- package/esm/dialog/style/index.less +1 -1
- package/esm/pull-refresh/android-pull-refresh.js +2 -0
- package/esm/pull-refresh/ios-pull-refresh.js +3 -2
- package/esm/pull-refresh/model.d.ts +6 -2
- package/esm/steps/demo/style/css/mobile.css +8 -2
- package/esm/steps/index.d.ts +1 -1
- package/esm/steps/index.js +5 -1
- package/esm/steps/step.js +5 -3
- package/esm/steps/style/css/index.css +78 -23
- package/esm/steps/style/index.less +92 -24
- package/esm/steps/type.d.ts +12 -0
- package/esm/tabs/index.js +4 -3
- package/esm/tabs/style/css/index.css +8 -8
- package/esm/tabs/style/index.less +4 -4
- package/package.json +3 -3
- package/tokens/app/arcodesign/default/css-variables.less +7 -3
- package/tokens/app/arcodesign/default/index.d.ts +4 -0
- package/tokens/app/arcodesign/default/index.js +7 -3
- package/tokens/app/arcodesign/default/index.json +58 -10
- package/tokens/app/arcodesign/default/index.less +7 -3
- package/tokens/mixin/index.less +1 -1
- package/umd/action-sheet/style/css/index.css +2 -2
- package/umd/action-sheet/style/index.less +1 -1
- package/umd/dialog/style/css/index.css +2 -2
- package/umd/dialog/style/index.less +1 -1
- package/umd/pull-refresh/android-pull-refresh.js +2 -0
- package/umd/pull-refresh/ios-pull-refresh.js +3 -2
- package/umd/pull-refresh/model.d.ts +6 -2
- package/umd/steps/demo/style/css/mobile.css +8 -2
- package/umd/steps/index.d.ts +1 -1
- package/umd/steps/index.js +5 -1
- package/umd/steps/step.js +5 -3
- package/umd/steps/style/css/index.css +78 -23
- package/umd/steps/style/index.less +92 -24
- package/umd/steps/type.d.ts +12 -0
- package/umd/tabs/index.js +3 -2
- package/umd/tabs/style/css/index.css +8 -8
- package/umd/tabs/style/index.less +4 -4
|
@@ -6527,6 +6527,18 @@
|
|
|
6527
6527
|
"en": "Custom icon color of Steps in processing state"
|
|
6528
6528
|
}
|
|
6529
6529
|
},
|
|
6530
|
+
"stepsTailBorderRadius": {
|
|
6531
|
+
"cssKey": "steps-tail-border-radius",
|
|
6532
|
+
"desc": "steps 分割线圆角值",
|
|
6533
|
+
"override": "",
|
|
6534
|
+
"value": "2PX",
|
|
6535
|
+
"jsValue": "2PX",
|
|
6536
|
+
"staticValue": "2PX",
|
|
6537
|
+
"localeDesc": {
|
|
6538
|
+
"ch": "steps 分割线圆角值",
|
|
6539
|
+
"en": "Border radius of steps dividing"
|
|
6540
|
+
}
|
|
6541
|
+
},
|
|
6530
6542
|
"stepsTailFinishBackground": {
|
|
6531
6543
|
"cssKey": "steps-tail-finish-background",
|
|
6532
6544
|
"desc": "steps 步骤分割线完成态颜色",
|
|
@@ -6539,13 +6551,37 @@
|
|
|
6539
6551
|
"en": "Steps dividing line color in finish state"
|
|
6540
6552
|
}
|
|
6541
6553
|
},
|
|
6554
|
+
"stepsTailHorizontalGutter": {
|
|
6555
|
+
"cssKey": "steps-tail-horizontal-gutter",
|
|
6556
|
+
"desc": "steps 水平分割线与图标中心点的距离",
|
|
6557
|
+
"override": "",
|
|
6558
|
+
"value": "18PX",
|
|
6559
|
+
"jsValue": "18PX",
|
|
6560
|
+
"staticValue": "18PX",
|
|
6561
|
+
"localeDesc": {
|
|
6562
|
+
"ch": "steps 水平分割线与图标中心点的距离",
|
|
6563
|
+
"en": "The distance between the horizontal dividing line and the center point of the icon"
|
|
6564
|
+
}
|
|
6565
|
+
},
|
|
6566
|
+
"stepsTailHorizontalLeft": {
|
|
6567
|
+
"cssKey": "steps-tail-horizontal-left",
|
|
6568
|
+
"desc": "steps 水平分割线的向右偏移距离,一般是 stepsIconHeight 值的一半",
|
|
6569
|
+
"override": "",
|
|
6570
|
+
"value": "9PX",
|
|
6571
|
+
"jsValue": "9PX",
|
|
6572
|
+
"staticValue": "9PX",
|
|
6573
|
+
"localeDesc": {
|
|
6574
|
+
"ch": "steps 水平分割线的向右偏移距离,一般是 stepsIconHeight 值的一半",
|
|
6575
|
+
"en": "The offset distance to the right of the horizontal dividing line of steps, generally half the value of stepsIconHeight"
|
|
6576
|
+
}
|
|
6577
|
+
},
|
|
6542
6578
|
"stepsTailHorizontalPadding": {
|
|
6543
6579
|
"cssKey": "steps-tail-horizontal-padding",
|
|
6544
6580
|
"desc": "steps 水平分割线左右间距",
|
|
6545
6581
|
"override": "",
|
|
6546
|
-
"value": "0
|
|
6547
|
-
"jsValue": "0 @
|
|
6548
|
-
"staticValue": "0
|
|
6582
|
+
"value": "0 @steps-tail-horizontal-gutter",
|
|
6583
|
+
"jsValue": "0 @global@stepsTailHorizontalGutter",
|
|
6584
|
+
"staticValue": "0 18PX",
|
|
6549
6585
|
"localeDesc": {
|
|
6550
6586
|
"ch": "steps 水平分割线左右间距",
|
|
6551
6587
|
"en": "Left and right spacing of the horizontal dividing line of Steps"
|
|
@@ -6575,13 +6611,25 @@
|
|
|
6575
6611
|
"en": "Steps dividing line thickness"
|
|
6576
6612
|
}
|
|
6577
6613
|
},
|
|
6614
|
+
"stepsTailVerticalGutter": {
|
|
6615
|
+
"cssKey": "steps-tail-vertical-gutter",
|
|
6616
|
+
"desc": "steps 垂直分割线与图标中心点的距离",
|
|
6617
|
+
"override": "",
|
|
6618
|
+
"value": "14PX",
|
|
6619
|
+
"jsValue": "14PX",
|
|
6620
|
+
"staticValue": "14PX",
|
|
6621
|
+
"localeDesc": {
|
|
6622
|
+
"ch": "steps 垂直分割线与图标中心点的距离",
|
|
6623
|
+
"en": "The distance between the vertical dividing line and the center point of the icon"
|
|
6624
|
+
}
|
|
6625
|
+
},
|
|
6578
6626
|
"stepsTailVerticalPadding": {
|
|
6579
6627
|
"cssKey": "steps-tail-vertical-padding",
|
|
6580
6628
|
"desc": "steps 垂直分割线上下间距",
|
|
6581
6629
|
"override": "",
|
|
6582
|
-
"value": "
|
|
6583
|
-
"jsValue": "@
|
|
6584
|
-
"staticValue": "
|
|
6630
|
+
"value": "@steps-tail-vertical-gutter 0",
|
|
6631
|
+
"jsValue": "@global@stepsTailVerticalGutter 0",
|
|
6632
|
+
"staticValue": "14PX 0",
|
|
6585
6633
|
"localeDesc": {
|
|
6586
6634
|
"ch": "steps 垂直分割线上下间距",
|
|
6587
6635
|
"en": "Left and right spacing of the vertical dividing line of Steps"
|
|
@@ -6591,12 +6639,12 @@
|
|
|
6591
6639
|
"cssKey": "steps-tail-vertical-top",
|
|
6592
6640
|
"desc": "steps 垂直分割线的向下偏移距离,一般是 stepsIconHeight 值的一半",
|
|
6593
6641
|
"override": "",
|
|
6594
|
-
"value": "
|
|
6595
|
-
"jsValue": "
|
|
6596
|
-
"staticValue": "
|
|
6642
|
+
"value": "9PX",
|
|
6643
|
+
"jsValue": "9PX",
|
|
6644
|
+
"staticValue": "9PX",
|
|
6597
6645
|
"localeDesc": {
|
|
6598
6646
|
"ch": "steps 垂直分割线的向下偏移距离,一般是 stepsIconHeight 值的一半",
|
|
6599
|
-
"en": "
|
|
6647
|
+
"en": "The offset distance to the bottom of the vertical dividing line of steps, generally half the value of stepsIconHeight"
|
|
6600
6648
|
}
|
|
6601
6649
|
},
|
|
6602
6650
|
"stepsTitleFontSize": {
|
|
@@ -516,9 +516,13 @@
|
|
|
516
516
|
@notify-font-size: ~`pxtorem(14)`;
|
|
517
517
|
@notify-min-height: ~`pxtorem(36)`;
|
|
518
518
|
@steps-padding: ~`pxtorem(16)` 0;
|
|
519
|
-
@steps-tail-
|
|
520
|
-
@steps-tail-
|
|
521
|
-
@steps-tail-vertical-
|
|
519
|
+
@steps-tail-border-radius: 2PX;
|
|
520
|
+
@steps-tail-horizontal-gutter: 18PX;
|
|
521
|
+
@steps-tail-vertical-gutter: 14PX;
|
|
522
|
+
@steps-tail-horizontal-padding: 0 @steps-tail-horizontal-gutter;
|
|
523
|
+
@steps-tail-vertical-padding: @steps-tail-vertical-gutter 0;
|
|
524
|
+
@steps-tail-horizontal-left: 9PX;
|
|
525
|
+
@steps-tail-vertical-top: 9PX;
|
|
522
526
|
@steps-tail-standard-size: 1PX;
|
|
523
527
|
@steps-tail-standard-background: @line-color;
|
|
524
528
|
@steps-tail-finish-background: @primary-color;
|
package/tokens/mixin/index.less
CHANGED
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
.arco-action-sheet-title.android,
|
|
47
47
|
.arco-action-sheet-title.system-android {
|
|
48
48
|
font-weight: 400;
|
|
49
|
-
-webkit-text-stroke: 0.3PX
|
|
50
|
-
text-stroke: 0.3PX
|
|
49
|
+
-webkit-text-stroke: 0.3PX currentColor;
|
|
50
|
+
text-stroke: 0.3PX currentColor;
|
|
51
51
|
}
|
|
52
52
|
.arco-action-sheet-sub-title {
|
|
53
53
|
color: #86909c ;
|
|
@@ -126,8 +126,8 @@
|
|
|
126
126
|
.arco-dialog-header.ios.android,
|
|
127
127
|
.arco-dialog-header.ios.system-android {
|
|
128
128
|
font-weight: 400;
|
|
129
|
-
-webkit-text-stroke: 0.3PX
|
|
130
|
-
text-stroke: 0.3PX
|
|
129
|
+
-webkit-text-stroke: 0.3PX currentColor;
|
|
130
|
+
text-stroke: 0.3PX currentColor;
|
|
131
131
|
}
|
|
132
132
|
.arco-dialog-header.ios.only-title {
|
|
133
133
|
padding-bottom: 0.4rem ;
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
.use-var(padding-right, dialog-ios-horizontal-padding);
|
|
106
106
|
.use-var(font-size, dialog-header-ios-font-size);
|
|
107
107
|
.use-var(line-height, dialog-header-ios-line-height);
|
|
108
|
-
.text-medium
|
|
108
|
+
.text-medium();
|
|
109
109
|
|
|
110
110
|
&.only-title {
|
|
111
111
|
.use-var(padding-bottom, dialog-ios-vertical-padding);
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
locale = _useContext$locale === void 0 ? _mobileUtils.defaultLocale : _useContext$locale;
|
|
38
38
|
|
|
39
39
|
var className = props.className,
|
|
40
|
+
style = props.style,
|
|
40
41
|
children = props.children,
|
|
41
42
|
_props$loosingText = props.loosingText,
|
|
42
43
|
loosingText = _props$loosingText === void 0 ? /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -273,6 +274,7 @@
|
|
|
273
274
|
className: (0, _mobileUtils.cls)(prefixCls + "-pull-refresh all-border-box is-android", className, {
|
|
274
275
|
'is-disabled': (disabled || !touching && useHideAsNestedScroll) && status !== _model.PullRefreshStatus.Loading
|
|
275
276
|
}),
|
|
277
|
+
style: style,
|
|
276
278
|
ref: domRef
|
|
277
279
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
278
280
|
className: (0, _mobileUtils.cls)(prefixCls + "-pull-refresh-place"),
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
var animationRef = (0, _react.useRef)(0);
|
|
37
37
|
var className = props.className,
|
|
38
|
+
style = props.style,
|
|
38
39
|
children = props.children,
|
|
39
40
|
_props$loadingText = props.loadingText,
|
|
40
41
|
loadingText = _props$loadingText === void 0 ? /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -214,9 +215,9 @@
|
|
|
214
215
|
'is-disabled': disabled || !touching && useHideAsNestedScroll
|
|
215
216
|
}),
|
|
216
217
|
ref: domRef,
|
|
217
|
-
style: contentHeight > 0 ? {
|
|
218
|
+
style: contentHeight > 0 ? (0, _extends2.default)({
|
|
218
219
|
height: contentHeight
|
|
219
|
-
}
|
|
220
|
+
}, style || {}) : style
|
|
220
221
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
221
222
|
className: (0, _mobileUtils.cls)(prefixCls + "-pull-refresh-content-wrapper")
|
|
222
223
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
export interface PullRefreshRef {
|
|
3
3
|
/**
|
|
4
4
|
* 最外层元素 DOM
|
|
@@ -32,9 +32,13 @@ export interface PullRefreshBasicProps {
|
|
|
32
32
|
/**
|
|
33
33
|
* 样式类名
|
|
34
34
|
* @en Custom classname
|
|
35
|
-
* @default ""
|
|
36
35
|
*/
|
|
37
36
|
className?: string;
|
|
37
|
+
/**
|
|
38
|
+
* 自定义样式
|
|
39
|
+
* @en Custom style
|
|
40
|
+
*/
|
|
41
|
+
style?: CSSProperties;
|
|
38
42
|
/**
|
|
39
43
|
* 是否禁用
|
|
40
44
|
* @en Whether to be disabled
|
|
@@ -30,7 +30,10 @@
|
|
|
30
30
|
#demo-steps #demo-order-7 .process-title-color-with-config {
|
|
31
31
|
color: #FFB400;
|
|
32
32
|
}
|
|
33
|
-
#demo-steps #demo-order-7 .finish-tail-color-with-config
|
|
33
|
+
#demo-steps #demo-order-7 .finish-tail-color-with-config::before,
|
|
34
|
+
#demo-steps #demo-order-7 .finish-tail-color-with-config::after,
|
|
35
|
+
#demo-steps #demo-order-7 .process-tail-color-with-config::before,
|
|
36
|
+
#demo-steps #demo-order-7 .error-tail-color-with-config::before {
|
|
34
37
|
background: #FFB400;
|
|
35
38
|
}
|
|
36
39
|
#demo-steps #demo-order-8 .demo-svg .arco-steps-item-custom-icon {
|
|
@@ -57,7 +60,10 @@
|
|
|
57
60
|
#demo-steps #demo-order-8 .demo-svg .process-title-color-with-config {
|
|
58
61
|
color: #165DFF;
|
|
59
62
|
}
|
|
60
|
-
#demo-steps #demo-order-8 .demo-svg .finish-tail-color-with-config
|
|
63
|
+
#demo-steps #demo-order-8 .demo-svg .finish-tail-color-with-config::before,
|
|
64
|
+
#demo-steps #demo-order-8 .demo-svg .finish-tail-color-with-config::after,
|
|
65
|
+
#demo-steps #demo-order-8 .demo-svg .process-tail-color-with-config::before,
|
|
66
|
+
#demo-steps #demo-order-8 .demo-svg .error-tail-color-with-config::before {
|
|
61
67
|
background: #165DFF;
|
|
62
68
|
}
|
|
63
69
|
#demo-steps #demo-order-8 .demo-svg .arco-steps-item-custom-icon {
|
package/umd/steps/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StepsProps, StepsRef } from './type';
|
|
3
3
|
export * from './type';
|
|
4
|
-
export declare const StepsContext: React.Context<Pick<StepsProps, "direction" | "status" | "current" | "iconType"> & {
|
|
4
|
+
export declare const StepsContext: React.Context<Pick<StepsProps, "direction" | "status" | "current" | "align" | "iconType"> & {
|
|
5
5
|
index?: number | undefined;
|
|
6
6
|
changeIndex: (newIndex: number) => void;
|
|
7
7
|
}>;
|
package/umd/steps/index.js
CHANGED
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
children = props.children,
|
|
46
46
|
_props$direction = props.direction,
|
|
47
47
|
direction = _props$direction === void 0 ? 'horizontal' : _props$direction,
|
|
48
|
+
userSetAlign = props.align,
|
|
48
49
|
_props$iconType = props.iconType,
|
|
49
50
|
iconType = _props$iconType === void 0 ? 'number' : _props$iconType,
|
|
50
51
|
current = props.current,
|
|
@@ -55,6 +56,8 @@
|
|
|
55
56
|
items = props.items,
|
|
56
57
|
onClick = props.onClick,
|
|
57
58
|
onChange = props.onChange;
|
|
59
|
+
var defaultAlign = direction === 'vertical' ? 'start' : 'center';
|
|
60
|
+
var align = userSetAlign !== void 0 ? userSetAlign : defaultAlign;
|
|
58
61
|
|
|
59
62
|
var _useState = (0, _react.useState)(Number(defaultIndex)),
|
|
60
63
|
innerIndex = _useState[0],
|
|
@@ -90,11 +93,12 @@
|
|
|
90
93
|
direction: direction,
|
|
91
94
|
index: index,
|
|
92
95
|
status: activeIndex === index ? status : void 0,
|
|
96
|
+
align: align,
|
|
93
97
|
changeIndex: changeIndex
|
|
94
98
|
},
|
|
95
99
|
key: index
|
|
96
100
|
}, child);
|
|
97
|
-
}, [iconType, activeIndex, direction]);
|
|
101
|
+
}, [iconType, activeIndex, direction, align]);
|
|
98
102
|
return /*#__PURE__*/_react.default.createElement(_contextProvider.ContextLayout, null, function (_ref) {
|
|
99
103
|
var prefixCls = _ref.prefixCls;
|
|
100
104
|
return /*#__PURE__*/_react.default.createElement("div", {
|
package/umd/steps/step.js
CHANGED
|
@@ -33,9 +33,11 @@
|
|
|
33
33
|
_useContext$index = _useContext.index,
|
|
34
34
|
index = _useContext$index === void 0 ? 0 : _useContext$index,
|
|
35
35
|
contextStatus = _useContext.status,
|
|
36
|
+
contextAlign = _useContext.align,
|
|
36
37
|
changeIndex = _useContext.changeIndex;
|
|
37
38
|
|
|
38
39
|
var status = props.status || contextStatus;
|
|
40
|
+
var align = props.align || contextAlign;
|
|
39
41
|
var domRef = (0, _react.useRef)(null);
|
|
40
42
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
41
43
|
return {
|
|
@@ -74,12 +76,12 @@
|
|
|
74
76
|
var prefixCls = _ref.prefixCls;
|
|
75
77
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
76
78
|
ref: domRef,
|
|
77
|
-
className: (0, _mobileUtils.cls)(prefixCls + "-steps-item", currentStatus, direction, iconType),
|
|
79
|
+
className: (0, _mobileUtils.cls)(prefixCls + "-steps-item", prefixCls + "-steps-item-align-" + align, currentStatus, direction, iconType),
|
|
78
80
|
onClick: function onClick() {
|
|
79
81
|
return changeIndex(index);
|
|
80
82
|
}
|
|
81
83
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
82
|
-
className: (0, _mobileUtils.cls)(prefixCls + "-steps-item-tail", currentStatus + "-tail-color-with-config")
|
|
84
|
+
className: (0, _mobileUtils.cls)(prefixCls + "-steps-item-tail", prefixCls + "-steps-item-tail-status-" + currentStatus, prefixCls + "-steps-item-tail-align-" + align, currentStatus + "-tail-color-with-config")
|
|
83
85
|
}), icon ? /*#__PURE__*/_react.default.createElement("div", {
|
|
84
86
|
className: (0, _mobileUtils.cls)(prefixCls + "-steps-item-custom-icon", currentStatus + "-custom-icon-bg-color-with-config")
|
|
85
87
|
}, icon) : /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -87,7 +89,7 @@
|
|
|
87
89
|
}, iconType === 'number' ? renderNumIcon(prefixCls) : /*#__PURE__*/_react.default.createElement("span", {
|
|
88
90
|
className: (0, _mobileUtils.cls)(prefixCls + "-steps-item-icon-dot")
|
|
89
91
|
})), title || description ? /*#__PURE__*/_react.default.createElement("div", {
|
|
90
|
-
className: (0, _mobileUtils.cls)(prefixCls + "-steps-item-content")
|
|
92
|
+
className: (0, _mobileUtils.cls)(prefixCls + "-steps-item-content", prefixCls + "-steps-item-content-align-" + align)
|
|
91
93
|
}, title ? /*#__PURE__*/_react.default.createElement("div", {
|
|
92
94
|
className: (0, _mobileUtils.cls)(prefixCls + "-steps-item-title", currentStatus + "-title-color-with-config")
|
|
93
95
|
}, title) : null, description ? /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -18,17 +18,23 @@
|
|
|
18
18
|
-webkit-box-direction: normal;
|
|
19
19
|
-webkit-flex-direction: column;
|
|
20
20
|
flex-direction: column;
|
|
21
|
+
}
|
|
22
|
+
.arco-steps-item-align-center {
|
|
21
23
|
-webkit-box-align: center;
|
|
22
24
|
-webkit-align-items: center;
|
|
23
25
|
align-items: center;
|
|
24
26
|
}
|
|
25
|
-
.arco-steps-item
|
|
27
|
+
.arco-steps-item-align-start {
|
|
26
28
|
-webkit-box-align: start;
|
|
27
29
|
-webkit-align-items: flex-start;
|
|
28
30
|
align-items: flex-start;
|
|
29
31
|
}
|
|
30
|
-
.arco-steps-item
|
|
31
|
-
|
|
32
|
+
.arco-steps-item-align-center.vertical {
|
|
33
|
+
padding-bottom: 0.5rem ;
|
|
34
|
+
}
|
|
35
|
+
.arco-steps-item:first-child .arco-steps-item-tail::before,
|
|
36
|
+
.arco-steps-item:last-child .arco-steps-item-tail::after {
|
|
37
|
+
visibility: hidden;
|
|
32
38
|
}
|
|
33
39
|
.arco-steps-item-tail {
|
|
34
40
|
position: absolute;
|
|
@@ -44,33 +50,81 @@
|
|
|
44
50
|
}
|
|
45
51
|
.horizontal .arco-steps-item-tail {
|
|
46
52
|
width: 100%;
|
|
47
|
-
left: 50%;
|
|
48
53
|
height: 18PX ;
|
|
49
|
-
padding: 0 0.36rem ;
|
|
50
54
|
}
|
|
51
|
-
.horizontal .arco-steps-item-tail
|
|
55
|
+
.horizontal .arco-steps-item-tail::before,
|
|
56
|
+
.horizontal .arco-steps-item-tail::after {
|
|
57
|
+
height: 1PX ;
|
|
58
|
+
}
|
|
59
|
+
.horizontal .arco-steps-item-tail-align-start {
|
|
60
|
+
left: 9PX ;
|
|
61
|
+
padding: 0 18PX ;
|
|
62
|
+
}
|
|
63
|
+
.horizontal .arco-steps-item-tail-align-start::after {
|
|
52
64
|
content: "";
|
|
53
|
-
display: inline-block;
|
|
54
65
|
width: 100%;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
66
|
+
border-radius: 2PX ;
|
|
67
|
+
}
|
|
68
|
+
.horizontal .arco-steps-item-tail-align-center::before,
|
|
69
|
+
.horizontal .arco-steps-item-tail-align-center::after {
|
|
70
|
+
content: "";
|
|
71
|
+
width: 50%;
|
|
72
|
+
}
|
|
73
|
+
.horizontal .arco-steps-item-tail-align-center::before {
|
|
74
|
+
margin-right: 18PX ;
|
|
75
|
+
border-top-right-radius: 2PX ;
|
|
76
|
+
border-bottom-right-radius: 2PX ;
|
|
77
|
+
}
|
|
78
|
+
.horizontal .arco-steps-item-tail-align-center::after {
|
|
79
|
+
margin-left: 18PX ;
|
|
80
|
+
border-top-left-radius: 2PX ;
|
|
81
|
+
border-bottom-left-radius: 2PX ;
|
|
58
82
|
}
|
|
59
83
|
.vertical .arco-steps-item-tail {
|
|
60
84
|
height: 100%;
|
|
61
85
|
width: 18PX ;
|
|
62
|
-
|
|
63
|
-
|
|
86
|
+
-webkit-box-orient: vertical;
|
|
87
|
+
-webkit-box-direction: normal;
|
|
88
|
+
-webkit-flex-direction: column;
|
|
89
|
+
flex-direction: column;
|
|
64
90
|
}
|
|
65
|
-
.vertical .arco-steps-item-tail
|
|
91
|
+
.vertical .arco-steps-item-tail::before,
|
|
92
|
+
.vertical .arco-steps-item-tail::after {
|
|
93
|
+
width: 1PX ;
|
|
94
|
+
}
|
|
95
|
+
.vertical .arco-steps-item-tail-align-start {
|
|
96
|
+
top: 9PX ;
|
|
97
|
+
padding: 14PX 0 ;
|
|
98
|
+
}
|
|
99
|
+
.vertical .arco-steps-item-tail-align-start::after {
|
|
66
100
|
content: "";
|
|
67
|
-
display: inline-block;
|
|
68
101
|
height: 100%;
|
|
69
|
-
|
|
102
|
+
border-radius: 2PX ;
|
|
103
|
+
}
|
|
104
|
+
.vertical .arco-steps-item-tail-align-center::before,
|
|
105
|
+
.vertical .arco-steps-item-tail-align-center::after {
|
|
106
|
+
content: "";
|
|
107
|
+
height: 50%;
|
|
108
|
+
}
|
|
109
|
+
.vertical .arco-steps-item-tail-align-center::before {
|
|
110
|
+
margin-bottom: 14PX ;
|
|
111
|
+
border-bottom-left-radius: 2PX ;
|
|
112
|
+
border-bottom-right-radius: 2PX ;
|
|
113
|
+
}
|
|
114
|
+
.vertical .arco-steps-item-tail-align-center::after {
|
|
115
|
+
margin-top: 14PX ;
|
|
116
|
+
border-top-left-radius: 2PX ;
|
|
117
|
+
border-top-right-radius: 2PX ;
|
|
118
|
+
}
|
|
119
|
+
.arco-steps-item-tail::after,
|
|
120
|
+
.arco-steps-item-tail::before {
|
|
121
|
+
display: inline-block;
|
|
70
122
|
background: #e5e6eb ;
|
|
71
|
-
border-radius: 0.04rem;
|
|
72
123
|
}
|
|
73
|
-
.
|
|
124
|
+
.arco-steps-item-tail-status-finish::before,
|
|
125
|
+
.arco-steps-item-tail-status-finish::after,
|
|
126
|
+
.arco-steps-item-tail-align-center.arco-steps-item-tail-status-process::before,
|
|
127
|
+
.arco-steps-item-tail-align-center.arco-steps-item-tail-status-error::before {
|
|
74
128
|
background: #165dff ;
|
|
75
129
|
}
|
|
76
130
|
.arco-steps-item-custom-icon,
|
|
@@ -122,8 +176,8 @@
|
|
|
122
176
|
.arco-steps-item-icon-num.android,
|
|
123
177
|
.arco-steps-item-icon-num.system-android {
|
|
124
178
|
font-weight: 400;
|
|
125
|
-
-webkit-text-stroke: 0.3PX
|
|
126
|
-
text-stroke: 0.3PX
|
|
179
|
+
-webkit-text-stroke: 0.3PX currentColor;
|
|
180
|
+
text-stroke: 0.3PX currentColor;
|
|
127
181
|
}
|
|
128
182
|
.process .arco-steps-item-icon-num {
|
|
129
183
|
color: #FFFFFF ;
|
|
@@ -147,18 +201,19 @@
|
|
|
147
201
|
border: none;
|
|
148
202
|
background: #165dff ;
|
|
149
203
|
}
|
|
150
|
-
.arco-steps-item-content {
|
|
151
|
-
text-align: center;
|
|
152
|
-
}
|
|
153
204
|
.horizontal .arco-steps-item-content {
|
|
154
205
|
margin-top: 0.1rem ;
|
|
155
206
|
}
|
|
207
|
+
.horizontal .arco-steps-item-content-align-center {
|
|
208
|
+
text-align: center;
|
|
209
|
+
}
|
|
156
210
|
.vertical .arco-steps-item-content {
|
|
157
211
|
margin-left: 0.26rem ;
|
|
158
|
-
text-align: left;
|
|
159
212
|
-webkit-box-flex: 1;
|
|
160
213
|
-webkit-flex: 1;
|
|
161
214
|
flex: 1;
|
|
215
|
+
}
|
|
216
|
+
.vertical .arco-steps-item-content-align-start {
|
|
162
217
|
padding-bottom: 0.5rem ;
|
|
163
218
|
}
|
|
164
219
|
.arco-steps-item-title {
|
|
@@ -11,15 +11,23 @@
|
|
|
11
11
|
|
|
12
12
|
&.horizontal {
|
|
13
13
|
flex-direction: column;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-align-center {
|
|
14
17
|
align-items: center;
|
|
15
18
|
}
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
&-align-start {
|
|
18
21
|
align-items: flex-start;
|
|
19
22
|
}
|
|
20
23
|
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
&-align-center.vertical {
|
|
25
|
+
.use-var(padding-bottom, steps-vertical-content-padding-bottom);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:first-child &-tail::before,
|
|
29
|
+
&:last-child &-tail::after {
|
|
30
|
+
visibility: hidden;
|
|
23
31
|
}
|
|
24
32
|
|
|
25
33
|
&-tail {
|
|
@@ -30,37 +38,93 @@
|
|
|
30
38
|
|
|
31
39
|
.horizontal & {
|
|
32
40
|
width: 100%;
|
|
33
|
-
left: 50%;
|
|
34
41
|
.use-var(height, steps-icon-height);
|
|
35
|
-
.use-var(padding, steps-tail-horizontal-padding);
|
|
36
42
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
display: inline-block;
|
|
40
|
-
width: 100%;
|
|
43
|
+
&::before,
|
|
44
|
+
&::after {
|
|
41
45
|
.use-var(height, steps-tail-standard-size);
|
|
42
|
-
|
|
43
|
-
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-align-start {
|
|
49
|
+
.use-var(left, steps-tail-horizontal-left);
|
|
50
|
+
.use-var(padding, steps-tail-horizontal-padding);
|
|
51
|
+
|
|
52
|
+
&::after {
|
|
53
|
+
content: "";
|
|
54
|
+
width: 100%;
|
|
55
|
+
.use-var(border-radius, steps-tail-border-radius);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-align-center {
|
|
60
|
+
&::before,
|
|
61
|
+
&::after {
|
|
62
|
+
content: "";
|
|
63
|
+
width: 50%;
|
|
64
|
+
}
|
|
65
|
+
&::before {
|
|
66
|
+
.use-var(margin-right, steps-tail-horizontal-gutter);
|
|
67
|
+
.use-var(border-top-right-radius, steps-tail-border-radius);
|
|
68
|
+
.use-var(border-bottom-right-radius, steps-tail-border-radius);
|
|
69
|
+
}
|
|
70
|
+
&::after {
|
|
71
|
+
.use-var(margin-left, steps-tail-horizontal-gutter);
|
|
72
|
+
.use-var(border-top-left-radius, steps-tail-border-radius);
|
|
73
|
+
.use-var(border-bottom-left-radius, steps-tail-border-radius);
|
|
74
|
+
}
|
|
44
75
|
}
|
|
45
76
|
}
|
|
46
77
|
|
|
47
78
|
.vertical & {
|
|
48
79
|
height: 100%;
|
|
49
80
|
.use-var(width, steps-icon-width);
|
|
50
|
-
|
|
51
|
-
.use-var(padding, steps-tail-vertical-padding);
|
|
81
|
+
flex-direction: column;
|
|
52
82
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
display: inline-block;
|
|
56
|
-
height: 100%;
|
|
83
|
+
&::before,
|
|
84
|
+
&::after {
|
|
57
85
|
.use-var(width, steps-tail-standard-size);
|
|
58
|
-
.use-var(background, steps-tail-standard-background);
|
|
59
|
-
.rem(border-radius, 2);
|
|
60
86
|
}
|
|
87
|
+
|
|
88
|
+
&-align-start {
|
|
89
|
+
.use-var(top, steps-tail-vertical-top);
|
|
90
|
+
.use-var(padding, steps-tail-vertical-padding);
|
|
91
|
+
|
|
92
|
+
&::after {
|
|
93
|
+
content: "";
|
|
94
|
+
height: 100%;
|
|
95
|
+
.use-var(border-radius, steps-tail-border-radius);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&-align-center {
|
|
100
|
+
&::before,
|
|
101
|
+
&::after {
|
|
102
|
+
content: "";
|
|
103
|
+
height: 50%;
|
|
104
|
+
}
|
|
105
|
+
&::before {
|
|
106
|
+
.use-var(margin-bottom, steps-tail-vertical-gutter);
|
|
107
|
+
.use-var(border-bottom-left-radius, steps-tail-border-radius);
|
|
108
|
+
.use-var(border-bottom-right-radius, steps-tail-border-radius);
|
|
109
|
+
}
|
|
110
|
+
&::after {
|
|
111
|
+
.use-var(margin-top, steps-tail-vertical-gutter);
|
|
112
|
+
.use-var(border-top-left-radius, steps-tail-border-radius);
|
|
113
|
+
.use-var(border-top-right-radius, steps-tail-border-radius);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&::after,
|
|
119
|
+
&::before {
|
|
120
|
+
display: inline-block;
|
|
121
|
+
.use-var(background, steps-tail-standard-background);
|
|
61
122
|
}
|
|
62
123
|
|
|
63
|
-
|
|
124
|
+
&-status-finish::before,
|
|
125
|
+
&-status-finish::after,
|
|
126
|
+
&-align-center&-status-process::before,
|
|
127
|
+
&-align-center&-status-error::before {
|
|
64
128
|
.use-var(background, steps-tail-finish-background);
|
|
65
129
|
}
|
|
66
130
|
}
|
|
@@ -110,7 +174,7 @@
|
|
|
110
174
|
.use-var(font-size, steps-icon-num-font-size);
|
|
111
175
|
.use-var(line-height, steps-icon-num-line-height);
|
|
112
176
|
.use-var(color, steps-icon-num-color);
|
|
113
|
-
.text-medium
|
|
177
|
+
.text-medium();
|
|
114
178
|
|
|
115
179
|
.process & {
|
|
116
180
|
.use-var(color, steps-process-icon-num-color);
|
|
@@ -142,17 +206,21 @@
|
|
|
142
206
|
}
|
|
143
207
|
|
|
144
208
|
&-content {
|
|
145
|
-
text-align: center;
|
|
146
209
|
|
|
147
210
|
.horizontal & {
|
|
148
211
|
.use-var(margin-top, steps-horizontal-content-margin-top);
|
|
212
|
+
&-align-center {
|
|
213
|
+
text-align: center;
|
|
214
|
+
}
|
|
149
215
|
}
|
|
150
216
|
|
|
151
217
|
.vertical & {
|
|
152
218
|
.use-var(margin-left, steps-vertical-content-margin-left);
|
|
153
|
-
text-align: left;
|
|
154
219
|
flex: 1;
|
|
155
|
-
|
|
220
|
+
|
|
221
|
+
&-align-start {
|
|
222
|
+
.use-var(padding-bottom, steps-vertical-content-padding-bottom);
|
|
223
|
+
}
|
|
156
224
|
}
|
|
157
225
|
}
|
|
158
226
|
|