@aloudata/aloudata-design 0.3.1 → 0.3.4
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/README.md +15 -5
- package/es/Breadcrumb/index.d.ts +1 -0
- package/es/Button/index.js +3 -2
- package/es/Button/style/index.less +135 -126
- package/es/Button/style/variables.less +53 -53
- package/es/Card/index.d.ts +3 -0
- package/es/Card/index.js +3 -0
- package/es/Card/style/index.d.ts +2 -0
- package/es/Card/style/index.js +2 -0
- package/es/Card/style/index.less +1 -0
- package/es/Checkbox/index.d.ts +1 -0
- package/es/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
- package/es/ConfigProvider/defaultRenderEmpty.js +37 -0
- package/es/ConfigProvider/sizeContext.d.ts +9 -0
- package/es/ConfigProvider/sizeContext.js +12 -0
- package/es/Dropdown/Button.js +4 -3
- package/es/Empty/image/Authority.d.ts +1 -0
- package/es/Empty/image/Dataspace.d.ts +1 -0
- package/es/Empty/image/Search.d.ts +1 -0
- package/es/Empty/image/Simple.d.ts +1 -0
- package/es/Empty/image/Worksheet.d.ts +1 -0
- package/es/Empty/image/empty.d.ts +1 -0
- package/es/Icon/icons/CheckLine.d.ts +13 -0
- package/es/Icon/icons/CheckLine.js +73 -0
- package/es/Icon/icons.json +410 -0
- package/es/Input/components/Group/index.d.ts +3 -1
- package/es/Input/components/Group/index.js +6 -12
- package/es/Input/components/Input/index.d.ts +3 -2
- package/es/Input/components/Input/index.js +11 -23
- package/es/Input/components/Password/index.js +11 -16
- package/es/Input/components/TextArea/index.d.ts +8 -1
- package/es/Input/components/TextArea/index.js +8 -1
- package/es/Input/style/index.less +180 -102
- package/es/InputNumber/index.d.ts +1 -0
- package/es/InputNumber/style/index.less +69 -69
- package/es/Menu/Divider.d.ts +1 -0
- package/es/Modal/index.js +20 -16
- package/es/Modal/locale.d.ts +7 -0
- package/es/Modal/locale.js +20 -0
- package/es/Modal/style/index.less +48 -45
- package/es/Navigator/components/Header/index.d.ts +1 -0
- package/es/Navigator/components/Menu/index.d.ts +1 -0
- package/es/Navigator/components/MenuItem/index.d.ts +1 -1
- package/es/Navigator/index.d.ts +1 -1
- package/es/PageHeader/index.d.ts +3 -0
- package/es/PageHeader/index.js +3 -0
- package/es/PageHeader/style/index.d.ts +2 -0
- package/es/PageHeader/style/index.js +2 -0
- package/es/PageHeader/style/index.less +1 -0
- package/es/Popover/index.d.ts +1 -0
- package/es/Radio/components/Group/index.d.ts +6 -0
- package/es/Radio/components/Group/index.js +72 -0
- package/es/Radio/components/Radio/index.d.ts +3 -0
- package/es/Radio/components/Radio/index.js +95 -0
- package/es/Radio/index.d.ts +9 -2
- package/es/Radio/index.js +5 -3
- package/es/Radio/interface/radio.d.ts +24 -0
- package/es/Radio/interface/radio.js +1 -0
- package/es/Radio/interface/radioGroup.d.ts +42 -0
- package/es/Radio/interface/radioGroup.js +1 -0
- package/es/Radio/style/index.less +348 -0
- package/es/Select/index.js +1 -1
- package/es/Select/rc-select/OptionList.js +4 -4
- package/es/Select/rc-select/Selector/MultipleSelector.js +11 -1
- package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/es/Select/style/index.less +70 -45
- package/es/Select/style/variables.less +45 -45
- package/es/Select/utils/iconUtil.d.ts +2 -2
- package/es/Select/utils/iconUtil.js +9 -5
- package/es/Steps/components/ProcessIcon/index.d.ts +6 -0
- package/es/Steps/components/ProcessIcon/index.js +8 -0
- package/es/Steps/components/Step/index.d.ts +20 -0
- package/es/Steps/components/Step/index.js +45 -0
- package/es/Steps/index.d.ts +36 -2
- package/es/Steps/index.js +30 -1
- package/es/Steps/matchMedia.mock.d.ts +1 -0
- package/es/Steps/matchMedia.mock.js +17 -0
- package/es/Steps/style/index.less +251 -0
- package/es/Switch/index.d.ts +46 -2
- package/es/Switch/index.js +71 -1
- package/es/Switch/style/index.less +129 -0
- package/es/Table/Table.d.ts +2 -1
- package/es/Table/Table.js +223 -330
- package/es/Table/components/Empty/index.d.ts +3 -0
- package/es/Table/components/Empty/index.js +17 -0
- package/es/Table/components/Loading/index.d.ts +3 -0
- package/es/Table/components/Loading/index.js +19 -0
- package/es/Table/components/TableBodyRowList/index.d.ts +13 -0
- package/es/Table/components/TableBodyRowList/index.js +89 -0
- package/es/Table/components/TableHead/index.d.ts +23 -0
- package/es/Table/components/TableHead/index.js +262 -0
- package/es/Table/constant.d.ts +1 -0
- package/es/Table/constant.js +1 -0
- package/es/Table/hooks/useFrame.d.ts +7 -0
- package/es/Table/hooks/useFrame.js +90 -0
- package/es/Table/hooks/useTableColumn.d.ts +28 -0
- package/es/Table/hooks/useTableColumn.js +53 -0
- package/es/Table/interface.d.ts +3 -2
- package/es/Table/style/index.less +33 -30
- package/es/Table/utils.d.ts +15 -0
- package/es/Table/utils.js +131 -0
- package/es/Tabs/index.js +7 -9
- package/es/Tabs/style/index.less +57 -25
- package/es/_utils/hooks/useId.d.ts +4 -0
- package/es/_utils/hooks/useId.js +23 -0
- package/es/index.d.ts +9 -5
- package/es/index.js +3 -1
- package/es/locale/default.d.ts +2 -0
- package/es/locale/default.js +2 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +132 -0
- package/es/locale/zh_CN.d.ts +3 -2
- package/es/locale/zh_CN.js +131 -2
- package/es/locale-provider/LocaleReceiver.d.ts +4 -0
- package/es/locale-provider/LocaleReceiver.js +3 -0
- package/es/locale-provider/context.d.ts +7 -0
- package/es/locale-provider/context.js +3 -0
- package/es/locale-provider/default.d.ts +2 -0
- package/es/locale-provider/default.js +2 -0
- package/es/locale-provider/en_US.d.ts +2 -0
- package/es/locale-provider/en_US.js +2 -0
- package/es/locale-provider/index.d.ts +65 -0
- package/es/locale-provider/index.js +102 -0
- package/es/locale-provider/style/index.d.ts +1 -0
- package/es/locale-provider/style/index.js +1 -0
- package/es/locale-provider/style/index.less +2 -0
- package/es/locale-provider/zh_CN.d.ts +2 -0
- package/es/locale-provider/zh_CN.js +2 -0
- package/es/style/index.d.ts +0 -1
- package/es/style/index.js +0 -1
- package/es/style/index.less +2 -2
- package/es/style/themes/default/index.less +30 -30
- package/lib/Breadcrumb/index.d.ts +1 -0
- package/lib/Button/index.js +5 -3
- package/lib/Button/style/index.less +135 -126
- package/lib/Button/style/variables.less +53 -53
- package/lib/Card/index.d.ts +3 -0
- package/lib/Card/index.js +15 -0
- package/lib/Card/style/index.d.ts +2 -0
- package/lib/Card/style/index.js +5 -0
- package/lib/Card/style/index.less +1 -0
- package/lib/Checkbox/index.d.ts +1 -0
- package/lib/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
- package/lib/ConfigProvider/defaultRenderEmpty.js +55 -0
- package/lib/ConfigProvider/sizeContext.d.ts +9 -0
- package/lib/ConfigProvider/sizeContext.js +30 -0
- package/lib/Dropdown/Button.js +8 -6
- package/lib/Empty/image/Authority.d.ts +1 -0
- package/lib/Empty/image/Dataspace.d.ts +1 -0
- package/lib/Empty/image/Search.d.ts +1 -0
- package/lib/Empty/image/Simple.d.ts +1 -0
- package/lib/Empty/image/Worksheet.d.ts +1 -0
- package/lib/Empty/image/empty.d.ts +1 -0
- package/lib/Icon/icons/CheckLine.d.ts +13 -0
- package/lib/Icon/icons/CheckLine.js +90 -0
- package/lib/Icon/icons.json +410 -0
- package/lib/Input/components/Group/index.d.ts +3 -1
- package/lib/Input/components/Group/index.js +7 -12
- package/lib/Input/components/Input/index.d.ts +3 -2
- package/lib/Input/components/Input/index.js +13 -23
- package/lib/Input/components/Password/index.js +13 -17
- package/lib/Input/components/TextArea/index.d.ts +8 -1
- package/lib/Input/components/TextArea/index.js +10 -1
- package/lib/Input/style/index.less +180 -102
- package/lib/InputNumber/index.d.ts +1 -0
- package/lib/InputNumber/style/index.less +69 -69
- package/lib/Menu/Divider.d.ts +1 -0
- package/lib/Modal/index.js +25 -18
- package/lib/Modal/locale.d.ts +7 -0
- package/lib/Modal/locale.js +31 -0
- package/lib/Modal/style/index.less +48 -45
- package/lib/Navigator/components/Header/index.d.ts +1 -0
- package/lib/Navigator/components/Menu/index.d.ts +1 -0
- package/lib/Navigator/components/MenuItem/index.d.ts +1 -1
- package/lib/Navigator/index.d.ts +1 -1
- package/lib/PageHeader/index.d.ts +3 -0
- package/lib/PageHeader/index.js +15 -0
- package/lib/PageHeader/style/index.d.ts +2 -0
- package/lib/PageHeader/style/index.js +5 -0
- package/lib/PageHeader/style/index.less +1 -0
- package/lib/Popover/index.d.ts +1 -0
- package/lib/Radio/components/Group/index.d.ts +6 -0
- package/lib/Radio/components/Group/index.js +93 -0
- package/lib/Radio/components/Radio/index.d.ts +3 -0
- package/lib/Radio/components/Radio/index.js +115 -0
- package/lib/Radio/index.d.ts +9 -2
- package/lib/Radio/index.js +5 -3
- package/lib/Radio/interface/radio.d.ts +24 -0
- package/lib/Radio/interface/radio.js +5 -0
- package/lib/Radio/interface/radioGroup.d.ts +42 -0
- package/lib/Radio/interface/radioGroup.js +5 -0
- package/lib/Radio/style/index.less +348 -0
- package/lib/Select/index.js +1 -1
- package/lib/Select/rc-select/OptionList.js +8 -7
- package/lib/Select/rc-select/Selector/MultipleSelector.js +11 -1
- package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/lib/Select/style/index.less +70 -45
- package/lib/Select/style/variables.less +45 -45
- package/lib/Select/utils/iconUtil.d.ts +2 -2
- package/lib/Select/utils/iconUtil.js +13 -7
- package/lib/Steps/components/ProcessIcon/index.d.ts +6 -0
- package/lib/Steps/components/ProcessIcon/index.js +19 -0
- package/lib/Steps/components/Step/index.d.ts +20 -0
- package/lib/Steps/components/Step/index.js +61 -0
- package/lib/Steps/index.d.ts +36 -2
- package/lib/Steps/index.js +34 -1
- package/lib/Steps/matchMedia.mock.d.ts +1 -0
- package/lib/Steps/matchMedia.mock.js +17 -0
- package/lib/Steps/style/index.less +251 -0
- package/lib/Switch/index.d.ts +46 -2
- package/lib/Switch/index.js +78 -1
- package/lib/Switch/style/index.less +129 -0
- package/lib/Table/Table.d.ts +2 -1
- package/lib/Table/Table.js +228 -332
- package/lib/Table/components/Empty/index.d.ts +3 -0
- package/lib/Table/components/Empty/index.js +30 -0
- package/lib/Table/components/Loading/index.d.ts +3 -0
- package/lib/Table/components/Loading/index.js +33 -0
- package/lib/Table/components/TableBodyRowList/index.d.ts +13 -0
- package/lib/Table/components/TableBodyRowList/index.js +108 -0
- package/lib/Table/components/TableHead/index.d.ts +23 -0
- package/lib/Table/components/TableHead/index.js +286 -0
- package/lib/Table/constant.d.ts +1 -0
- package/lib/Table/constant.js +1 -0
- package/lib/Table/hooks/useFrame.d.ts +7 -0
- package/lib/Table/hooks/useFrame.js +98 -0
- package/lib/Table/hooks/useTableColumn.d.ts +28 -0
- package/lib/Table/hooks/useTableColumn.js +66 -0
- package/lib/Table/interface.d.ts +3 -2
- package/lib/Table/style/index.less +33 -30
- package/lib/Table/utils.d.ts +15 -0
- package/lib/Table/utils.js +147 -0
- package/lib/Tabs/index.js +9 -11
- package/lib/Tabs/style/index.less +57 -25
- package/lib/_utils/hooks/useId.d.ts +4 -0
- package/lib/_utils/hooks/useId.js +36 -0
- package/lib/index.d.ts +9 -5
- package/lib/index.js +16 -0
- package/lib/locale/default.d.ts +2 -0
- package/lib/locale/default.js +13 -0
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.js +146 -0
- package/lib/locale/zh_CN.d.ts +3 -2
- package/lib/locale/zh_CN.js +134 -2
- package/lib/locale-provider/LocaleReceiver.d.ts +4 -0
- package/lib/locale-provider/LocaleReceiver.js +23 -0
- package/lib/locale-provider/context.d.ts +7 -0
- package/lib/locale-provider/context.js +12 -0
- package/lib/locale-provider/default.d.ts +2 -0
- package/lib/locale-provider/default.js +13 -0
- package/lib/locale-provider/en_US.d.ts +2 -0
- package/lib/locale-provider/en_US.js +13 -0
- package/lib/locale-provider/index.d.ts +65 -0
- package/lib/locale-provider/index.js +116 -0
- package/lib/locale-provider/style/index.d.ts +1 -0
- package/lib/locale-provider/style/index.js +3 -0
- package/lib/locale-provider/style/index.less +2 -0
- package/lib/locale-provider/zh_CN.d.ts +2 -0
- package/lib/locale-provider/zh_CN.js +13 -0
- package/lib/style/index.d.ts +0 -1
- package/lib/style/index.js +0 -2
- package/lib/style/index.less +2 -2
- package/lib/style/themes/default/index.less +30 -30
- package/package.json +11 -8
|
@@ -7,6 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
+
require("@aloudata/icons-react/styles/index.less");
|
|
11
|
+
|
|
12
|
+
var _CheckLine2 = _interopRequireDefault(require("@aloudata/icons-react/es/icons/CheckLine"));
|
|
13
|
+
|
|
10
14
|
var React = _interopRequireWildcard(require("react"));
|
|
11
15
|
|
|
12
16
|
var _KeyCode = _interopRequireDefault(require("rc-util/lib/KeyCode"));
|
|
@@ -29,18 +33,16 @@ var _SelectContext = _interopRequireDefault(require("./SelectContext"));
|
|
|
29
33
|
|
|
30
34
|
var _Checkbox = _interopRequireDefault(require("../../Checkbox"));
|
|
31
35
|
|
|
32
|
-
var _Icon = _interopRequireDefault(require("../../Icon"));
|
|
33
|
-
|
|
34
36
|
var _themeColorModule = _interopRequireDefault(require("../../style/themes/default/themeColor.module.less"));
|
|
35
37
|
|
|
36
38
|
var _excluded = ["disabled", "title", "children", "style", "className"];
|
|
37
39
|
|
|
38
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
|
-
|
|
40
40
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
41
|
|
|
42
42
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
43
43
|
|
|
44
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
45
|
+
|
|
44
46
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
45
47
|
|
|
46
48
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -407,10 +409,9 @@ var OptionList = function OptionList(_, ref) {
|
|
|
407
409
|
style: style
|
|
408
410
|
}), !multiple && /*#__PURE__*/React.createElement("div", {
|
|
409
411
|
className: 'ald-select-single-check'
|
|
410
|
-
}, selected && /*#__PURE__*/React.createElement(
|
|
412
|
+
}, selected && /*#__PURE__*/React.createElement(_CheckLine2.default, {
|
|
411
413
|
color: _themeColorModule.default.B60,
|
|
412
|
-
size: '1em'
|
|
413
|
-
type: "check"
|
|
414
|
+
size: '1em'
|
|
414
415
|
})), multiple && /*#__PURE__*/React.createElement(_Checkbox.default, {
|
|
415
416
|
className: 'ald-select-multiple-checkbox',
|
|
416
417
|
checked: selected,
|
|
@@ -68,7 +68,8 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
68
68
|
removeIcon = props.removeIcon,
|
|
69
69
|
_props$maxTagCount = props.maxTagCount,
|
|
70
70
|
maxTagCount = _props$maxTagCount === void 0 ? "responsive" : _props$maxTagCount,
|
|
71
|
-
|
|
71
|
+
_props$maxTagTextLeng = props.maxTagTextLength,
|
|
72
|
+
maxTagTextLength = _props$maxTagTextLeng === void 0 ? 10 : _props$maxTagTextLeng,
|
|
72
73
|
_props$maxTagPlacehol = props.maxTagPlaceholder,
|
|
73
74
|
maxTagPlaceholder = _props$maxTagPlacehol === void 0 ? function (omittedValues) {
|
|
74
75
|
return "\u7B49".concat(omittedValues.length, "\u9879");
|
|
@@ -180,6 +181,15 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
180
181
|
}
|
|
181
182
|
|
|
182
183
|
function renderRest(omittedValues) {
|
|
184
|
+
if (omittedValues.length === values.length && omittedValues.length) {
|
|
185
|
+
var length = values.length;
|
|
186
|
+
|
|
187
|
+
var _content = "\u5DF2\u9009".concat(length, "\u9879");
|
|
188
|
+
|
|
189
|
+
return defaultRenderSelector(_content, _content, false);
|
|
190
|
+
;
|
|
191
|
+
}
|
|
192
|
+
|
|
183
193
|
var content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;
|
|
184
194
|
return defaultRenderSelector(content, content, false);
|
|
185
195
|
} // >>> Input Node
|
|
@@ -6,6 +6,6 @@ import type { FieldNames } from '../Select';
|
|
|
6
6
|
*/
|
|
7
7
|
export default function useOptions<OptionType>(options: OptionType[], children: React.ReactNode, fieldNames: FieldNames, optionFilterProp: string, optionLabelProp: string): {
|
|
8
8
|
options: OptionType[];
|
|
9
|
-
valueOptions: Map<
|
|
9
|
+
valueOptions: Map<React.Key, OptionType>;
|
|
10
10
|
labelOptions: Map<React.ReactNode, OptionType>;
|
|
11
11
|
};
|
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
/* stylelint-disable no-descending-specificity */
|
|
2
2
|
@import './select.less';
|
|
3
3
|
@import './variables.less';
|
|
4
|
+
@import '../../Empty/style/index.less';
|
|
4
5
|
|
|
5
6
|
.ald-select {
|
|
6
7
|
.ant-select-selector:not(.ant-select-customize-input) {
|
|
7
|
-
background-color: @selector-
|
|
8
|
-
border-color: @selector-
|
|
8
|
+
background-color: @selector-bg-color-default;
|
|
9
|
+
border-color: @selector-border-color-default;
|
|
9
10
|
|
|
10
11
|
.ald-select-selector-prefix {
|
|
11
|
-
color: @selector-
|
|
12
|
+
color: @selector-label-color-default;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
.ant-select-selection-placeholder {
|
|
15
|
-
color: @selector-
|
|
16
|
+
color: @selector-placeholder-color-default;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.ant-select-selection-item {
|
|
19
|
-
color: @selector-
|
|
20
|
+
color: @selector-value-color-default;
|
|
20
21
|
background-color: initial;
|
|
21
22
|
border: none;
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
&.ant-select-disabled .ant-select-selector:not(.ant-select-customize-input) {
|
|
26
|
-
background-color: @selector-
|
|
27
|
-
border-color: @selector-
|
|
27
|
+
background-color: @selector-bg-color-disabled;
|
|
28
|
+
border-color: @selector-border-color-disabled;
|
|
28
29
|
cursor: initial;
|
|
29
30
|
|
|
30
31
|
.ald-select-selector-prefix {
|
|
31
|
-
color: @selector-
|
|
32
|
+
color: @selector-label-color-disabled;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
.ant-select-selection-placeholder {
|
|
35
|
-
color: @selector-
|
|
36
|
+
color: @selector-placeholder-color-disabled;
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
.ant-select-selection-item {
|
|
39
|
-
color: @selector-
|
|
40
|
+
color: @selector-value-color-disabled;
|
|
40
41
|
background-color: initial;
|
|
41
42
|
border: none;
|
|
42
43
|
}
|
|
@@ -48,8 +49,8 @@
|
|
|
48
49
|
|
|
49
50
|
&.ant-select-multiple.ant-select-disabled.ant-select:not(.ant-select-customize-input) {
|
|
50
51
|
.ant-select-selector {
|
|
51
|
-
background-color: @selector-
|
|
52
|
-
border-color: @selector-
|
|
52
|
+
background-color: @selector-bg-color-disabled;
|
|
53
|
+
border-color: @selector-border-color-disabled;
|
|
53
54
|
cursor: initial;
|
|
54
55
|
}
|
|
55
56
|
}
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
&:not(.ant-select-disabled):hover,
|
|
58
59
|
&.ant-select.ant-select-focused:not(.ant-select-disabled) {
|
|
59
60
|
.ant-select-selector {
|
|
60
|
-
border-color: @selector-
|
|
61
|
+
border-color: @selector-border-color-active;
|
|
61
62
|
box-shadow: 0 0 0 0.5px @B60;
|
|
62
63
|
|
|
63
64
|
&:focus-visible {
|
|
@@ -65,18 +66,18 @@
|
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
.ald-select-selector-prefix {
|
|
68
|
-
color: @selector-
|
|
69
|
+
color: @selector-label-color-active;
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
.ant-select-selection-placeholder {
|
|
72
|
-
color: @selector-
|
|
73
|
+
color: @selector-placeholder-color-active;
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
&.ant-select-open {
|
|
77
78
|
.ant-select-selection-overflow,
|
|
78
79
|
.ant-select-selection-item {
|
|
79
|
-
color: @selector-
|
|
80
|
+
color: @selector-value-color-active;
|
|
80
81
|
background-color: initial;
|
|
81
82
|
border: none;
|
|
82
83
|
}
|
|
@@ -84,7 +85,7 @@
|
|
|
84
85
|
|
|
85
86
|
&:not(.ant-select-open) {
|
|
86
87
|
.ant-select-selector {
|
|
87
|
-
border-color: @selector-
|
|
88
|
+
border-color: @selector-border-color-default;
|
|
88
89
|
box-shadow: none;
|
|
89
90
|
|
|
90
91
|
&:focus-visible {
|
|
@@ -92,11 +93,11 @@
|
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
.ald-select-selector-prefix {
|
|
95
|
-
color: @selector-
|
|
96
|
+
color: @selector-label-color-default;
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
.ant-select-selection-placeholder {
|
|
99
|
-
color: @selector-
|
|
100
|
+
color: @selector-placeholder-color-default;
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
}
|
|
@@ -123,93 +124,117 @@
|
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
&.ald-select-large {
|
|
126
|
-
font-size: @selector-
|
|
127
|
+
font-size: @selector-font-size-large;
|
|
127
128
|
|
|
128
129
|
.ant-select-selector {
|
|
129
130
|
align-items: center;
|
|
130
131
|
height: @selector-height-large;
|
|
131
|
-
padding: 0 @selector-
|
|
132
|
-
line-height: @selector-
|
|
133
|
-
border-radius: @selector-
|
|
132
|
+
padding: 0 @selector-padding-horizontal-large;
|
|
133
|
+
line-height: @selector-line-height-large;
|
|
134
|
+
border-radius: @selector-border-radius-large;
|
|
134
135
|
|
|
135
136
|
.ald-select-selector-prefix {
|
|
136
137
|
display: flex;
|
|
137
138
|
align-items: center;
|
|
138
|
-
margin-right: @prefix-
|
|
139
|
+
margin-right: @prefix-margin-right-large;
|
|
139
140
|
}
|
|
140
141
|
|
|
141
142
|
.ant-select-selection-item,
|
|
142
143
|
.ant-select-selection-placeholder {
|
|
143
|
-
line-height: @selector-
|
|
144
|
+
line-height: @selector-line-height-large;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&.ant-select-show-arrow {
|
|
149
|
+
.ant-select-selector {
|
|
150
|
+
padding-right: @selector-padding-horizontal-large + @selector-font-size-large;
|
|
144
151
|
}
|
|
145
152
|
}
|
|
146
153
|
}
|
|
147
154
|
|
|
148
155
|
&.ald-select-middle {
|
|
149
|
-
font-size: @selector-
|
|
156
|
+
font-size: @selector-font-size-middle;
|
|
150
157
|
|
|
151
158
|
.ant-select-selector {
|
|
152
159
|
align-items: center;
|
|
153
160
|
height: @selector-height-middle;
|
|
154
|
-
padding: 0 @selector-
|
|
155
|
-
line-height: @selector-
|
|
156
|
-
border-radius: @selector-
|
|
161
|
+
padding: 0 @selector-padding-horizontal-middle;
|
|
162
|
+
line-height: @selector-line-height-middle;
|
|
163
|
+
border-radius: @selector-border-radius-middle;
|
|
157
164
|
|
|
158
165
|
.ald-select-selector-prefix {
|
|
159
166
|
display: flex;
|
|
160
167
|
align-items: center;
|
|
161
|
-
margin-right: @prefix-
|
|
168
|
+
margin-right: @prefix-margin-right-middle;
|
|
162
169
|
}
|
|
163
170
|
|
|
164
171
|
.ant-select-selection-item,
|
|
165
172
|
.ant-select-selection-placeholder {
|
|
166
|
-
line-height: @selector-
|
|
173
|
+
line-height: @selector-line-height-middle;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&.ant-select-show-arrow {
|
|
178
|
+
.ant-select-selector {
|
|
179
|
+
padding-right: @selector-padding-horizontal-middle + @selector-font-size-middle;
|
|
167
180
|
}
|
|
168
181
|
}
|
|
169
182
|
}
|
|
170
183
|
|
|
171
184
|
&.ald-select-small {
|
|
172
|
-
font-size: @selector-
|
|
185
|
+
font-size: @selector-font-size-small;
|
|
173
186
|
|
|
174
187
|
.ant-select-selector {
|
|
175
188
|
align-items: center;
|
|
176
189
|
height: @selector-height-small;
|
|
177
|
-
padding: 0 @selector-
|
|
178
|
-
line-height: @selector-
|
|
179
|
-
border-radius: @selector-
|
|
190
|
+
padding: 0 @selector-padding-horizontal-small;
|
|
191
|
+
line-height: @selector-line-height-small;
|
|
192
|
+
border-radius: @selector-border-radius-small;
|
|
180
193
|
|
|
181
194
|
.ald-select-selector-prefix {
|
|
182
195
|
display: flex;
|
|
183
196
|
align-items: center;
|
|
184
|
-
margin-right: @prefix-
|
|
197
|
+
margin-right: @prefix-margin-right-small;
|
|
185
198
|
}
|
|
186
199
|
|
|
187
200
|
.ant-select-selection-item,
|
|
188
201
|
.ant-select-selection-placeholder {
|
|
189
|
-
line-height: @selector-
|
|
202
|
+
line-height: @selector-line-height-small;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&.ant-select-show-arrow {
|
|
207
|
+
.ant-select-selector {
|
|
208
|
+
padding-right: @selector-padding-horizontal-small + @selector-font-size-small;
|
|
190
209
|
}
|
|
191
210
|
}
|
|
192
211
|
}
|
|
193
212
|
|
|
194
213
|
&.ald-select-mini {
|
|
195
|
-
font-size: @selector-
|
|
214
|
+
font-size: @selector-font-size-mini;
|
|
196
215
|
|
|
197
216
|
.ant-select-selector {
|
|
198
217
|
align-items: center;
|
|
199
218
|
height: @selector-height-mini;
|
|
200
|
-
padding: 0 @selector-
|
|
201
|
-
line-height: @selector-
|
|
202
|
-
border-radius: @selector-
|
|
219
|
+
padding: 0 @selector-padding-horizontal-mini;
|
|
220
|
+
line-height: @selector-line-height-mini;
|
|
221
|
+
border-radius: @selector-border-radius-mini;
|
|
203
222
|
|
|
204
223
|
.ald-select-selector-prefix {
|
|
205
224
|
display: flex;
|
|
206
225
|
align-items: center;
|
|
207
|
-
margin-right: @prefix-
|
|
226
|
+
margin-right: @prefix-margin-right-mini;
|
|
208
227
|
}
|
|
209
228
|
|
|
210
229
|
.ant-select-selection-item,
|
|
211
230
|
.ant-select-selection-placeholder {
|
|
212
|
-
line-height: @selector-
|
|
231
|
+
line-height: @selector-line-height-mini;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&.ant-select-show-arrow {
|
|
236
|
+
.ant-select-selector {
|
|
237
|
+
padding-right: @selector-padding-horizontal-mini + @selector-font-size-mini;
|
|
213
238
|
}
|
|
214
239
|
}
|
|
215
240
|
}
|
|
@@ -278,11 +303,11 @@
|
|
|
278
303
|
margin: 0 4px;
|
|
279
304
|
padding: 0;
|
|
280
305
|
font-size: 14px;
|
|
281
|
-
background-color: @select-option-
|
|
306
|
+
background-color: @select-option-bg-color;
|
|
282
307
|
border-radius: 6px;
|
|
283
308
|
|
|
284
309
|
&:hover {
|
|
285
|
-
background-color: @select-option-
|
|
310
|
+
background-color: @select-option-bg-color-hover;
|
|
286
311
|
}
|
|
287
312
|
|
|
288
313
|
.ald-select-single-check {
|
|
@@ -3,65 +3,65 @@
|
|
|
3
3
|
|
|
4
4
|
// large size
|
|
5
5
|
@selector-height-large: 40px;
|
|
6
|
-
@selector-
|
|
7
|
-
@selector-
|
|
8
|
-
@selector-
|
|
9
|
-
@prefix-
|
|
10
|
-
@selector-
|
|
6
|
+
@selector-border-radius-large: 8px;
|
|
7
|
+
@selector-font-size-large: 16px;
|
|
8
|
+
@selector-line-height-large: 24px;
|
|
9
|
+
@prefix-margin-right-large: 8px;
|
|
10
|
+
@selector-padding-horizontal-large: 11px;
|
|
11
11
|
|
|
12
12
|
// medium size
|
|
13
13
|
@selector-height-middle: 32px;
|
|
14
|
-
@selector-
|
|
15
|
-
@selector-
|
|
16
|
-
@selector-
|
|
17
|
-
@prefix-
|
|
18
|
-
@selector-
|
|
14
|
+
@selector-border-radius-middle: 6px;
|
|
15
|
+
@selector-font-size-middle: 14px;
|
|
16
|
+
@selector-line-height-middle: 20px;
|
|
17
|
+
@prefix-margin-right-middle: 8px;
|
|
18
|
+
@selector-padding-horizontal-middle: 11px;
|
|
19
19
|
|
|
20
20
|
// small size
|
|
21
21
|
@selector-height-small: 28px;
|
|
22
|
-
@selector-
|
|
23
|
-
@selector-
|
|
24
|
-
@selector-
|
|
25
|
-
@prefix-
|
|
26
|
-
@selector-
|
|
22
|
+
@selector-border-radius-small: 4px;
|
|
23
|
+
@selector-font-size-small: 12px;
|
|
24
|
+
@selector-line-height-small: 16px;
|
|
25
|
+
@prefix-margin-right-small: 4px;
|
|
26
|
+
@selector-padding-horizontal-small: 7px;
|
|
27
27
|
// mini size
|
|
28
28
|
@selector-height-mini: 24px;
|
|
29
|
-
@selector-
|
|
30
|
-
@selector-
|
|
31
|
-
@selector-
|
|
32
|
-
@prefix-
|
|
33
|
-
@selector-
|
|
29
|
+
@selector-border-radius-mini: 4px;
|
|
30
|
+
@selector-font-size-mini: 12px;
|
|
31
|
+
@selector-line-height-mini: 16px;
|
|
32
|
+
@prefix-margin-right-mini: 4px;
|
|
33
|
+
@selector-padding-horizontal-mini: 7px;
|
|
34
34
|
|
|
35
35
|
//default status
|
|
36
|
-
@selector-
|
|
37
|
-
@selector-
|
|
38
|
-
@selector-
|
|
39
|
-
@selector-
|
|
40
|
-
@selector-
|
|
36
|
+
@selector-border-color-default: @NL90;
|
|
37
|
+
@selector-placeholder-color-default: @NL80;
|
|
38
|
+
@selector-value-color-default: @NL0;
|
|
39
|
+
@selector-label-color-default: @NL50;
|
|
40
|
+
@selector-bg-color-default: @BG97;
|
|
41
41
|
//active status
|
|
42
|
-
@selector-
|
|
43
|
-
@selector-
|
|
44
|
-
@selector-
|
|
45
|
-
@selector-
|
|
46
|
-
@selector-
|
|
42
|
+
@selector-border-color-active: @B60;
|
|
43
|
+
@selector-placeholder-color-active: @NL80;
|
|
44
|
+
@selector-value-color-active: @NL50;
|
|
45
|
+
@selector-label-color-active: @NL50;
|
|
46
|
+
@selector-bg-color-active: @BG97;
|
|
47
47
|
//disable status
|
|
48
|
-
@selector-
|
|
49
|
-
@selector-
|
|
50
|
-
@selector-
|
|
51
|
-
@selector-
|
|
52
|
-
@selector-
|
|
48
|
+
@selector-border-color-disabled: @NL90;
|
|
49
|
+
@selector-placeholder-color-disabled: @NL80;
|
|
50
|
+
@selector-value-color-disabled: @NL60;
|
|
51
|
+
@selector-label-color-disabled: @NL60;
|
|
52
|
+
@selector-bg-color-disabled: @BG95;
|
|
53
53
|
//-----option
|
|
54
|
-
@select-option-
|
|
54
|
+
@select-option-bg-color: @BG100;
|
|
55
55
|
@select-option-color: @NL0;
|
|
56
|
-
@select-option-
|
|
56
|
+
@select-option-bg-color-hover: @NL97;
|
|
57
57
|
|
|
58
58
|
:export {
|
|
59
|
-
SELECTOR_PADDING_HORIZONTAL_LARGE: @selector-
|
|
60
|
-
SELECTOR_PADDING_HORIZONTAL_MIDDLE: @selector-
|
|
61
|
-
SELECTOR_PADDING_HORIZONTAL_SMALL: @selector-
|
|
62
|
-
SELECTOR_PADDING_HORIZONTAL_MINI: @selector-
|
|
63
|
-
PREFIX_MARGIN_RIGHT_LARGE: @prefix-
|
|
64
|
-
PREFIX_MARGIN_RIGHT_MIDDLE: @prefix-
|
|
65
|
-
PREFIX_MARGIN_RIGHT_SMALL: @prefix-
|
|
66
|
-
PREFIX_MARGIN_RIGHT_MINI: @prefix-
|
|
59
|
+
SELECTOR_PADDING_HORIZONTAL_LARGE: @selector-padding-horizontal-large;
|
|
60
|
+
SELECTOR_PADDING_HORIZONTAL_MIDDLE: @selector-padding-horizontal-middle;
|
|
61
|
+
SELECTOR_PADDING_HORIZONTAL_SMALL: @selector-padding-horizontal-small;
|
|
62
|
+
SELECTOR_PADDING_HORIZONTAL_MINI: @selector-padding-horizontal-mini;
|
|
63
|
+
PREFIX_MARGIN_RIGHT_LARGE: @prefix-margin-right-large;
|
|
64
|
+
PREFIX_MARGIN_RIGHT_MIDDLE: @prefix-margin-right-middle;
|
|
65
|
+
PREFIX_MARGIN_RIGHT_SMALL: @prefix-margin-right-small;
|
|
66
|
+
PREFIX_MARGIN_RIGHT_MINI: @prefix-margin-right-mini;
|
|
67
67
|
}
|
|
@@ -18,7 +18,7 @@ export default function getIcons({ suffixIcon, clearIcon, menuItemSelectedIcon,
|
|
|
18
18
|
open: boolean;
|
|
19
19
|
showSearch: boolean;
|
|
20
20
|
}) => JSX.Element);
|
|
21
|
-
itemIcon:
|
|
22
|
-
removeIcon:
|
|
21
|
+
itemIcon: number | boolean | React.ReactFragment | JSX.Element | ((props: any) => React.ReactNode) | null;
|
|
22
|
+
removeIcon: number | boolean | React.ReactFragment | JSX.Element | ((props: any) => React.ReactNode) | null;
|
|
23
23
|
};
|
|
24
24
|
export {};
|
|
@@ -7,6 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = getIcons;
|
|
9
9
|
|
|
10
|
+
require("@aloudata/icons-react/styles/index.less");
|
|
11
|
+
|
|
12
|
+
var _CancelFill2 = _interopRequireDefault(require("@aloudata/icons-react/es/icons/CancelFill"));
|
|
13
|
+
|
|
14
|
+
var _ArrowsDownLine2 = _interopRequireDefault(require("@aloudata/icons-react/es/icons/ArrowsDownLine"));
|
|
15
|
+
|
|
10
16
|
var React = _interopRequireWildcard(require("react"));
|
|
11
17
|
|
|
12
18
|
var _LoadingOutlined = _interopRequireDefault(require("@ant-design/icons/LoadingOutlined"));
|
|
@@ -15,14 +21,14 @@ var _CheckOutlined = _interopRequireDefault(require("@ant-design/icons/CheckOutl
|
|
|
15
21
|
|
|
16
22
|
var _CloseCircleFilled = _interopRequireDefault(require("@ant-design/icons/CloseCircleFilled"));
|
|
17
23
|
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
|
+
var _themeColorModule = _interopRequireDefault(require("../../style/themes/default/themeColor.module.less"));
|
|
21
25
|
|
|
22
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
27
|
|
|
24
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
29
|
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
+
|
|
26
32
|
function getIcons(_ref) {
|
|
27
33
|
var suffixIcon = _ref.suffixIcon,
|
|
28
34
|
clearIcon = _ref.clearIcon,
|
|
@@ -64,8 +70,8 @@ function getIcons(_ref) {
|
|
|
64
70
|
// if (open && showSearch) {
|
|
65
71
|
// return getSuffixIconNode(<SearchOutlined className={iconCls} />);
|
|
66
72
|
// }
|
|
67
|
-
return getSuffixIconNode( /*#__PURE__*/React.createElement(
|
|
68
|
-
|
|
73
|
+
return getSuffixIconNode( /*#__PURE__*/React.createElement(_ArrowsDownLine2.default, {
|
|
74
|
+
color: _themeColorModule.default.NL50,
|
|
69
75
|
className: iconCls
|
|
70
76
|
}));
|
|
71
77
|
};
|
|
@@ -87,8 +93,8 @@ function getIcons(_ref) {
|
|
|
87
93
|
if (removeIcon !== undefined) {
|
|
88
94
|
mergedRemoveIcon = removeIcon;
|
|
89
95
|
} else {
|
|
90
|
-
mergedRemoveIcon = /*#__PURE__*/React.createElement(
|
|
91
|
-
|
|
96
|
+
mergedRemoveIcon = /*#__PURE__*/React.createElement(_CancelFill2.default, {
|
|
97
|
+
color: _themeColorModule.default.NL50,
|
|
92
98
|
size: '1em'
|
|
93
99
|
});
|
|
94
100
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ProcessIcon = ProcessIcon;
|
|
7
|
+
|
|
8
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
function ProcessIcon(_ref) {
|
|
15
|
+
var type = _ref.type;
|
|
16
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
17
|
+
className: (0, _classnames.default)("".concat(type, "-icon-box"), 'icon-box')
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare type TStatus = 'wait' | 'process' | 'finish' | 'error';
|
|
3
|
+
export interface IStepProps {
|
|
4
|
+
/**
|
|
5
|
+
* @description 当前步骤的描述信息
|
|
6
|
+
* @default -
|
|
7
|
+
*/
|
|
8
|
+
description?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* @description 当前步骤的状态,可选`wait`、`process`、`finish`、`error`
|
|
11
|
+
* @default wait
|
|
12
|
+
*/
|
|
13
|
+
status?: TStatus;
|
|
14
|
+
/**
|
|
15
|
+
* @description 标题
|
|
16
|
+
* @default -
|
|
17
|
+
*/
|
|
18
|
+
title?: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export declare function Step(props: IStepProps): JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Step = Step;
|
|
7
|
+
|
|
8
|
+
require("@aloudata/icons-react/styles/index.less");
|
|
9
|
+
|
|
10
|
+
var _CheckFill2 = _interopRequireDefault(require("@aloudata/icons-react/es/icons/CheckFill"));
|
|
11
|
+
|
|
12
|
+
var _ErrorFill2 = _interopRequireDefault(require("@aloudata/icons-react/es/icons/ErrorFill"));
|
|
13
|
+
|
|
14
|
+
require("antd/es/steps/style");
|
|
15
|
+
|
|
16
|
+
var _steps = _interopRequireDefault(require("antd/es/steps"));
|
|
17
|
+
|
|
18
|
+
var _react = _interopRequireDefault(require("react"));
|
|
19
|
+
|
|
20
|
+
var _ProcessIcon = require("../ProcessIcon");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
+
|
|
24
|
+
var AntdStep = _steps.default.Step;
|
|
25
|
+
|
|
26
|
+
function Step(props) {
|
|
27
|
+
var status = props.status;
|
|
28
|
+
|
|
29
|
+
var getIcon = function getIcon(stepStatus) {
|
|
30
|
+
if (stepStatus === 'error') {
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
32
|
+
className: "error-icon-box icon-box"
|
|
33
|
+
}, /*#__PURE__*/_react.default.createElement(_ErrorFill2.default, {
|
|
34
|
+
size: 16
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (stepStatus === 'finish') {
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
40
|
+
className: "check-icon-box icon-box"
|
|
41
|
+
}, /*#__PURE__*/_react.default.createElement(_CheckFill2.default, {
|
|
42
|
+
size: 16
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (stepStatus === 'process') {
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement(_ProcessIcon.ProcessIcon, {
|
|
48
|
+
type: "process"
|
|
49
|
+
});
|
|
50
|
+
} // wait
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement(_ProcessIcon.ProcessIcon, {
|
|
54
|
+
type: "wait"
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
return /*#__PURE__*/_react.default.createElement(AntdStep, Object.assign({}, props, {
|
|
59
|
+
icon: getIcon(status)
|
|
60
|
+
}));
|
|
61
|
+
}
|