@zat-design/sisyphus-react 3.11.14-beta.10 → 3.11.14-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/coverage/lcov-report/src/.umi/core/devScripts.ts.html +241 -0
- package/coverage/lcov-report/src/.umi/core/history.ts.html +1 -1
- package/coverage/lcov-report/src/.umi/core/index.html +67 -7
- package/coverage/lcov-report/src/.umi/core/plugin.ts.html +1 -1
- package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +1 -1
- package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +1 -1
- package/coverage/lcov-report/src/.umi/core/routes.ts.html +29149 -0
- package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +112 -0
- package/coverage/lcov-report/src/.umi/dumi/index.html +116 -0
- package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +109 -0
- package/coverage/lcov-report/src/.umi/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-antd/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +172 -0
- package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +94 -0
- package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +196 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +106 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +88 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +124 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +1246 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/index.html +161 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +268 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +778 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +115 -0
- package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +202 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +97 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +142 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +334 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-model/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +121 -0
- package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +298 -0
- package/coverage/lcov-report/src/.umi/plugin-request/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +919 -0
- package/coverage/lcov-report/src/.umi/umi.ts.html +268 -0
- package/coverage/src/.umi/core/devScripts.ts.html +241 -0
- package/coverage/src/.umi/core/history.ts.html +1 -1
- package/coverage/src/.umi/core/index.html +67 -7
- package/coverage/src/.umi/core/plugin.ts.html +1 -1
- package/coverage/src/.umi/core/pluginRegister.ts.html +1 -1
- package/coverage/src/.umi/core/polyfill.ts.html +1 -1
- package/coverage/src/.umi/core/routes.ts.html +29149 -0
- package/coverage/src/.umi/core/umiExports.ts.html +112 -0
- package/coverage/src/.umi/dumi/index.html +116 -0
- package/coverage/src/.umi/dumi/layout.tsx.html +109 -0
- package/coverage/src/.umi/index.html +116 -0
- package/coverage/src/.umi/plugin-antd/index.html +116 -0
- package/coverage/src/.umi/plugin-antd/runtime.tsx.html +172 -0
- package/coverage/src/.umi/plugin-helmet/exports.ts.html +94 -0
- package/coverage/src/.umi/plugin-helmet/index.html +116 -0
- package/coverage/src/.umi/plugin-initial-state/Provider.tsx.html +196 -0
- package/coverage/src/.umi/plugin-initial-state/exports.ts.html +106 -0
- package/coverage/src/.umi/plugin-initial-state/index.html +146 -0
- package/coverage/src/.umi/plugin-initial-state/models/index.html +116 -0
- package/coverage/src/.umi/plugin-initial-state/models/initialState.ts.html +88 -0
- package/coverage/src/.umi/plugin-initial-state/runtime.tsx.html +124 -0
- package/coverage/src/.umi/plugin-locale/SelectLang.tsx.html +1246 -0
- package/coverage/src/.umi/plugin-locale/index.html +161 -0
- package/coverage/src/.umi/plugin-locale/locale.tsx.html +268 -0
- package/coverage/src/.umi/plugin-locale/localeExports.ts.html +778 -0
- package/coverage/src/.umi/plugin-locale/runtime.tsx.html +115 -0
- package/coverage/src/.umi/plugin-model/Provider.tsx.html +202 -0
- package/coverage/src/.umi/plugin-model/helpers/constant.tsx.html +97 -0
- package/coverage/src/.umi/plugin-model/helpers/dispatcher.tsx.html +142 -0
- package/coverage/src/.umi/plugin-model/helpers/executor.tsx.html +334 -0
- package/coverage/src/.umi/plugin-model/helpers/index.html +146 -0
- package/coverage/src/.umi/plugin-model/index.html +146 -0
- package/coverage/src/.umi/plugin-model/runtime.tsx.html +121 -0
- package/coverage/src/.umi/plugin-model/useModel.tsx.html +298 -0
- package/coverage/src/.umi/plugin-request/index.html +116 -0
- package/coverage/src/.umi/plugin-request/request.ts.html +919 -0
- package/coverage/src/.umi/umi.ts.html +268 -0
- package/es/ProConfigProvider/index.d.ts +4 -4
- package/es/ProDrawerForm/propsType.d.ts +1 -1
- package/es/ProEditLabel/propsType.d.ts +2 -2
- package/es/ProEditTable/components/Summary/index.d.ts +2 -2
- package/es/ProEditTable/index.js +12 -8
- package/es/ProEditTable/propsType.d.ts +40 -42
- package/es/ProEditTable/utils/index.d.ts +1 -1
- package/es/ProEditTable/utils/index.js +6 -4
- package/es/ProEditTable/utils/tools.d.ts +57 -22
- package/es/ProEditTable/utils/tools.js +47 -21
- package/es/ProEnum/propsType.d.ts +2 -2
- package/es/ProForm/components/FormFooter/index.d.ts +1 -1
- package/es/ProForm/components/base/Checkbox/index.d.ts +1 -1
- package/es/ProForm/components/base/Input/propsType.d.ts +3 -3
- package/es/ProForm/components/base/InputNumber/index.d.ts +1 -1
- package/es/ProForm/components/base/Radio/index.d.ts +1 -1
- package/es/ProForm/components/base/RangePicker/index.d.ts +1 -1
- package/es/ProForm/components/base/Select/index.d.ts +1 -1
- package/es/ProForm/components/base/Switch/index.d.ts +1 -1
- package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -1
- package/es/ProForm/components/base/TextArea/index.d.ts +1 -1
- package/es/ProForm/components/base/TimePicker/index.d.ts +1 -1
- package/es/ProForm/components/combination/Container/propsType.d.ts +3 -3
- package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +1 -1
- package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +1 -1
- package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -2
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +1 -1
- package/es/ProForm/components/combination/FormList/propsType.d.ts +2 -2
- package/es/ProForm/components/combination/Group/index.d.ts +1 -1
- package/es/ProForm/components/combination/Group/propsType.d.ts +1 -1
- package/es/ProForm/components/combination/Group/utils.d.ts +3 -3
- package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCombination/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCombination/propsType.d.ts +1 -1
- package/es/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +5 -5
- package/es/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +1 -1
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
- package/es/ProForm/components/old/EnumSelect/index.d.ts +1 -1
- package/es/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
- package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/es/ProForm/components/old/ProAddress/index.d.ts +1 -1
- package/es/ProForm/components/old/ProCertNo/index.d.ts +1 -1
- package/es/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
- package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
- package/es/ProForm/components/render/ChangedWrapper.d.ts +1 -1
- package/es/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
- package/es/ProForm/components/render/RenderFields.d.ts +3 -3
- package/es/ProForm/components/render/propsType.d.ts +37 -41
- package/es/ProForm/index.d.ts +1 -1
- package/es/ProForm/propsType.d.ts +6 -4
- package/es/ProForm/propsType.js +0 -1
- package/es/ProForm/utils/transformValue.d.ts +1 -1
- package/es/ProForm/utils/useFieldProps.d.ts +1 -1
- package/es/ProForm/utils/useForm.d.ts +1 -1
- package/es/ProForm/utils/useRules.d.ts +1 -1
- package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
- package/es/ProIcon/propsTypes.d.ts +0 -4
- package/es/ProSelect/propsType.d.ts +1 -1
- package/es/ProStep/components/Anchor/index.d.ts +2 -1
- package/es/ProStep/components/Item/index.d.ts +1 -1
- package/es/ProStep/components/Item/index.js +6 -2
- package/es/ProStep/components/Listener/index.d.ts +4 -3
- package/es/ProStep/components/Listener/index.js +18 -4
- package/es/ProStep/index.d.ts +7 -7
- package/es/ProStep/index.js +7 -3
- package/es/ProStep/propsType.d.ts +145 -5
- package/es/ProStep/utils/index.d.ts +16 -3
- package/es/ProStep/utils/index.js +11 -2
- package/es/ProTable/components/FormatColumn/index.js +3 -6
- package/es/ProTable/propsType.d.ts +14 -20
- package/es/ProTooltip/propsType.d.ts +0 -3
- package/es/ProTree/components/List.d.ts +2 -2
- package/es/ProTree/components/List.js +2 -2
- package/es/ProTree/components/ProTree.d.ts +2 -2
- package/es/ProTree/components/ProTreeSelect/index.d.ts +3 -3
- package/es/ProTree/components/ProTreeSelect/propsType.d.ts +371 -33
- package/es/ProTree/components/SearchTitle.d.ts +1 -1
- package/es/ProTree/components/Tree.d.ts +3 -3
- package/es/ProTree/index.d.ts +2 -2
- package/es/ProTree/index.js +1 -1
- package/es/ProTree/propsType.d.ts +44 -42
- package/es/ProTree/utils.d.ts +7 -7
- package/es/ProTreeModal/components/Cascader.d.ts +3 -3
- package/es/ProTreeModal/components/List.d.ts +3 -3
- package/es/ProTreeModal/components/Tree.d.ts +2 -2
- package/es/ProTreeModal/index.d.ts +2 -2
- package/es/ProTreeModal/index.js +2 -2
- package/es/ProTreeModal/propsType.d.ts +257 -48
- package/es/ProTreeModal/utils.d.ts +7 -7
- package/es/index.d.ts +15 -7
- package/es/index.js +1 -8
- package/lib/ProConfigProvider/index.d.ts +4 -4
- package/lib/ProDrawerForm/propsType.d.ts +1 -1
- package/lib/ProEditLabel/propsType.d.ts +2 -2
- package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
- package/lib/ProEditTable/index.js +12 -8
- package/lib/ProEditTable/propsType.d.ts +40 -42
- package/lib/ProEditTable/utils/index.d.ts +1 -1
- package/lib/ProEditTable/utils/index.js +6 -4
- package/lib/ProEditTable/utils/tools.d.ts +57 -22
- package/lib/ProEditTable/utils/tools.js +47 -21
- package/lib/ProEnum/propsType.d.ts +2 -2
- package/lib/ProForm/components/FormFooter/index.d.ts +1 -1
- package/lib/ProForm/components/base/Checkbox/index.d.ts +1 -1
- package/lib/ProForm/components/base/Input/propsType.d.ts +3 -3
- package/lib/ProForm/components/base/InputNumber/index.d.ts +1 -1
- package/lib/ProForm/components/base/Radio/index.d.ts +1 -1
- package/lib/ProForm/components/base/RangePicker/index.d.ts +1 -1
- package/lib/ProForm/components/base/Select/index.d.ts +1 -1
- package/lib/ProForm/components/base/Switch/index.d.ts +1 -1
- package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -1
- package/lib/ProForm/components/base/TextArea/index.d.ts +1 -1
- package/lib/ProForm/components/base/TimePicker/index.d.ts +1 -1
- package/lib/ProForm/components/combination/Container/propsType.d.ts +3 -3
- package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +1 -1
- package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +1 -1
- package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -2
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +1 -1
- package/lib/ProForm/components/combination/FormList/propsType.d.ts +2 -2
- package/lib/ProForm/components/combination/Group/index.d.ts +1 -1
- package/lib/ProForm/components/combination/Group/propsType.d.ts +1 -1
- package/lib/ProForm/components/combination/Group/utils.d.ts +3 -3
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCombination/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +1 -1
- package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +5 -5
- package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +1 -1
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
- package/lib/ProForm/components/old/EnumSelect/index.d.ts +1 -1
- package/lib/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
- package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProCertNo/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
- package/lib/ProForm/components/render/ChangedWrapper.d.ts +1 -1
- package/lib/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
- package/lib/ProForm/components/render/RenderFields.d.ts +3 -3
- package/lib/ProForm/components/render/propsType.d.ts +37 -41
- package/lib/ProForm/index.d.ts +1 -1
- package/lib/ProForm/propsType.d.ts +6 -4
- package/lib/ProForm/propsType.js +0 -15
- package/lib/ProForm/utils/transformValue.d.ts +1 -1
- package/lib/ProForm/utils/useFieldProps.d.ts +1 -1
- package/lib/ProForm/utils/useForm.d.ts +1 -1
- package/lib/ProForm/utils/useRules.d.ts +1 -1
- package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
- package/lib/ProIcon/propsTypes.d.ts +0 -4
- package/lib/ProSelect/propsType.d.ts +1 -1
- package/lib/ProStep/components/Anchor/index.d.ts +2 -1
- package/lib/ProStep/components/Item/index.d.ts +1 -1
- package/lib/ProStep/components/Item/index.js +6 -2
- package/lib/ProStep/components/Listener/index.d.ts +4 -3
- package/lib/ProStep/components/Listener/index.js +18 -4
- package/lib/ProStep/index.d.ts +7 -7
- package/lib/ProStep/index.js +7 -3
- package/lib/ProStep/propsType.d.ts +145 -5
- package/lib/ProStep/utils/index.d.ts +16 -3
- package/lib/ProStep/utils/index.js +11 -2
- package/lib/ProTable/components/FormatColumn/index.js +3 -6
- package/lib/ProTable/propsType.d.ts +14 -20
- package/lib/ProTooltip/propsType.d.ts +0 -3
- package/lib/ProTree/components/List.d.ts +2 -2
- package/lib/ProTree/components/List.js +2 -2
- package/lib/ProTree/components/ProTree.d.ts +2 -2
- package/lib/ProTree/components/ProTreeSelect/index.d.ts +3 -3
- package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +371 -33
- package/lib/ProTree/components/SearchTitle.d.ts +1 -1
- package/lib/ProTree/components/Tree.d.ts +3 -3
- package/lib/ProTree/index.d.ts +2 -2
- package/lib/ProTree/index.js +1 -1
- package/lib/ProTree/propsType.d.ts +44 -42
- package/lib/ProTree/utils.d.ts +7 -7
- package/lib/ProTreeModal/components/Cascader.d.ts +3 -3
- package/lib/ProTreeModal/components/List.d.ts +3 -3
- package/lib/ProTreeModal/components/Tree.d.ts +2 -2
- package/lib/ProTreeModal/index.d.ts +2 -2
- package/lib/ProTreeModal/index.js +2 -2
- package/lib/ProTreeModal/propsType.d.ts +257 -48
- package/lib/ProTreeModal/utils.d.ts +7 -7
- package/lib/index.d.ts +15 -7
- package/lib/index.js +7 -83
- package/package.json +1 -1
@@ -15,6 +15,11 @@ var _reactLazyload = require("react-lazyload");
|
|
15
15
|
var _index = require("../../index");
|
16
16
|
var _utils = require("../../utils");
|
17
17
|
var _excluded = ["children", "delayTime", "excludes"];
|
18
|
+
/**
|
19
|
+
* 检查错误列表并返回第一个错误项
|
20
|
+
* @param arr DOM元素数组
|
21
|
+
* @returns 错误元素信息
|
22
|
+
*/
|
18
23
|
var checkErrorList = function checkErrorList(arr) {
|
19
24
|
for (var i = 0; i < arr.length; i++) {
|
20
25
|
if (arr[i].className.includes('errored')) {
|
@@ -26,8 +31,12 @@ var checkErrorList = function checkErrorList(arr) {
|
|
26
31
|
}
|
27
32
|
return null;
|
28
33
|
};
|
34
|
+
/**
|
35
|
+
* 查找第一个错误的DOM元素
|
36
|
+
* @returns 错误元素信息
|
37
|
+
*/
|
29
38
|
var findFirstErrorDom = function findFirstErrorDom() {
|
30
|
-
var errorList = document.querySelectorAll('.pro-step-com-menu-item')
|
39
|
+
var errorList = document.querySelectorAll('.pro-step-com-menu-item');
|
31
40
|
var hasErrorItem = document.querySelectorAll('.pro-step-com-menu-item .errored');
|
32
41
|
var hasFormError = document.querySelector('.ant-form-item-explain-error');
|
33
42
|
if ((hasErrorItem === null || hasErrorItem === void 0 ? void 0 : hasErrorItem.length) && !hasFormError) {
|
@@ -35,13 +44,17 @@ var findFirstErrorDom = function findFirstErrorDom() {
|
|
35
44
|
}
|
36
45
|
return null;
|
37
46
|
};
|
38
|
-
|
47
|
+
/**
|
48
|
+
* 检查所有模块是否已加载完成
|
49
|
+
* @param data 模块加载数据
|
50
|
+
* @returns 是否所有模块都已加载
|
51
|
+
*/
|
39
52
|
var areAllModulesLoaded = function areAllModulesLoaded(data) {
|
40
53
|
return data.every(function (item) {
|
41
54
|
return (item === null || item === void 0 ? void 0 : item.loaded) === true;
|
42
55
|
});
|
43
56
|
};
|
44
|
-
var
|
57
|
+
var Listener = function Listener(_ref) {
|
45
58
|
var children = _ref.children,
|
46
59
|
delayTime = _ref.delayTime,
|
47
60
|
excludes = _ref.excludes,
|
@@ -95,4 +108,5 @@ var _default = exports.default = function _default(_ref) {
|
|
95
108
|
}, _callee);
|
96
109
|
})), 3000)
|
97
110
|
}));
|
98
|
-
};
|
111
|
+
};
|
112
|
+
var _default = exports.default = Listener;
|
package/lib/ProStep/index.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { ProStepType } from './propsType';
|
2
|
+
import { ProStepType, ProStepContextType } from './propsType';
|
3
3
|
import './style/index.less';
|
4
|
-
export declare const ProStepContext: import("react").Context<
|
5
|
-
export declare const useStep: () =>
|
4
|
+
export declare const ProStepContext: import("react").Context<ProStepContextType>;
|
5
|
+
export declare const useStep: () => Partial<ProStepContextType>;
|
6
6
|
declare const ProStep: {
|
7
|
-
({ children, ...resetProps }: ProStepType):
|
8
|
-
useStep: () =>
|
9
|
-
Item: ({ id, title, collapse: collapseItem, children, lazyLoad: stepLazyLoad, ...restProps }: import("./propsType").ProStepItemPropsType) =>
|
10
|
-
Listener: ({ children, delayTime, excludes, ...props }:
|
7
|
+
({ children, ...resetProps }: ProStepType): JSX.Element;
|
8
|
+
useStep: () => Partial<ProStepContextType>;
|
9
|
+
Item: ({ id, title, collapse: collapseItem, children, lazyLoad: stepLazyLoad, order, ...restProps }: import("./propsType").ProStepItemPropsType) => JSX.Element;
|
10
|
+
Listener: ({ children, delayTime, excludes, ...props }: import("./propsType").ListenerProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
11
11
|
};
|
12
12
|
export default ProStep;
|
package/lib/ProStep/index.js
CHANGED
@@ -19,7 +19,9 @@ var _Step = _interopRequireDefault(require("./components/Step"));
|
|
19
19
|
var _Item = _interopRequireDefault(require("./components/Item"));
|
20
20
|
var _Listener = _interopRequireDefault(require("./components/Listener"));
|
21
21
|
require("./style/index.less");
|
22
|
-
var _excluded = ["children"]
|
22
|
+
var _excluded = ["children"],
|
23
|
+
_excluded2 = ["id", "form", "title", "validator", "order", "disabled", "lazyLoad"];
|
24
|
+
// 创建上下文并提供类型
|
23
25
|
var ProStepContext = exports.ProStepContext = /*#__PURE__*/(0, _react.createContext)(null);
|
24
26
|
var useStep = exports.useStep = function useStep() {
|
25
27
|
return (0, _react.useContext)(ProStepContext) || {};
|
@@ -82,7 +84,9 @@ var ProStep = function ProStep(_ref) {
|
|
82
84
|
title = _ref4.title,
|
83
85
|
validator = _ref4.validator,
|
84
86
|
order = _ref4.order,
|
85
|
-
disabled = _ref4.disabled
|
87
|
+
disabled = _ref4.disabled,
|
88
|
+
lazyLoad = _ref4.lazyLoad,
|
89
|
+
rest = (0, _objectWithoutProperties2.default)(_ref4, _excluded2);
|
86
90
|
var record = {};
|
87
91
|
record.id = id;
|
88
92
|
record.title = title;
|
@@ -92,7 +96,7 @@ var ProStep = function ProStep(_ref) {
|
|
92
96
|
}
|
93
97
|
if (disabled) {
|
94
98
|
registerMap.current[id] = record;
|
95
|
-
return
|
99
|
+
return;
|
96
100
|
}
|
97
101
|
var subEvent = /*#__PURE__*/function () {
|
98
102
|
var _ref5 = (0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
@@ -57,11 +57,6 @@ export interface ProStepPropsType {
|
|
57
57
|
*/
|
58
58
|
lazyLoad?: boolean | LazyLoadProps;
|
59
59
|
}
|
60
|
-
/**
|
61
|
-
* ProStep 组件基础类型
|
62
|
-
* @type ProStepType
|
63
|
-
*/
|
64
|
-
export type ProStepType = ProStepPropsType;
|
65
60
|
/**
|
66
61
|
* ProStep 子项组件属性类型
|
67
62
|
* @interface ProStepItemPropsType
|
@@ -88,3 +83,148 @@ export interface ProStepItemPropsType {
|
|
88
83
|
* @type ProStepItemType
|
89
84
|
*/
|
90
85
|
export type ProStepItemType = ProStepItemPropsType;
|
86
|
+
/**
|
87
|
+
* ProStep组件上下文类型
|
88
|
+
* @interface ProStepContextType
|
89
|
+
*/
|
90
|
+
export interface ProStepContextType {
|
91
|
+
/** 注册映射引用 */
|
92
|
+
registerMap: React.MutableRefObject<Record<string, RegisterMapItem>>;
|
93
|
+
/** 是否折叠 */
|
94
|
+
collapse?: boolean;
|
95
|
+
/** 注册函数 */
|
96
|
+
register: (params: RegisterParams) => void;
|
97
|
+
/** 通知函数 */
|
98
|
+
notify: (params?: NotifyParams) => Promise<any[]>;
|
99
|
+
/** 触发特定项的函数 */
|
100
|
+
triggerTo: (keys: string[]) => Promise<any[]>;
|
101
|
+
/** 处理滚动的函数 */
|
102
|
+
handleScroll: (id: string, options?: ScrollOptions) => void;
|
103
|
+
/** 懒加载配置 */
|
104
|
+
lazyLoad?: boolean | any;
|
105
|
+
/** 取消注册函数 */
|
106
|
+
unNotify: (keys: string | string[]) => void;
|
107
|
+
}
|
108
|
+
/**
|
109
|
+
* 注册参数类型
|
110
|
+
* @interface RegisterParams
|
111
|
+
*/
|
112
|
+
export interface RegisterParams {
|
113
|
+
/** 唯一标识符 */
|
114
|
+
id: string;
|
115
|
+
/** 表单实例 */
|
116
|
+
form?: any;
|
117
|
+
/** 标题 */
|
118
|
+
title: string;
|
119
|
+
/** 自定义验证器 */
|
120
|
+
validator?: () => Promise<any>;
|
121
|
+
/** 排序值 */
|
122
|
+
order: number;
|
123
|
+
/** 是否禁用 */
|
124
|
+
disabled?: boolean;
|
125
|
+
/** 懒加载配置 */
|
126
|
+
lazyLoad?: boolean | any;
|
127
|
+
/** 允许其他任意属性 */
|
128
|
+
[key: string]: any;
|
129
|
+
}
|
130
|
+
/**
|
131
|
+
* 注册映射项类型
|
132
|
+
* @interface RegisterMapItem
|
133
|
+
*/
|
134
|
+
export interface RegisterMapItem {
|
135
|
+
/** 唯一标识符 */
|
136
|
+
id: string;
|
137
|
+
/** 标题 */
|
138
|
+
title: string;
|
139
|
+
/** 排序值 */
|
140
|
+
order: number;
|
141
|
+
/** 提交事件 */
|
142
|
+
subEvent?: () => Promise<any>;
|
143
|
+
/** 允许其他任意属性 */
|
144
|
+
[key: string]: any;
|
145
|
+
}
|
146
|
+
/**
|
147
|
+
* 通知参数类型
|
148
|
+
* @interface NotifyParams
|
149
|
+
*/
|
150
|
+
export interface NotifyParams {
|
151
|
+
/** 排除项 */
|
152
|
+
excludes?: string[];
|
153
|
+
}
|
154
|
+
/**
|
155
|
+
* 滚动选项类型
|
156
|
+
* @interface ScrollOptions
|
157
|
+
*/
|
158
|
+
export interface ScrollOptions {
|
159
|
+
/** 目标偏移量 */
|
160
|
+
targetOffset?: number;
|
161
|
+
/** 是否滚动到错误位置 */
|
162
|
+
scrollToError?: boolean;
|
163
|
+
}
|
164
|
+
/**
|
165
|
+
* ProStep监听器属性类型
|
166
|
+
* @interface ListenerProps
|
167
|
+
*/
|
168
|
+
export interface ListenerProps {
|
169
|
+
/** 子元素 */
|
170
|
+
children: React.ReactElement;
|
171
|
+
/** 延迟时间 */
|
172
|
+
delayTime?: number;
|
173
|
+
/** 排除项 */
|
174
|
+
excludes?: string[];
|
175
|
+
/** 允许其他任意属性 */
|
176
|
+
[key: string]: any;
|
177
|
+
}
|
178
|
+
/**
|
179
|
+
* 错误结果类型
|
180
|
+
* @interface ErrorResult
|
181
|
+
*/
|
182
|
+
export interface ErrorResult {
|
183
|
+
/** 错误DOM元素 */
|
184
|
+
errorDom: HTMLElement | null;
|
185
|
+
/** 索引 */
|
186
|
+
index: number;
|
187
|
+
}
|
188
|
+
/**
|
189
|
+
* 锚点SVG属性类型
|
190
|
+
* @interface AnchorSvgProps
|
191
|
+
*/
|
192
|
+
export interface AnchorSvgProps {
|
193
|
+
/** 颜色 */
|
194
|
+
color?: string;
|
195
|
+
}
|
196
|
+
/**
|
197
|
+
* 菜单项属性类型
|
198
|
+
* @interface MenuItemProps
|
199
|
+
*/
|
200
|
+
export interface MenuItemProps {
|
201
|
+
/** 名称 */
|
202
|
+
name: string;
|
203
|
+
/** 编码 */
|
204
|
+
code: string;
|
205
|
+
/** 是否开启 */
|
206
|
+
onOff: boolean;
|
207
|
+
/** 是否是开始项 */
|
208
|
+
isStart?: boolean;
|
209
|
+
/** 是否是结束项 */
|
210
|
+
isEnd?: boolean;
|
211
|
+
/** 是否禁用 */
|
212
|
+
isDisabled?: boolean;
|
213
|
+
/** 是否是当前步骤 */
|
214
|
+
isCurrentStep?: boolean;
|
215
|
+
/** 是否已检查 */
|
216
|
+
isChecked?: boolean;
|
217
|
+
/** 错误数量 */
|
218
|
+
errorNum?: number;
|
219
|
+
/** 当前数量 */
|
220
|
+
currentNum?: number;
|
221
|
+
/** 目标偏移量 */
|
222
|
+
targetOffset?: number;
|
223
|
+
/** 是否滚动到错误位置 */
|
224
|
+
scrollToError?: boolean;
|
225
|
+
}
|
226
|
+
/**
|
227
|
+
* ProStep 组件基础类型
|
228
|
+
* @type ProStepType
|
229
|
+
*/
|
230
|
+
export type ProStepType = ProStepPropsType;
|
@@ -1,5 +1,18 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import type { LoadedMapType } from '../propsType';
|
2
|
-
|
3
|
-
|
4
|
-
|
3
|
+
/**
|
4
|
+
* 处理滚动到指定元素位置
|
5
|
+
* @param id 目标元素的ID
|
6
|
+
* @param options 滚动选项
|
7
|
+
*/
|
8
|
+
export declare const handleScroll: (id: string, options?: {
|
9
|
+
targetOffset?: number;
|
10
|
+
scrollToError?: boolean;
|
11
|
+
}) => void;
|
12
|
+
/**
|
13
|
+
* 获取加载模块数据信息
|
14
|
+
* @param registerMap 注册映射对象
|
15
|
+
* @returns 模块加载状态列表
|
16
|
+
*/
|
17
|
+
export declare const getLoadedMap: (registerMap: React.MutableRefObject<Record<string, any>>) => LoadedMapType[];
|
5
18
|
export default handleScroll;
|
@@ -7,6 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
exports.handleScroll = exports.getLoadedMap = exports.default = void 0;
|
8
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
9
9
|
var _lodash = require("lodash");
|
10
|
+
/**
|
11
|
+
* 处理滚动到指定元素位置
|
12
|
+
* @param id 目标元素的ID
|
13
|
+
* @param options 滚动选项
|
14
|
+
*/
|
10
15
|
var handleScroll = exports.handleScroll = function handleScroll(id, options) {
|
11
16
|
var _ref = options || {},
|
12
17
|
_ref$targetOffset = _ref.targetOffset,
|
@@ -23,10 +28,14 @@ var handleScroll = exports.handleScroll = function handleScroll(id, options) {
|
|
23
28
|
}, 100), 0);
|
24
29
|
}
|
25
30
|
};
|
26
|
-
/**
|
31
|
+
/**
|
32
|
+
* 获取加载模块数据信息
|
33
|
+
* @param registerMap 注册映射对象
|
34
|
+
* @returns 模块加载状态列表
|
35
|
+
*/
|
27
36
|
var getLoadedMap = exports.getLoadedMap = function getLoadedMap(registerMap) {
|
28
37
|
if (!(registerMap === null || registerMap === void 0 ? void 0 : registerMap.current)) {
|
29
|
-
return
|
38
|
+
return [];
|
30
39
|
}
|
31
40
|
var stepList = Object.values(registerMap === null || registerMap === void 0 ? void 0 : registerMap.current).map(function (item) {
|
32
41
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodash.pick)(item, ['id', 'order', 'title'])), {}, {
|
@@ -68,8 +68,7 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref2) {
|
|
68
68
|
valueType = column.valueType,
|
69
69
|
_column$format = column.format,
|
70
70
|
format = _column$format === void 0 ? 'YYYY-MM-DD HH:mm:ss' : _column$format,
|
71
|
-
|
72
|
-
precision = _column$precision === void 0 ? 0 : _column$precision,
|
71
|
+
precision = column.precision,
|
73
72
|
ellipsis = column.ellipsis,
|
74
73
|
code = column.code,
|
75
74
|
copyable = column.copyable,
|
@@ -120,9 +119,6 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref2) {
|
|
120
119
|
}
|
121
120
|
};
|
122
121
|
if (column === null || column === void 0 ? void 0 : column.render) {
|
123
|
-
// if (!originalObj && Object.keys(originalObj ?? {}).length === 0 && !onDiff) {
|
124
|
-
// return;
|
125
|
-
// }
|
126
122
|
var originalRender = column.render; // 保存原始的 render 方法
|
127
123
|
// 自定义render 手动重载下
|
128
124
|
column.render = function (value, record, index) {
|
@@ -220,7 +216,8 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref2) {
|
|
220
216
|
if (ellipsis) {
|
221
217
|
column.ellipsis = false;
|
222
218
|
}
|
223
|
-
var valueTypePrecision = precision;
|
219
|
+
var valueTypePrecision = precision !== null && precision !== void 0 ? precision : 0;
|
220
|
+
// 千分位、千分位带CNY前缀, 百分比、千分比保留小数点2位
|
224
221
|
if (['percentage', 'permillage', 'thousandth', 'thousandthCNY'].includes(valueType)) {
|
225
222
|
valueTypePrecision = precision !== null && precision !== void 0 ? precision : 2;
|
226
223
|
}
|
@@ -3,6 +3,7 @@ import { TableProps } from 'antd/es/table/Table';
|
|
3
3
|
import { ColumnType, GetRowKey, RowSelectionType } from 'antd/es/table/interface';
|
4
4
|
import { FormInstance } from 'antd';
|
5
5
|
import type { TooltipProps } from 'antd';
|
6
|
+
import type { TabsProps } from 'antd/es/tabs';
|
6
7
|
/**
|
7
8
|
* 合计栏的每列配置参数
|
8
9
|
*/
|
@@ -323,6 +324,17 @@ export interface ProTableType<T = any> extends Omit<TableProps<any>, 'summary' |
|
|
323
324
|
* @default undefined
|
324
325
|
*/
|
325
326
|
tableId?: string;
|
327
|
+
/**
|
328
|
+
* 表格 tabs查询 配置
|
329
|
+
* @description 用于配置表格的 tabs 选项
|
330
|
+
* @default undefined
|
331
|
+
*/
|
332
|
+
tabs?: {
|
333
|
+
code: string;
|
334
|
+
dataSource: any[];
|
335
|
+
transformResponse?: (res: any) => any[];
|
336
|
+
tabsProps?: TabsProps;
|
337
|
+
};
|
326
338
|
/**
|
327
339
|
* 表格行 key 的取值
|
328
340
|
* @description 表格行数据的唯一标识字段
|
@@ -647,7 +659,7 @@ export type ProTableServiceType<Req, Res> = (params?: ProTableParamsType<Req>) =
|
|
647
659
|
/**
|
648
660
|
* useAntdTable 状态
|
649
661
|
*/
|
650
|
-
export interface
|
662
|
+
export interface ProTableUseAntdTableType<I, R> {
|
651
663
|
/**
|
652
664
|
* 表格数据
|
653
665
|
* @description 当前表格显示的数据
|
@@ -694,23 +706,5 @@ export interface ProTableUseAntdTableStateType<I, R> {
|
|
694
706
|
export type ProTableProps<T = any> = ProTableType<T>;
|
695
707
|
export type ProTableColumn = ProTableColumnType;
|
696
708
|
export type ProTableSummaryProps = ProTableSummaryType;
|
697
|
-
export type
|
698
|
-
export type PaginationType = ProTablePaginationType;
|
699
|
-
export type DragStartGuardProps = ProTableDragStartGuardType;
|
700
|
-
export type DragEndGuardProps = ProTableDragEndGuardType;
|
701
|
-
export type DragCommonGuardProps<T> = ProTableDragCommonGuardType<T>;
|
702
|
-
export type DragStartGuardType = ProTableDragStartGuardType;
|
703
|
-
export type DragEndGuardType = ProTableDragEndGuardType;
|
704
|
-
export type DragCommonGuardType<T> = ProTableDragCommonGuardType<T>;
|
705
|
-
export type RequestOptions<T, R> = ProTableRequestOptionsType<T, R>;
|
706
|
-
export type RequestOptionsType<T, R> = ProTableRequestOptionsType<T, R>;
|
707
|
-
export type UseAntdTableState<I, R> = ProTableUseAntdTableStateType<I, R>;
|
708
|
-
export type UseAntdTableStateType<I, R> = ProTableUseAntdTableStateType<I, R>;
|
709
|
-
export type Response<T = any> = ProTableResponseType<T>;
|
710
|
-
export type List<T> = ProTableListType<T>;
|
711
|
-
export type ListResponse<T> = ProTableListResponseType<T>;
|
712
|
-
export type Params<T = any> = ProTableParamsType<T>;
|
713
|
-
export type Service<Req, Res> = ProTableServiceType<Req, Res>;
|
714
|
-
export type TableDiffConfigType = ProTableDiffConfigType;
|
715
|
-
export type CreateTreeFromArrayOptions = ProTableCreateTreeFromArrayType;
|
709
|
+
export type UseAntdTableState<I, R> = ProTableUseAntdTableType<I, R>;
|
716
710
|
export {};
|
@@ -56,7 +56,4 @@ export type ProTooltipTriggerNodeType = HTMLElement & {
|
|
56
56
|
/** 父节点元素 */
|
57
57
|
parentNode: HTMLElement;
|
58
58
|
};
|
59
|
-
export type ProTooltipPropsType = ProTooltipType;
|
60
59
|
export type ProTooltipProps = ProTooltipType;
|
61
|
-
export type RefObjectPropsType<T> = ProTooltipRefObjectType<T>;
|
62
|
-
export type ProtooltipTriggerNodeType = ProTooltipTriggerNodeType;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import {
|
2
|
+
import type { ProTreeFieldNamesType } from '../propsType';
|
3
3
|
interface ListProps {
|
4
4
|
disabled?: boolean;
|
5
5
|
checkedValues?: any[];
|
6
6
|
treeData: any[];
|
7
7
|
searchStr?: string;
|
8
8
|
showCodeName?: boolean;
|
9
|
-
fieldNames:
|
9
|
+
fieldNames: ProTreeFieldNamesType;
|
10
10
|
mode?: 'render' | 'view';
|
11
11
|
handleOnChange?: (e: any, value: string) => void;
|
12
12
|
handleFilterClose?: (code: string) => void;
|
@@ -16,8 +16,8 @@ var _excluded = ["checkedValues", "disabled", "treeData", "searchStr", "showCode
|
|
16
16
|
/*
|
17
17
|
* @Author: ''
|
18
18
|
* @Date: 2024-07-03 11:02:19
|
19
|
-
* @LastEditors:
|
20
|
-
* @LastEditTime:
|
19
|
+
* @LastEditors: za-xuwenli xuwenli@zhongan.io
|
20
|
+
* @LastEditTime: 2025-03-20 10:44:39
|
21
21
|
* @FilePath: /za-material-warehouse/src/ProTree/components/List.tsx
|
22
22
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
23
23
|
*/
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import type { ProTreeType } from '../propsType';
|
2
2
|
import '../style/index.less';
|
3
|
-
declare const ProTree: (props:
|
3
|
+
declare const ProTree: (props: ProTreeType) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default ProTree;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
3
|
-
export declare const ProTreeSelect: (props:
|
4
|
-
declare const _default: React.ForwardRefExoticComponent<
|
2
|
+
import type { ProTreeSelectType } from './propsType';
|
3
|
+
export declare const ProTreeSelect: (props: ProTreeSelectType, ref: React.Ref<unknown> | undefined) => import("react/jsx-runtime").JSX.Element;
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<ProTreeSelectType & React.RefAttributes<unknown>>;
|
5
5
|
export default _default;
|