@chaoswise/ui 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/babel/index.js +1 -28
- package/config/swc.js +5 -0
- package/lib/AbreastLayout/CollapsedBtn.js +1 -1
- package/lib/AbreastLayout/NavTreeContainer.js +1 -1
- package/lib/AbreastLayout/index.js +2 -2
- package/lib/Ace/ace.js +2 -2
- package/lib/Ace/diff.js +2 -2
- package/lib/Ace/split.js +2 -2
- package/lib/AdaptiveLayout/index.js +2 -2
- package/lib/Alert/index.js +1 -1
- package/lib/AlgorithmChart/common/chart.option.js +0 -5
- package/lib/Anchor/index.js +3 -0
- package/lib/Antd/Drawer.js +2 -2
- package/lib/Antd3/es/cascader/index.js +0 -1
- package/lib/Antd3/es/message/index.js +0 -2
- package/lib/Antd4/message/index-copy.js +0 -2
- package/lib/Antd4/notification/index.js +0 -1
- package/lib/Antd4/statistic/utils.js +0 -1
- package/lib/Antd4/tabs/index.js +1 -1
- package/lib/Antd4/tooltip/index.js +0 -1
- package/lib/Antd4/tree/Tree.js +0 -1
- package/lib/Antd4Form/FieldList.js +2 -2
- package/lib/Antd4Form/FormItem.js +2 -2
- package/lib/Antd4Form/FormItemChildren.js +2 -2
- package/lib/Antd4Form/useForm.js +2 -2
- package/lib/AutoComplete/index.js +3 -0
- package/lib/Avatar/index.js +3 -0
- package/lib/BackTop/index.js +3 -0
- package/lib/Badge/index.less +5 -0
- package/lib/BasicLayout/Breadcrumb.js +3 -3
- package/lib/BasicLayout/Sider.js +5 -5
- package/lib/BasicLayout/index.js +2 -3
- package/lib/Breadcrumb/Breadcrumb.less +34 -0
- package/lib/Breadcrumb/index.js +2 -9
- package/lib/CWCascader/Cascader/index.js +2 -2
- package/lib/CWCascader/rc-cascader/OptionList/Checkbox.js +2 -2
- package/lib/CWCascader/rc-cascader/OptionList/Column.js +5 -5
- package/lib/CWCascader/rc-cascader/OptionList/index.js +2 -2
- package/lib/CWCascader/rc-cascader/hooks/useEntities.js +2 -2
- package/lib/CWCascader/rc-cascader/hooks/useSearchConfig.js +2 -2
- package/lib/CWCascader/rc-cascader/hooks/useSearchOptions.js +2 -2
- package/lib/CWMessage/MessageContent/TabList/index.js +2 -2
- package/lib/CWMessage/MessageContent/index.js +12 -5
- package/lib/CWMessage/index.js +3 -3
- package/lib/CWRadioTabs/index.js +2 -2
- package/lib/CWRangePicker/DropdownMenu/MoreHistoryList/index.js +1 -1
- package/lib/CWRangePicker/DropdownMenu/MoreTimeList/index.js +2 -2
- package/lib/CWRangePicker/DropdownMenu/index.js +4 -4
- package/lib/CWRangePicker/Refresh/index.js +2 -2
- package/lib/CWRangePicker/index.js +4 -4
- package/lib/CWRangePicker/utils/index.js +2 -2
- package/lib/CWSelect/Tag.js +1 -1
- package/lib/CWSelect/antd-select.js +3 -4
- package/lib/CWSelect/index.js +2 -2
- package/lib/CWTable/CWTable.js +4 -6
- package/lib/CWTable/EditLine.js +4 -4
- package/lib/CWTable/Filter.js +1 -1
- package/lib/CWTable/FormTable.js +2 -2
- package/lib/CWTable/header.js +23 -22
- package/lib/CWTree/index.js +4 -5
- package/lib/CWTree/utils/index.js +2 -2
- package/lib/CWUpload/upload/DragList.js +2 -2
- package/lib/CWUpload/upload/Dragger.js +3 -3
- package/lib/CWUpload/upload/Upload.js +4 -4
- package/lib/CWUpload/upload/UploadList.js +28 -28
- package/lib/Calendar/index.js +3 -0
- package/lib/Card/index.js +3 -0
- package/lib/CardSelect/index.js +0 -1
- package/lib/Carousel/index.js +3 -0
- package/lib/ChangeIcon/index.js +1 -1
- package/lib/Checkbox/Checkbox.js +2 -2
- package/lib/Checkbox/Group.js +2 -2
- package/lib/Col/Collapse.less +129 -0
- package/lib/Col/index.js +3 -0
- package/lib/Collapse/index.js +1 -1
- package/lib/ColorPicker/index.js +4 -5
- package/lib/Comment/index.js +3 -0
- package/lib/ConfigProvider/ConfigProvider.js +50 -30
- package/lib/ConfigProvider/Switch.js +1 -1
- package/lib/CustomScrollBar/index.js +2 -2
- package/lib/DatePicker/DatePicker.js +1 -1
- package/lib/DatePicker/MonthPicker.js +1 -1
- package/lib/DatePicker/RangePicker.js +1 -1
- package/lib/DateRangePicker/components/ExtraTimeFooter.js +2 -2
- package/lib/Descriptions/index.js +3 -0
- package/lib/Divider/index.js +3 -0
- package/lib/Documentation/Tocify.js +2 -2
- package/lib/Documentation/index.js +2 -3
- package/lib/Drawer/Drawer.less +305 -0
- package/lib/Drawer/index.js +120 -0
- package/lib/Dropdown/Dropdown.less +124 -0
- package/lib/Dropdown/index.js +4 -0
- package/lib/DropdownDatePicker/DropdownMenu/MoreTimeList/index.js +2 -2
- package/lib/DropdownDatePicker/DropdownMenu/index.js +4 -4
- package/lib/DropdownDatePicker/index.js +3 -3
- package/lib/DropdownDatePicker/utils/index.js +2 -2
- package/lib/EchartsArea/index.js +2 -2
- package/lib/EchartsBar/index.js +2 -2
- package/lib/EchartsBase/index.js +2 -3
- package/lib/EchartsLine/index.js +2 -3
- package/lib/ErrorBoundary/history.js +2 -2
- package/lib/ErrorBoundary/index.js +2 -2
- package/lib/FilterDropDown/DragList.js +3 -4
- package/lib/FilterDropDown/index.js +1 -1
- package/lib/Flow/Flow.js +0 -2
- package/lib/Flow/commons/initCommands.js +0 -2
- package/lib/Flow/components/PluginWrapper.js +2 -2
- package/lib/Flow/layouts/callChain.js +2 -2
- package/lib/Flow/plugins/CommandLifeCycle.js +2 -2
- package/lib/Flow/plugins/InitSideBarPlugin.js +2 -2
- package/lib/Flow/plugins/InitToolBarPlugin.js +2 -2
- package/lib/Flow/shape/nodes/baseNode.js +0 -1
- package/lib/Form/FormItem.js +2 -2
- package/lib/FormItemWrapper/index.js +2 -2
- package/lib/Formily/FieldList/index.js +2 -2
- package/lib/Formily/FormItem/index.js +3 -3
- package/lib/Formily/FormItem/items/Password.js +2 -2
- package/lib/Formily/FormItem/items/Rating.js +1 -1
- package/lib/Formily/FormItem/items/Switch.js +1 -1
- package/lib/Formily/FormItem/items/Tansfer.js +1 -1
- package/lib/Formily/FormItem/items/TimePicker.js +1 -1
- package/lib/Formily/MegaLayout/index.js +2 -2
- package/lib/Formily/subscribeFields/index.js +2 -2
- package/lib/GlobalTabs/index.js +2 -2
- package/lib/Header/CommonDropMenu.js +2 -2
- package/lib/Header/CommonIcon.js +2 -2
- package/lib/Header/TopNavigationMenu/index.js +2 -2
- package/lib/Header/UserSetting/index.js +2 -2
- package/lib/Header/UserSetting/utils.js +2 -2
- package/lib/Header/index.js +2 -2
- package/lib/Icon/index.js +3 -0
- package/lib/IconSelect/components/CustomImg/index.js +0 -1
- package/lib/IconSelect/index.js +1 -1
- package/lib/Input/InputComponent.js +2 -2
- package/lib/IntersectionInput/index.js +2 -2
- package/lib/Joyride/List.js +2 -2
- package/lib/Joyride/index.js +3 -3
- package/lib/Layout/Layout.less +6 -0
- package/lib/Layout/index.js +4 -0
- package/lib/LayoutBreadcrumb/index.js +3 -3
- package/lib/LazyLoadingTreeSelect/index.js +2 -2
- package/lib/List/index.js +3 -0
- package/lib/LocaleProvider/index.js +3 -0
- package/lib/Mention/index.js +3 -0
- package/lib/Mentions/index.js +3 -0
- package/lib/Menu/menu/MenuItem.js +2 -3
- package/lib/Menu/menu/SubMenu.js +2 -2
- package/lib/Menu/menu/index.js +2 -2
- package/lib/Modal/Modal.js +2 -2
- package/lib/Modal/custom-backup/entiretyDrag.js +2 -2
- package/lib/Modal/index.js +3 -4
- package/lib/ModuleFederation/ErrorBoundary/index.js +2 -2
- package/lib/ModuleFederation/index.js +1 -1
- package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +3 -3
- package/lib/PageHeader/index.js +3 -0
- package/lib/Pagination/index.js +2 -2
- package/lib/PolymerizationSearch/index.js +2 -2
- package/lib/Popover/index.js +3 -0
- package/lib/Progress/index.js +1 -1
- package/lib/QuickRangePicker/index.js +5 -5
- package/lib/QuickTransfer/Drag.js +0 -1
- package/lib/QuickTransfer/DragList.js +1 -1
- package/lib/QuickTransfer/NotDragList.js +1 -1
- package/lib/QuickTransfer/index.js +2 -2
- package/lib/QuickTransfer/utils.js +2 -4
- package/lib/Radio/Group.js +2 -2
- package/lib/Radio/Radio.js +2 -2
- package/lib/RangePicker/components/ExtraTimeFooter.js +3 -3
- package/lib/Rate/index.js +3 -0
- package/lib/ReactSelect/CustomArrow.js +1 -1
- package/lib/ReactSelect/TagMore.js +1 -1
- package/lib/ReactSelect/customStyles.js +2 -2
- package/lib/ReactSelect/index.js +2 -2
- package/lib/Result/index.js +3 -0
- package/lib/Row/index.js +3 -0
- package/lib/SearchBar/index.js +6 -6
- package/lib/Select/TreeSelect.less +10 -0
- package/lib/Select/index.js +4 -0
- package/lib/SelectBackup/index.js +2 -2
- package/lib/SelectBackup/select/index.js +0 -1
- package/lib/SiderMenu/Item.js +2 -2
- package/lib/SiderMenu/index.js +3 -3
- package/lib/SimplePagination/index.js +3 -3
- package/lib/SingleSpa/import-html/process-tpl.js +0 -1
- package/lib/SingleSpa/index.js +2 -2
- package/lib/SingleSpa/singleSpa/single-spa.dev.js +2 -3
- package/lib/Skeleton/index.js +3 -0
- package/lib/Spin/Spin.less +16 -0
- package/lib/Spin/index.js +4 -0
- package/lib/Statistic/index.js +3 -0
- package/lib/Steps/Steps.less +502 -0
- package/lib/Steps/index.js +4 -0
- package/lib/Switch/Switch.less +62 -0
- package/lib/Switch/index.js +4 -0
- package/lib/Table/Table.less +306 -0
- package/lib/Table/index.js +4 -0
- package/lib/Tabs/index.js +2 -2
- package/lib/Tabs/index.less +3 -0
- package/lib/ThemeProvider/main.js +2 -2
- package/lib/TimePicker/index.js +3 -2
- package/lib/Transfer/index.js +3 -0
- package/lib/Tree/TreeSelect.less +10 -0
- package/lib/Tree/index.js +4 -0
- package/lib/TreeList/index.js +2 -2
- package/lib/TreeSelect/TreeSelect.less +10 -0
- package/lib/TreeSelect/index.js +4 -0
- package/lib/TreeSelect111/index.js +2 -2
- package/lib/TreeSelect111/utils/index.js +2 -2
- package/lib/Typography/index.js +3 -0
- package/lib/WangEditor/release/wangEditor.js +0 -6
- package/lib/WangEditor/wangEditor.js +0 -3
- package/lib/Watermark/index.js +2 -2
- package/lib/index.js +145 -0
- package/lib/message/index.js +3 -5
- package/lib/noticeManager/globalState.js +2 -2
- package/lib/portalNoticeManager/usePortalDispatchNotice.js +2 -2
- package/lib/useLocale/index.js +2 -2
- package/lib/version/index.js +3 -0
- package/package.json +2 -2
- /package/config/babel/{antdComs.js → antdComs-nouse.js} +0 -0
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
@steps-prefix-cls: ~'@{ant-prefix}-steps';
|
|
2
|
+
@process-icon-color: @primary-color;
|
|
3
|
+
@process-title-color: @heading-color;
|
|
4
|
+
@process-description-color: @text-color-secondary;
|
|
5
|
+
@process-icon-text-color: @text-color-inverse;
|
|
6
|
+
@wait-icon-color: @disabled-color;
|
|
7
|
+
@wait-title-color: @text-color-secondary;
|
|
8
|
+
@wait-description-color: @wait-title-color;
|
|
9
|
+
@wait-tail-color: @process-tail-color;
|
|
10
|
+
@finish-icon-color: @process-icon-color;
|
|
11
|
+
@finish-title-color: @text-color;
|
|
12
|
+
@finish-description-color: @text-color-secondary;
|
|
13
|
+
@error-icon-color: @error-color;
|
|
14
|
+
@error-title-color: @error-color;
|
|
15
|
+
@error-description-color: @error-color;
|
|
16
|
+
@error-tail-color: @wait-tail-color;
|
|
17
|
+
@steps-background: @component-background;
|
|
18
|
+
@steps-nav-arrow-color: fade(@black, 25%);
|
|
19
|
+
@steps-nav-active-color: @primary-color;
|
|
20
|
+
|
|
21
|
+
@steps-small-icon-size: 24px;
|
|
22
|
+
@steps-dot-size: 8px;
|
|
23
|
+
@steps-current-dot-size: 10px;
|
|
24
|
+
@steps-desciption-max-width: 140px;
|
|
25
|
+
@steps-nav-content-max-width: auto;
|
|
26
|
+
|
|
27
|
+
.@{steps-prefix-cls} {
|
|
28
|
+
// Fixed 冲突纵向步骤条样式
|
|
29
|
+
// display: flex;
|
|
30
|
+
// width: 100%;
|
|
31
|
+
// font-size: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.@{steps-prefix-cls}-item {
|
|
35
|
+
position: relative;
|
|
36
|
+
display: inline-block;
|
|
37
|
+
flex: 1;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
vertical-align: top;
|
|
40
|
+
|
|
41
|
+
&-container {
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:last-child {
|
|
46
|
+
flex: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:last-child>&-container>&-tail,
|
|
50
|
+
&:last-child>&-container>&-content>&-title::after {
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-icon,
|
|
55
|
+
&-content {
|
|
56
|
+
display: inline-block;
|
|
57
|
+
vertical-align: top;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&-icon {
|
|
61
|
+
width: @steps-icon-size;
|
|
62
|
+
height: @steps-icon-size;
|
|
63
|
+
margin-right: 8px;
|
|
64
|
+
font-size: @font-size-lg;
|
|
65
|
+
font-family: @font-family;
|
|
66
|
+
line-height: @steps-icon-size;
|
|
67
|
+
text-align: center;
|
|
68
|
+
border: @border-width-base @border-style-base @wait-icon-color;
|
|
69
|
+
border-radius: @steps-icon-size;
|
|
70
|
+
transition: background-color 0.3s, border-color 0.3s;
|
|
71
|
+
|
|
72
|
+
>.@{steps-prefix-cls}-icon {
|
|
73
|
+
position: relative;
|
|
74
|
+
top: -1px;
|
|
75
|
+
color: @primary-color;
|
|
76
|
+
line-height: 1;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&-tail {
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 12px;
|
|
83
|
+
left: 0;
|
|
84
|
+
width: 100%;
|
|
85
|
+
padding: 0 10px;
|
|
86
|
+
|
|
87
|
+
&::after {
|
|
88
|
+
display: inline-block;
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 1px;
|
|
91
|
+
background: @border-color-split;
|
|
92
|
+
border-radius: 1px;
|
|
93
|
+
transition: background 0.3s;
|
|
94
|
+
content: '';
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&-title {
|
|
99
|
+
position: relative;
|
|
100
|
+
display: inline-block;
|
|
101
|
+
padding-right: 8px; // ui规范
|
|
102
|
+
color: @text-color;
|
|
103
|
+
// font-size: @font-size-lg;
|
|
104
|
+
font-size: 14px;
|
|
105
|
+
line-height: @steps-icon-size;
|
|
106
|
+
// line-height: 22px; // 符合UI规范(不调整,@steps-icon-size原因,布局会有变化)
|
|
107
|
+
&::after {
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: @steps-icon-size / 2;
|
|
110
|
+
left: 100%;
|
|
111
|
+
display: block;
|
|
112
|
+
width: 9999px;
|
|
113
|
+
height: 1px;
|
|
114
|
+
background: @wait-tail-color;
|
|
115
|
+
content: '';
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&-subtitle {
|
|
120
|
+
display: inline;
|
|
121
|
+
margin-left: 8px;
|
|
122
|
+
color: @text-color-secondary;
|
|
123
|
+
font-weight: normal;
|
|
124
|
+
font-size: @font-size-base;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&-description {
|
|
128
|
+
color: @text-color-secondary;
|
|
129
|
+
font-size: @font-size-base;
|
|
130
|
+
margin-top: @vertical-margin; // ui新规范
|
|
131
|
+
font-weight: 400;
|
|
132
|
+
line-height: 20px; // ui规范
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.step-item-status(wait);
|
|
136
|
+
.step-item-status(process);
|
|
137
|
+
|
|
138
|
+
&-process &-icon {
|
|
139
|
+
background: @process-icon-color;
|
|
140
|
+
|
|
141
|
+
>.@{steps-prefix-cls}-icon {
|
|
142
|
+
color: @process-icon-text-color;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&-process,
|
|
147
|
+
&-finish &-title {
|
|
148
|
+
font-weight: 500; // ui规范
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.step-item-status(finish);
|
|
152
|
+
.step-item-status(error);
|
|
153
|
+
|
|
154
|
+
&.@{steps-prefix-cls}-next-error .@{steps-prefix-cls}-item-title::after {
|
|
155
|
+
background: @error-icon-color;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// ===================== Clickable =====================
|
|
160
|
+
.@{steps-prefix-cls} .@{steps-prefix-cls}-item {
|
|
161
|
+
&:not(.@{steps-prefix-cls}-item-active) {
|
|
162
|
+
&>.@{steps-prefix-cls}-item-container[role='button'] {
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
|
|
165
|
+
.@{steps-prefix-cls}-item {
|
|
166
|
+
|
|
167
|
+
&-title,
|
|
168
|
+
&-description,
|
|
169
|
+
&-icon .@{steps-prefix-cls}-icon {
|
|
170
|
+
transition: color 0.3s;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&:hover {
|
|
175
|
+
.@{steps-prefix-cls}-item {
|
|
176
|
+
|
|
177
|
+
&-title,
|
|
178
|
+
&-subtitle,
|
|
179
|
+
&-description {
|
|
180
|
+
color: @primary-color;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&:not(.@{steps-prefix-cls}-item-process) {
|
|
187
|
+
&>.@{steps-prefix-cls}-item-container[role='button']:hover {
|
|
188
|
+
.@{steps-prefix-cls}-item {
|
|
189
|
+
&-icon {
|
|
190
|
+
border-color: @primary-color;
|
|
191
|
+
|
|
192
|
+
.@{steps-prefix-cls}-icon {
|
|
193
|
+
color: @primary-color;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.@{steps-prefix-cls}-horizontal:not(.@{steps-prefix-cls}-label-vertical) {
|
|
203
|
+
.@{steps-prefix-cls}-item {
|
|
204
|
+
margin-right: 8px; // ui规范
|
|
205
|
+
white-space: nowrap;
|
|
206
|
+
|
|
207
|
+
&:last-child {
|
|
208
|
+
margin-right: 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&:last-child .@{steps-prefix-cls}-item-title {
|
|
212
|
+
padding-right: 0;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&-tail {
|
|
216
|
+
display: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&-description {
|
|
220
|
+
max-width: @steps-desciption-max-width;
|
|
221
|
+
white-space: normal;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.step-item-status(@status) {
|
|
227
|
+
@icon-color: '@{status}-icon-color';
|
|
228
|
+
@title-color: '@{status}-title-color';
|
|
229
|
+
@description-color: '@{status}-description-color';
|
|
230
|
+
@tail-color: '@{status}-tail-color';
|
|
231
|
+
|
|
232
|
+
&-@{status} &-icon {
|
|
233
|
+
background-color: @steps-background;
|
|
234
|
+
border-color: @@icon-color;
|
|
235
|
+
|
|
236
|
+
>.@{steps-prefix-cls}-icon {
|
|
237
|
+
color: @@icon-color;
|
|
238
|
+
|
|
239
|
+
.@{steps-prefix-cls}-icon-dot {
|
|
240
|
+
background: @@icon-color;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&-@{status}>&-container>&-content>&-title {
|
|
246
|
+
color: @@title-color;
|
|
247
|
+
|
|
248
|
+
&::after {
|
|
249
|
+
background-color: @@tail-color;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
&-@{status}>&-container>&-content>&-description {
|
|
254
|
+
color: @@description-color;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&-@{status}>&-container>&-tail::after {
|
|
258
|
+
background-color: @@tail-color;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
.steps-vertical() {
|
|
265
|
+
display: block;
|
|
266
|
+
|
|
267
|
+
.@{steps-prefix-cls}-item {
|
|
268
|
+
display: block;
|
|
269
|
+
overflow: visible;
|
|
270
|
+
|
|
271
|
+
&-icon {
|
|
272
|
+
float: left;
|
|
273
|
+
margin-right: 8px;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
&-content {
|
|
277
|
+
display: block;
|
|
278
|
+
min-height: 96px; // 设置步骤条线最小高度为60px,后期调整为固定高度
|
|
279
|
+
overflow: hidden;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
&-title {
|
|
283
|
+
line-height: @steps-icon-size;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
&-description {
|
|
287
|
+
padding-bottom: 12px;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
>.@{steps-prefix-cls}-item>.@{steps-prefix-cls}-item-container>.@{steps-prefix-cls}-item-tail {
|
|
292
|
+
position: absolute;
|
|
293
|
+
top: 0;
|
|
294
|
+
left: @steps-icon-size / 2;
|
|
295
|
+
width: 1px;
|
|
296
|
+
height: 100%;
|
|
297
|
+
padding: @steps-icon-size + 6px 0 6px;
|
|
298
|
+
|
|
299
|
+
&::after {
|
|
300
|
+
width: 1px;
|
|
301
|
+
height: 100%;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
>.@{steps-prefix-cls}-item:not(:last-child)>.@{steps-prefix-cls}-item-container>.@{steps-prefix-cls}-item-tail {
|
|
306
|
+
display: block;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
>.@{steps-prefix-cls}-item>.@{steps-prefix-cls}-item-container>.@{steps-prefix-cls}-item-content>.@{steps-prefix-cls}-item-title {
|
|
310
|
+
&::after {
|
|
311
|
+
display: none;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
&.@{steps-prefix-cls}-small .@{steps-prefix-cls}-item-container {
|
|
316
|
+
.@{steps-prefix-cls}-item-tail {
|
|
317
|
+
position: absolute;
|
|
318
|
+
top: 0;
|
|
319
|
+
left: 12px;
|
|
320
|
+
padding: @steps-small-icon-size + 6px 0 6px;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.@{steps-prefix-cls}-item-title {
|
|
324
|
+
line-height: @steps-small-icon-size;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.@{steps-prefix-cls}-vertical {
|
|
330
|
+
.steps-vertical;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
@media (max-width: @screen-xs) {
|
|
334
|
+
.@{steps-prefix-cls}-horizontal.@{steps-prefix-cls}-label-horizontal {
|
|
335
|
+
.steps-vertical;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// dot样式
|
|
340
|
+
.@{steps-prefix-cls}-dot,
|
|
341
|
+
.@{steps-prefix-cls}-dot.@{steps-prefix-cls}-small {
|
|
342
|
+
.@{steps-prefix-cls}-item {
|
|
343
|
+
&-title {
|
|
344
|
+
line-height: 22px; // ui规范
|
|
345
|
+
}
|
|
346
|
+
&-description {
|
|
347
|
+
margin-top: 4px;
|
|
348
|
+
}
|
|
349
|
+
&-tail {
|
|
350
|
+
top: 2px;
|
|
351
|
+
width: 100%;
|
|
352
|
+
margin: 0 0 0 @steps-desciption-max-width / 2;
|
|
353
|
+
padding: 0;
|
|
354
|
+
|
|
355
|
+
&::after {
|
|
356
|
+
width: ~'calc(100% - 20px)';
|
|
357
|
+
height: 3px;
|
|
358
|
+
margin-left: 12px;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
&:first-child .@{steps-prefix-cls}-icon-dot {
|
|
363
|
+
left: 2px;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
&-icon {
|
|
367
|
+
width: @steps-dot-size;
|
|
368
|
+
height: @steps-dot-size;
|
|
369
|
+
margin-left: 67px;
|
|
370
|
+
padding-right: 0;
|
|
371
|
+
line-height: @steps-dot-size;
|
|
372
|
+
background: transparent;
|
|
373
|
+
border: 0;
|
|
374
|
+
|
|
375
|
+
.@{steps-prefix-cls}-icon-dot {
|
|
376
|
+
position: relative;
|
|
377
|
+
float: left;
|
|
378
|
+
width: 100%;
|
|
379
|
+
height: 100%;
|
|
380
|
+
border-radius: 100px;
|
|
381
|
+
transition: all 0.3s;
|
|
382
|
+
|
|
383
|
+
/* expand hover area */
|
|
384
|
+
&::after {
|
|
385
|
+
position: absolute;
|
|
386
|
+
top: -12px;
|
|
387
|
+
left: -26px;
|
|
388
|
+
width: 60px;
|
|
389
|
+
height: 32px;
|
|
390
|
+
background: fade(@black, 0.1%);
|
|
391
|
+
content: '';
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
&-content {
|
|
397
|
+
width: @steps-desciption-max-width;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
&-process .@{steps-prefix-cls}-item-icon {
|
|
401
|
+
width: @steps-current-dot-size;
|
|
402
|
+
height: @steps-current-dot-size;
|
|
403
|
+
line-height: @steps-current-dot-size;
|
|
404
|
+
|
|
405
|
+
.@{steps-prefix-cls}-icon-dot {
|
|
406
|
+
top: -1px;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.@{steps-prefix-cls}-vertical.@{steps-prefix-cls}-dot {
|
|
413
|
+
.@{steps-prefix-cls}-item-icon {
|
|
414
|
+
margin-top: 8px;
|
|
415
|
+
margin-left: 0;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
// https://github.com/ant-design/ant-design/issues/18354
|
|
419
|
+
.@{steps-prefix-cls}-item>.@{steps-prefix-cls}-item-container>.@{steps-prefix-cls}-item-tail {
|
|
420
|
+
top: 2px;
|
|
421
|
+
left: -9px;
|
|
422
|
+
margin: 0;
|
|
423
|
+
padding: 22px 0 4px;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.@{steps-prefix-cls}-item:first-child .@{steps-prefix-cls}-icon-dot {
|
|
427
|
+
left: 0;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.@{steps-prefix-cls}-item-process .@{steps-prefix-cls}-icon-dot {
|
|
431
|
+
left: -2px;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.@{steps-prefix-cls}-item {
|
|
435
|
+
&-content {
|
|
436
|
+
min-height: 86px; // 设置步骤条线最小高度为60px,后期调整为固定高度
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.@{steps-prefix-cls}-horizontal.@{steps-prefix-cls}-dot {
|
|
442
|
+
.@{steps-prefix-cls}-item {
|
|
443
|
+
flex-grow: 0;
|
|
444
|
+
flex-basis: auto;
|
|
445
|
+
|
|
446
|
+
&-container {
|
|
447
|
+
.@{steps-prefix-cls}-item-tail {
|
|
448
|
+
margin: 0;
|
|
449
|
+
|
|
450
|
+
&:after {
|
|
451
|
+
margin-left: 16px;
|
|
452
|
+
width: 100px;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.@{steps-prefix-cls}-item-icon {
|
|
457
|
+
margin-left: 0;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.@{steps-prefix-cls}-item-content {
|
|
461
|
+
width: 124px;
|
|
462
|
+
text-align: left;
|
|
463
|
+
|
|
464
|
+
.@{steps-prefix-cls}-item-title {
|
|
465
|
+
width: 98px;
|
|
466
|
+
overflow: hidden;
|
|
467
|
+
text-overflow: ellipsis;
|
|
468
|
+
white-space: nowrap;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.@{steps-prefix-cls}-item-description {
|
|
472
|
+
width: 108px;
|
|
473
|
+
overflow: hidden;
|
|
474
|
+
text-overflow: ellipsis;
|
|
475
|
+
display: -webkit-box;
|
|
476
|
+
-webkit-box-orient: vertical;
|
|
477
|
+
/*设置对齐模式*/
|
|
478
|
+
-webkit-line-clamp: 2;
|
|
479
|
+
/*设置多行的行数*/
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.@{steps-prefix-cls}:not(.@{steps-prefix-cls}-dot):not(.@{steps-prefix-cls}-vertical) {
|
|
487
|
+
.@{steps-prefix-cls}-item {
|
|
488
|
+
flex-grow: 0;
|
|
489
|
+
flex-basis: auto;
|
|
490
|
+
|
|
491
|
+
&-title {
|
|
492
|
+
display: flex;
|
|
493
|
+
|
|
494
|
+
&::after {
|
|
495
|
+
position: relative;
|
|
496
|
+
width: 100px;
|
|
497
|
+
left: auto;
|
|
498
|
+
right: -8px;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@switch-prefix-cls: ~'@{ant-prefix}-switch';
|
|
2
|
+
|
|
3
|
+
.@{switch-prefix-cls} {
|
|
4
|
+
min-width: 40px;
|
|
5
|
+
|
|
6
|
+
&-loading {
|
|
7
|
+
|
|
8
|
+
&-icon,
|
|
9
|
+
&::after {
|
|
10
|
+
width: 14px;
|
|
11
|
+
height: 14px;
|
|
12
|
+
border-radius: 14px;
|
|
13
|
+
top: 2px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-checked &-loading-icon {
|
|
18
|
+
margin-left: -15px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&::after {
|
|
22
|
+
box-shadow: none;
|
|
23
|
+
background-color: @white;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:not(&-disabled):active::before,
|
|
27
|
+
&:not(&-disabled):active::after {
|
|
28
|
+
width: 20px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&-inner {
|
|
32
|
+
margin-right: 5px;
|
|
33
|
+
margin-left: 21px;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-checked {
|
|
38
|
+
.@{switch-prefix-cls}-inner {
|
|
39
|
+
margin-right: 21px;
|
|
40
|
+
margin-left: 5px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-disabled:not(&-checked):not(&-loading) {
|
|
45
|
+
background-color: @switch-disabled-bg;
|
|
46
|
+
opacity: 1;
|
|
47
|
+
|
|
48
|
+
&:after {
|
|
49
|
+
opacity: 0.75;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:not(&-disabled):not(&-loading) {
|
|
54
|
+
&[aria-checked="true"]:hover {
|
|
55
|
+
background-color: @primary-5; // 符合UI规范
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&[aria-checked="false"]:hover {
|
|
59
|
+
background-color: @switch-unchekcked-hover-bg; // 符合UI规范
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|