@pisell/materials 1.0.978 → 1.0.979
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +6 -6
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +15 -15
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -23
- package/es/components/PisellProcedure/PisellProcedure.d.ts +27 -0
- package/es/components/PisellProcedure/components/ProcedureAction.d.ts +8 -0
- package/es/components/PisellProcedure/components/ProcedureContent.d.ts +8 -0
- package/es/components/PisellProcedure/components/ProcedureHeader.d.ts +8 -0
- package/es/components/PisellProcedure/components/ProcedureSummary.d.ts +8 -0
- package/es/components/PisellProcedure/hooks/useResponsive.d.ts +6 -0
- package/es/components/PisellProcedure/index.d.ts +4 -0
- package/es/components/PisellProcedure/types.d.ts +303 -0
- package/es/components/PisellSteps/PisellSteps.d.ts +14 -0
- package/es/components/PisellSteps/PisellSteps.js +170 -148
- package/es/components/PisellSteps/PisellSteps.less +248 -383
- package/es/components/PisellSteps/hooks/index.d.ts +4 -0
- package/es/components/PisellSteps/hooks/index.js +4 -0
- package/es/components/PisellSteps/hooks/useAnchor.d.ts +9 -0
- package/es/components/PisellSteps/hooks/useAnchor.js +55 -0
- package/es/components/PisellSteps/hooks/useResponsive.d.ts +8 -0
- package/es/components/PisellSteps/hooks/useResponsive.js +43 -0
- package/es/components/PisellSteps/hooks/useStepClick.d.ts +11 -0
- package/es/components/PisellSteps/hooks/useStepClick.js +35 -0
- package/es/components/PisellSteps/hooks/useStepsState.d.ts +9 -0
- package/es/components/PisellSteps/hooks/useStepsState.js +60 -0
- package/es/components/PisellSteps/index.d.ts +3 -0
- package/es/components/PisellSteps/index.js +2 -5
- package/es/components/PisellSteps/types.d.ts +271 -0
- package/es/components/PisellSteps/utils/index.d.ts +54 -0
- package/es/components/PisellSteps/utils/index.js +118 -0
- package/es/components/Template/PisellSteps.d.ts +0 -0
- package/es/components/Template/PisellSteps.js +1 -0
- package/es/components/Template/PisellSteps.less +1 -0
- package/es/components/Template/components/index.d.ts +0 -0
- package/es/components/Template/components/index.js +1 -0
- package/es/components/Template/hooks/index.d.ts +0 -0
- package/es/components/Template/hooks/index.js +1 -0
- package/es/components/Template/utils/index.d.ts +0 -0
- package/es/components/Template/utils/index.js +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +3 -4
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +101 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +17 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Switch/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Switch/ReadPretty.js +16 -0
- package/es/components/dataSourceComponents/fields/Switch/ReadPretty.less +2 -0
- package/es/components/dataSourceComponents/fields/Switch/WithMode.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Switch/WithMode.js +5 -0
- package/es/components/dataSourceComponents/fields/Switch/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Switch/index.js +8 -0
- package/es/components/dataSourceComponents/fields/Switch/type.d.ts +16 -0
- package/es/components/dataSourceComponents/fields/Switch/type.js +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +12 -12
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
- package/es/components/pisellCardList/index.d.ts +107 -0
- package/es/components/pisellGoodPassCard/index.d.ts +50 -0
- package/es/components/pisellWalletPassCard/index.d.ts +146 -0
- package/es/components/productCard/index.d.ts +7 -0
- package/es/index.d.ts +149 -0
- package/es/index.js +1 -1
- package/lib/components/PisellProcedure/PisellProcedure.d.ts +27 -0
- package/lib/components/PisellProcedure/components/ProcedureAction.d.ts +8 -0
- package/lib/components/PisellProcedure/components/ProcedureContent.d.ts +8 -0
- package/lib/components/PisellProcedure/components/ProcedureHeader.d.ts +8 -0
- package/lib/components/PisellProcedure/components/ProcedureSummary.d.ts +8 -0
- package/lib/components/PisellProcedure/hooks/useResponsive.d.ts +6 -0
- package/lib/components/PisellProcedure/index.d.ts +4 -0
- package/lib/components/PisellProcedure/types.d.ts +303 -0
- package/lib/components/PisellSteps/PisellSteps.d.ts +14 -0
- package/lib/components/PisellSteps/PisellSteps.js +155 -102
- package/lib/components/PisellSteps/PisellSteps.less +248 -383
- package/lib/components/PisellSteps/hooks/index.d.ts +4 -0
- package/lib/components/PisellSteps/hooks/index.js +38 -0
- package/lib/components/PisellSteps/hooks/useAnchor.d.ts +9 -0
- package/lib/components/PisellSteps/hooks/useAnchor.js +63 -0
- package/lib/components/PisellSteps/hooks/useResponsive.d.ts +8 -0
- package/lib/components/PisellSteps/hooks/useResponsive.js +48 -0
- package/lib/components/PisellSteps/hooks/useStepClick.d.ts +11 -0
- package/lib/components/PisellSteps/hooks/useStepClick.js +55 -0
- package/lib/components/PisellSteps/hooks/useStepsState.d.ts +9 -0
- package/lib/components/PisellSteps/hooks/useStepsState.js +54 -0
- package/lib/components/PisellSteps/index.d.ts +3 -0
- package/lib/components/PisellSteps/index.js +2 -7
- package/lib/components/PisellSteps/types.d.ts +271 -0
- package/lib/components/PisellSteps/utils/index.d.ts +54 -0
- package/lib/components/PisellSteps/utils/index.js +88 -0
- package/lib/components/Template/PisellSteps.d.ts +0 -0
- package/lib/components/Template/PisellSteps.js +0 -0
- package/lib/components/Template/PisellSteps.less +1 -0
- package/lib/components/Template/components/index.d.ts +0 -0
- package/lib/components/Template/components/index.js +0 -0
- package/lib/components/Template/hooks/index.d.ts +0 -0
- package/lib/components/Template/hooks/index.js +0 -0
- package/lib/components/Template/utils/index.d.ts +0 -0
- package/lib/components/Template/utils/index.js +0 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +3 -3
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +101 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +17 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Switch/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Switch/ReadPretty.js +52 -0
- package/lib/components/dataSourceComponents/fields/Switch/ReadPretty.less +2 -0
- package/lib/components/dataSourceComponents/fields/Switch/WithMode.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Switch/WithMode.js +39 -0
- package/lib/components/dataSourceComponents/fields/Switch/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Switch/index.js +42 -0
- package/lib/components/dataSourceComponents/fields/Switch/type.d.ts +16 -0
- package/lib/components/dataSourceComponents/fields/Switch/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +12 -12
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
- package/lib/components/pisellCardList/index.d.ts +107 -0
- package/lib/components/pisellGoodPassCard/index.d.ts +50 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +146 -0
- package/lib/components/productCard/index.d.ts +7 -0
- package/lib/index.d.ts +149 -0
- package/lib/index.js +3 -3
- package/lowcode/data-source-form/constants.ts +3 -0
- package/lowcode/data-source-form/utils.ts +36 -7
- package/lowcode/form-item-switch/meta.ts +145 -0
- package/lowcode/form-item-switch/snippets.ts +15 -0
- package/lowcode/pisell-steps/meta.ts +621 -271
- package/lowcode/pisell-steps/snippets.ts +27 -69
- package/package.json +3 -3
|
@@ -1,457 +1,322 @@
|
|
|
1
|
-
// PisellSteps
|
|
2
|
-
// 基于 Ant Design Steps
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
--pisell-
|
|
10
|
-
--pisell-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
--pisell-
|
|
14
|
-
--pisell-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
--pisell-
|
|
21
|
-
--pisell-
|
|
22
|
-
--pisell-
|
|
23
|
-
--pisell-
|
|
24
|
-
--pisell-
|
|
25
|
-
--pisell-
|
|
26
|
-
--pisell-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
// 文本颜色
|
|
30
|
-
--pisell-step-text-color: rgba(0, 0, 0, 0.88);
|
|
31
|
-
--pisell-step-text-color-secondary: rgba(0, 0, 0, 0.45);
|
|
32
|
-
|
|
33
|
-
// 间距
|
|
34
|
-
--pisell-step-margin: 16px;
|
|
35
|
-
--pisell-step-margin-xs: 8px;
|
|
36
|
-
--pisell-step-padding-xs: 4px;
|
|
37
|
-
--pisell-step-padding-sm: 12px;
|
|
38
|
-
|
|
39
|
-
// 圆点尺寸
|
|
40
|
-
--pisell-step-dot-size: 8px;
|
|
41
|
-
--pisell-step-dot-size-small: 6px;
|
|
42
|
-
--pisell-step-dot-size-active: 10px;
|
|
43
|
-
--pisell-step-dot-size-active-small: 8px;
|
|
44
|
-
|
|
45
|
-
// 连接器
|
|
46
|
-
--pisell-step-connector-color-finish: var(--pisell-step-finish-color);
|
|
47
|
-
--pisell-step-connector-color-wait: rgba(0, 0, 0, 0.25);
|
|
1
|
+
// PisellSteps 组件样式
|
|
2
|
+
// 基于 Ant Design Steps 进行样式扩展和定制
|
|
3
|
+
|
|
4
|
+
@pisell-steps-prefix: pisell-steps;
|
|
5
|
+
|
|
6
|
+
// ============ CSS 变量定义 ============
|
|
7
|
+
.@{pisell-steps-prefix} {
|
|
8
|
+
// 图标相关
|
|
9
|
+
--pisell-steps-icon-size: 32px;
|
|
10
|
+
--pisell-steps-icon-color: inherit;
|
|
11
|
+
|
|
12
|
+
// 间距相关
|
|
13
|
+
--pisell-steps-item-gap: 8px;
|
|
14
|
+
--pisell-steps-margin: 16px;
|
|
15
|
+
|
|
16
|
+
// 栅格布局
|
|
17
|
+
--pisell-steps-grid-columns: 3;
|
|
18
|
+
|
|
19
|
+
// 颜色变量
|
|
20
|
+
--pisell-steps-primary-color: #7f56d9;
|
|
21
|
+
--pisell-steps-primary-light: #f4ebff;
|
|
22
|
+
--pisell-steps-text-color: rgba(0, 0, 0, 0.88);
|
|
23
|
+
--pisell-steps-text-secondary: rgba(0, 0, 0, 0.45);
|
|
24
|
+
--pisell-steps-border-color: rgba(0, 0, 0, 0.06);
|
|
25
|
+
--pisell-steps-error-color: #ff4d4f;
|
|
26
|
+
--pisell-steps-success-color: #52c41a;
|
|
27
|
+
}
|
|
48
28
|
|
|
49
|
-
|
|
29
|
+
// ============ 基础样式 ============
|
|
30
|
+
.@{pisell-steps-prefix} {
|
|
31
|
+
position: relative;
|
|
50
32
|
width: 100%;
|
|
51
33
|
|
|
52
|
-
//
|
|
53
|
-
|
|
54
|
-
.ant-steps-item-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
color: var(--pisell-step-finish-color);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.ant-steps-item-title {
|
|
65
|
-
color: var(--pisell-step-text-color);
|
|
66
|
-
font-size: var(--pisell-step-title-font-size);
|
|
67
|
-
line-height: var(--pisell-step-title-line-height);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.ant-steps-item-description {
|
|
71
|
-
color: var(--pisell-step-text-color-secondary);
|
|
72
|
-
font-size: var(--pisell-step-description-font-size);
|
|
73
|
-
line-height: var(--pisell-step-description-line-height);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
>.ant-steps-item-container>.ant-steps-item-tail::after {
|
|
77
|
-
background-color: var(--pisell-step-connector-color-finish);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// ==================== 进行中状态样式 ====================
|
|
82
|
-
.ant-steps-item-process {
|
|
83
|
-
.ant-steps-item-icon {
|
|
84
|
-
background-color: var(--pisell-step-process-bg);
|
|
85
|
-
border-color: var(--pisell-step-process-color);
|
|
86
|
-
|
|
87
|
-
.ant-steps-icon {
|
|
88
|
-
color: #ffffff;
|
|
89
|
-
font-weight: 500;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.ant-steps-item-title {
|
|
94
|
-
color: var(--pisell-step-text-color);
|
|
95
|
-
font-size: var(--pisell-step-title-font-size);
|
|
96
|
-
line-height: var(--pisell-step-title-line-height);
|
|
97
|
-
font-weight: 500;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.ant-steps-item-description {
|
|
101
|
-
color: var(--pisell-step-text-color);
|
|
102
|
-
font-size: var(--pisell-step-description-font-size);
|
|
103
|
-
line-height: var(--pisell-step-description-line-height);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// ==================== 等待状态样式 ====================
|
|
108
|
-
.ant-steps-item-wait {
|
|
109
|
-
.ant-steps-item-icon {
|
|
110
|
-
background-color: var(--pisell-step-wait-bg);
|
|
111
|
-
border-color: var(--pisell-step-wait-border);
|
|
112
|
-
|
|
113
|
-
.ant-steps-icon {
|
|
114
|
-
color: var(--pisell-step-wait-color);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.ant-steps-item-title {
|
|
119
|
-
color: var(--pisell-step-wait-color);
|
|
120
|
-
font-size: var(--pisell-step-title-font-size);
|
|
121
|
-
line-height: var(--pisell-step-title-line-height);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.ant-steps-item-description {
|
|
125
|
-
color: var(--pisell-step-wait-color);
|
|
126
|
-
font-size: var(--pisell-step-description-font-size);
|
|
127
|
-
line-height: var(--pisell-step-description-line-height);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
>.ant-steps-item-container>.ant-steps-item-tail::after {
|
|
131
|
-
background-color: var(--pisell-step-connector-color-wait);
|
|
34
|
+
// 覆盖 Ant Design 默认样式,使用自定义主题色
|
|
35
|
+
.ant-steps-item-finish {
|
|
36
|
+
.ant-steps-item-icon {
|
|
37
|
+
background-color: var(--pisell-steps-primary-light);
|
|
38
|
+
border-color: var(--pisell-steps-primary-color);
|
|
39
|
+
|
|
40
|
+
> .ant-steps-icon {
|
|
41
|
+
color: var(--pisell-steps-primary-color);
|
|
132
42
|
}
|
|
133
43
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
.ant-steps-item-icon {
|
|
138
|
-
background-color: var(--pisell-step-error-bg);
|
|
139
|
-
border-color: var(--pisell-step-error-color);
|
|
140
|
-
|
|
141
|
-
.ant-steps-icon {
|
|
142
|
-
color: var(--pisell-step-error-color);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.ant-steps-item-title {
|
|
147
|
-
color: var(--pisell-step-error-color);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.ant-steps-item-description {
|
|
151
|
-
color: var(--pisell-step-error-color);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
>.ant-steps-item-container>.ant-steps-item-tail::after {
|
|
155
|
-
background-color: var(--pisell-step-error-color);
|
|
156
|
-
}
|
|
44
|
+
|
|
45
|
+
.ant-steps-item-tail::after {
|
|
46
|
+
background-color: var(--pisell-steps-primary-color);
|
|
157
47
|
}
|
|
158
48
|
}
|
|
159
|
-
}
|
|
160
49
|
|
|
161
|
-
|
|
162
|
-
.pisell-steps-small {
|
|
163
|
-
:global {
|
|
50
|
+
.ant-steps-item-process {
|
|
164
51
|
.ant-steps-item-icon {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
.ant-steps-item-title {
|
|
172
|
-
font-size: var(--pisell-step-title-font-size-small) !important;
|
|
173
|
-
line-height: var(--pisell-step-title-line-height-small) !important;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.ant-steps-item-description {
|
|
177
|
-
font-size: var(--pisell-step-description-font-size-small) !important;
|
|
178
|
-
line-height: var(--pisell-step-description-line-height-small) !important;
|
|
52
|
+
background-color: var(--pisell-steps-primary-color);
|
|
53
|
+
border-color: var(--pisell-steps-primary-color);
|
|
54
|
+
|
|
55
|
+
> .ant-steps-icon {
|
|
56
|
+
color: #ffffff;
|
|
57
|
+
}
|
|
179
58
|
}
|
|
180
59
|
}
|
|
181
|
-
}
|
|
182
60
|
|
|
183
|
-
|
|
184
|
-
.pisell-steps-dot {
|
|
185
|
-
:global {
|
|
61
|
+
.ant-steps-item-wait {
|
|
186
62
|
.ant-steps-item-icon {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
width: var(--pisell-step-dot-size);
|
|
193
|
-
height: var(--pisell-step-dot-size);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
// 进行中的圆点稍大
|
|
198
|
-
.ant-steps-item-process .ant-steps-item-icon {
|
|
199
|
-
width: var(--pisell-step-dot-size-active);
|
|
200
|
-
height: var(--pisell-step-dot-size-active);
|
|
201
|
-
|
|
202
|
-
.ant-steps-icon-dot {
|
|
203
|
-
width: var(--pisell-step-dot-size-active);
|
|
204
|
-
height: var(--pisell-step-dot-size-active);
|
|
63
|
+
background-color: var(--pisell-steps-border-color);
|
|
64
|
+
border-color: var(--pisell-steps-border-color);
|
|
65
|
+
|
|
66
|
+
> .ant-steps-icon {
|
|
67
|
+
color: var(--pisell-steps-text-secondary);
|
|
205
68
|
}
|
|
206
69
|
}
|
|
207
|
-
|
|
208
|
-
// 圆点样式下的文本居中
|
|
209
|
-
.ant-steps-item-content {
|
|
210
|
-
text-align: center;
|
|
211
|
-
}
|
|
212
70
|
}
|
|
213
71
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
.ant-steps-icon-dot {
|
|
222
|
-
width: var(--pisell-step-dot-size-small);
|
|
223
|
-
height: var(--pisell-step-dot-size-small);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.ant-steps-item-process .ant-steps-item-icon {
|
|
228
|
-
width: var(--pisell-step-dot-size-active-small);
|
|
229
|
-
height: var(--pisell-step-dot-size-active-small);
|
|
230
|
-
|
|
231
|
-
.ant-steps-icon-dot {
|
|
232
|
-
width: var(--pisell-step-dot-size-active-small);
|
|
233
|
-
height: var(--pisell-step-dot-size-active-small);
|
|
234
|
-
}
|
|
72
|
+
.ant-steps-item-error {
|
|
73
|
+
.ant-steps-item-icon {
|
|
74
|
+
background-color: var(--pisell-steps-error-color);
|
|
75
|
+
border-color: var(--pisell-steps-error-color);
|
|
76
|
+
|
|
77
|
+
> .ant-steps-icon {
|
|
78
|
+
color: #ffffff;
|
|
235
79
|
}
|
|
236
80
|
}
|
|
237
81
|
}
|
|
238
82
|
}
|
|
239
83
|
|
|
240
|
-
//
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
84
|
+
// ============ 可点击样式 ============
|
|
85
|
+
.@{pisell-steps-prefix}-clickable {
|
|
86
|
+
.ant-steps-item {
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
transition: all 0.3s ease;
|
|
248
89
|
|
|
249
|
-
|
|
250
|
-
.
|
|
251
|
-
|
|
252
|
-
@media (max-width: 768px) {
|
|
253
|
-
overflow-x: auto;
|
|
254
|
-
overflow-y: hidden;
|
|
255
|
-
|
|
256
|
-
:global {
|
|
257
|
-
.ant-steps-item {
|
|
258
|
-
flex-shrink: 0;
|
|
259
|
-
min-width: 120px;
|
|
260
|
-
}
|
|
90
|
+
&:hover {
|
|
91
|
+
.ant-steps-item-icon {
|
|
92
|
+
transform: scale(1.1);
|
|
261
93
|
}
|
|
262
94
|
}
|
|
263
95
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
.ant-steps-item {
|
|
267
|
-
min-width: 100px;
|
|
268
|
-
}
|
|
269
|
-
|
|
96
|
+
&-finish {
|
|
97
|
+
&:hover {
|
|
270
98
|
.ant-steps-item-title {
|
|
271
|
-
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.ant-steps-item-description {
|
|
275
|
-
font-size: 12px !important;
|
|
99
|
+
color: var(--pisell-steps-primary-color);
|
|
276
100
|
}
|
|
277
101
|
}
|
|
278
102
|
}
|
|
279
103
|
}
|
|
280
104
|
}
|
|
281
105
|
|
|
282
|
-
//
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
106
|
+
// ============ 尺寸变体 ============
|
|
107
|
+
.@{pisell-steps-prefix}-small {
|
|
108
|
+
.ant-steps-item-icon {
|
|
109
|
+
width: 24px;
|
|
110
|
+
height: 24px;
|
|
111
|
+
line-height: 24px;
|
|
112
|
+
font-size: 12px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.ant-steps-item-title {
|
|
116
|
+
font-size: 14px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.ant-steps-item-description {
|
|
120
|
+
font-size: 12px;
|
|
295
121
|
}
|
|
296
122
|
}
|
|
297
123
|
|
|
298
|
-
|
|
299
|
-
.
|
|
300
|
-
|
|
301
|
-
:
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
124
|
+
.@{pisell-steps-prefix}-large {
|
|
125
|
+
.ant-steps-item-icon {
|
|
126
|
+
width: 40px;
|
|
127
|
+
height: 40px;
|
|
128
|
+
line-height: 40px;
|
|
129
|
+
font-size: 18px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ant-steps-item-title {
|
|
133
|
+
font-size: 18px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.ant-steps-item-description {
|
|
137
|
+
font-size: 16px;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
305
140
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
141
|
+
// ============ 类型变体 ============
|
|
142
|
+
// Dot 类型
|
|
143
|
+
.@{pisell-steps-prefix}-dot {
|
|
144
|
+
.ant-steps-item-icon {
|
|
145
|
+
width: 8px;
|
|
146
|
+
height: 8px;
|
|
147
|
+
|
|
148
|
+
.ant-steps-icon-dot {
|
|
149
|
+
width: 8px;
|
|
150
|
+
height: 8px;
|
|
309
151
|
}
|
|
310
152
|
}
|
|
311
153
|
}
|
|
312
154
|
|
|
313
|
-
//
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
&:hover {
|
|
331
|
-
background-color: #f0f0f0;
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
&.ant-steps-item-active .ant-steps-item-container {
|
|
336
|
-
background-color: var(--pisell-step-finish-bg);
|
|
337
|
-
box-shadow: 0 2px 4px rgba(127, 86, 217, 0.1);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
&.ant-steps-item-finish .ant-steps-item-container:hover {
|
|
341
|
-
background-color: var(--pisell-step-finish-bg);
|
|
342
|
-
}
|
|
155
|
+
// Navigation 类型
|
|
156
|
+
.@{pisell-steps-prefix}-navigation {
|
|
157
|
+
.ant-steps-item {
|
|
158
|
+
padding: 12px 24px;
|
|
159
|
+
|
|
160
|
+
&::before {
|
|
161
|
+
content: '';
|
|
162
|
+
position: absolute;
|
|
163
|
+
top: 0;
|
|
164
|
+
right: -12px;
|
|
165
|
+
width: 0;
|
|
166
|
+
height: 0;
|
|
167
|
+
border-top: 24px solid transparent;
|
|
168
|
+
border-bottom: 24px solid transparent;
|
|
169
|
+
border-left: 12px solid var(--pisell-steps-border-color);
|
|
170
|
+
z-index: 1;
|
|
343
171
|
}
|
|
344
172
|
}
|
|
345
173
|
}
|
|
346
174
|
|
|
347
|
-
//
|
|
348
|
-
|
|
349
|
-
:
|
|
175
|
+
// ============ 响应式样式 ============
|
|
176
|
+
.@{pisell-steps-prefix}-responsive {
|
|
177
|
+
@media (max-width: 768px) {
|
|
178
|
+
overflow-x: auto;
|
|
179
|
+
-webkit-overflow-scrolling: touch;
|
|
180
|
+
|
|
350
181
|
.ant-steps {
|
|
351
|
-
|
|
182
|
+
min-width: max-content;
|
|
352
183
|
}
|
|
353
|
-
|
|
184
|
+
|
|
354
185
|
.ant-steps-item {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
.ant-steps-item-icon {
|
|
359
|
-
margin-right: var(--pisell-step-margin-xs);
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
.ant-steps-item-content {
|
|
363
|
-
display: inline-block;
|
|
364
|
-
}
|
|
186
|
+
min-width: 120px;
|
|
187
|
+
flex-shrink: 0;
|
|
365
188
|
}
|
|
366
189
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
.ant-steps-item-finish:not(.ant-steps-item-disabled) {
|
|
375
|
-
cursor: pointer;
|
|
376
|
-
|
|
377
|
-
.ant-steps-item-container {
|
|
378
|
-
transition: all 0.3s ease;
|
|
190
|
+
|
|
191
|
+
@media (max-width: 480px) {
|
|
192
|
+
.ant-steps-item {
|
|
193
|
+
min-width: 100px;
|
|
194
|
+
|
|
195
|
+
.ant-steps-item-title {
|
|
196
|
+
font-size: 12px;
|
|
379
197
|
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
border-color: var(--pisell-step-process-color);
|
|
384
|
-
box-shadow: 0 0 0 2px rgba(127, 86, 217, 0.1);
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
.ant-steps-item-title {
|
|
388
|
-
color: var(--pisell-step-process-color);
|
|
389
|
-
}
|
|
198
|
+
|
|
199
|
+
.ant-steps-item-description {
|
|
200
|
+
display: none;
|
|
390
201
|
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
202
|
+
|
|
203
|
+
.ant-steps-item-icon {
|
|
204
|
+
width: 24px;
|
|
205
|
+
height: 24px;
|
|
206
|
+
line-height: 24px;
|
|
207
|
+
font-size: 12px;
|
|
397
208
|
}
|
|
398
209
|
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
399
212
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
opacity: 0.5;
|
|
213
|
+
// ============ 栅格布局 ============
|
|
214
|
+
.@{pisell-steps-prefix}-grid-layout {
|
|
215
|
+
.ant-steps {
|
|
216
|
+
display: grid;
|
|
217
|
+
grid-template-columns: repeat(var(--pisell-steps-grid-columns), 1fr);
|
|
218
|
+
gap: var(--pisell-steps-margin);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
409
221
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
222
|
+
// ============ 连接器位置 ============
|
|
223
|
+
.@{pisell-steps-prefix}-connector-top {
|
|
224
|
+
.ant-steps-item-tail {
|
|
225
|
+
top: 8px;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
413
228
|
|
|
414
|
-
|
|
229
|
+
.@{pisell-steps-prefix}-connector-bottom {
|
|
230
|
+
.ant-steps-item-tail {
|
|
231
|
+
top: auto;
|
|
232
|
+
bottom: 8px;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
415
235
|
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
236
|
+
// ============ 项布局 ============
|
|
237
|
+
.@{pisell-steps-prefix}-item-vertical {
|
|
238
|
+
.ant-steps-item {
|
|
239
|
+
flex-direction: column;
|
|
240
|
+
|
|
241
|
+
.ant-steps-item-icon {
|
|
242
|
+
margin-bottom: var(--pisell-steps-item-gap);
|
|
422
243
|
}
|
|
423
244
|
}
|
|
424
245
|
}
|
|
425
246
|
|
|
426
|
-
//
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
.
|
|
430
|
-
|
|
431
|
-
|
|
247
|
+
// ============ 动画效果 ============
|
|
248
|
+
.@{pisell-steps-prefix}-animated {
|
|
249
|
+
.ant-steps-item {
|
|
250
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.ant-steps-item-icon {
|
|
254
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.ant-steps-item-tail::after {
|
|
258
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
432
261
|
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
262
|
+
// ============ 进度百分比显示 ============
|
|
263
|
+
.@{pisell-steps-prefix}-progress-info {
|
|
264
|
+
position: absolute;
|
|
265
|
+
top: 50%;
|
|
266
|
+
left: 50%;
|
|
267
|
+
transform: translate(-50%, -50%);
|
|
268
|
+
pointer-events: none;
|
|
269
|
+
|
|
270
|
+
.@{pisell-steps-prefix}-progress-percent {
|
|
271
|
+
display: inline-block;
|
|
272
|
+
padding: 2px 8px;
|
|
273
|
+
background-color: var(--pisell-steps-primary-color);
|
|
274
|
+
color: #ffffff;
|
|
275
|
+
font-size: 12px;
|
|
276
|
+
border-radius: 10px;
|
|
277
|
+
font-weight: 500;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
436
280
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
281
|
+
// ============ 竖向布局特殊样式 ============
|
|
282
|
+
.@{pisell-steps-prefix}-vertical {
|
|
283
|
+
.ant-steps-item {
|
|
284
|
+
padding-bottom: var(--pisell-steps-margin);
|
|
285
|
+
|
|
286
|
+
&:last-child {
|
|
287
|
+
padding-bottom: 0;
|
|
440
288
|
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.@{pisell-steps-prefix}-progress-info {
|
|
292
|
+
left: 16px;
|
|
293
|
+
transform: translateY(-50%);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
441
296
|
|
|
442
|
-
|
|
443
|
-
|
|
297
|
+
// ============ 自定义图标尺寸 ============
|
|
298
|
+
.@{pisell-steps-prefix} {
|
|
299
|
+
.ant-steps-item-icon {
|
|
300
|
+
width: var(--pisell-steps-icon-size);
|
|
301
|
+
height: var(--pisell-steps-icon-size);
|
|
302
|
+
line-height: var(--pisell-steps-icon-size);
|
|
303
|
+
|
|
304
|
+
.ant-steps-icon {
|
|
305
|
+
color: var(--pisell-steps-icon-color);
|
|
444
306
|
}
|
|
445
307
|
}
|
|
446
308
|
}
|
|
447
309
|
|
|
448
|
-
//
|
|
449
|
-
|
|
450
|
-
.
|
|
451
|
-
:
|
|
310
|
+
// ============ 禁用状态 ============
|
|
311
|
+
.@{pisell-steps-prefix} {
|
|
312
|
+
.ant-steps-item-disabled {
|
|
313
|
+
cursor: not-allowed;
|
|
314
|
+
opacity: 0.5;
|
|
315
|
+
|
|
316
|
+
&:hover {
|
|
452
317
|
.ant-steps-item-icon {
|
|
453
|
-
|
|
318
|
+
transform: none;
|
|
454
319
|
}
|
|
455
320
|
}
|
|
456
321
|
}
|
|
457
|
-
}
|
|
322
|
+
}
|