@ztocwst/rc-pro-materials 0.1.13 → 0.1.15
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 +17 -17
- package/build/index.js +8 -8
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +4 -4
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +45 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +45 -10
- package/dist/SCM_Comps.css +1 -1
- package/dist/SCM_Comps.js +45 -10
- package/dist/SCM_Comps.js.map +1 -1
- package/es/components/z-Ellipsis/ellipsis.d.ts +4 -4
- package/es/components/z-Ellipsis/index.d.ts +3 -3
- package/es/components/z-box/box.d.ts +20 -20
- package/es/components/z-box/index.d.ts +3 -3
- package/es/components/z-box/index.less +4 -4
- package/es/components/z-button/index.d.ts +3 -3
- package/es/components/z-button/z-button.d.ts +4 -4
- package/es/components/z-config-provider/configProvider.d.ts +4 -4
- package/es/components/z-config-provider/index.d.ts +3 -3
- package/es/components/z-div/div.d.ts +6 -6
- package/es/components/z-div/index.d.ts +2 -2
- package/es/components/z-editTable/editTable.d.ts +11 -11
- package/es/components/z-editTable/editTable.js +2 -2
- package/es/components/z-editTable/index.d.ts +2 -2
- package/es/components/z-form/index.d.ts +3 -3
- package/es/components/z-form/z-form.d.ts +10 -10
- package/es/components/z-list/index.d.ts +3 -3
- package/es/components/z-list/list.d.ts +17 -17
- package/es/components/z-list/list.js +2 -2
- package/es/components/z-preview/index.d.ts +3 -3
- package/es/components/z-preview/preview.d.ts +4 -4
- package/es/components/z-ranking-list/index.d.ts +2 -2
- package/es/components/z-ranking-list/index.less +45 -45
- package/es/components/z-ranking-list/z-ranking-list.d.ts +14 -14
- package/es/components/z-ranking-list/z-ranking-list.js +2 -2
- package/es/components/z-simple-bar/index.d.ts +3 -3
- package/es/components/z-simple-bar/index.less +9 -9
- package/es/components/z-simple-bar/z-simple-bar.d.ts +27 -27
- package/es/components/z-singleFactory/index.d.ts +2 -2
- package/es/components/z-singleFactory/zSingerFactory.d.ts +3 -3
- package/es/components/z-statistic/index.d.ts +3 -3
- package/es/components/z-statistic/index.less +22 -22
- package/es/components/z-statistic/z-statistic.d.ts +13 -13
- package/es/components/z-table/index.d.ts +3 -3
- package/es/components/z-table/table.d.ts +8 -8
- package/es/components/z-tpl/index.d.ts +3 -3
- package/es/components/z-tpl/tpl.d.ts +23 -23
- package/es/components/z-tpl/tpl.js +2 -2
- package/es/components/z-warehouse/index.d.ts +2 -2
- package/es/components/z-warehouse/zWarehouse.d.ts +3 -3
- package/es/index.d.ts +29 -29
- package/es/index.scss +1 -1
- package/es/style.js +2 -0
- package/es/utils/hoc.d.ts +6 -6
- package/es/utils/hoc.js +3 -3
- package/es/utils/index.d.ts +12 -12
- package/es/utils/props/button.d.ts +13 -13
- package/es/utils/props/common.d.ts +1 -1
- package/es/utils/props/editTable.d.ts +3 -3
- package/es/utils/props/form.js +16 -15
- package/es/utils/props/listTpl.d.ts +29 -28
- package/es/utils/props/microModal.d.ts +7 -7
- package/es/utils/props/microSwitch.d.ts +1 -1
- package/es/utils/props/modalSelect.d.ts +6 -6
- package/es/utils/props/preview.d.ts +2 -2
- package/es/utils/props/tpl.d.ts +162 -159
- package/es/utils/props/warehouseAndFactory.d.ts +1 -1
- package/es/variables.d.ts +2 -2
- package/es/variables.scss +3 -3
- package/lib/components/z-Ellipsis/ellipsis.d.ts +4 -4
- package/lib/components/z-Ellipsis/index.d.ts +3 -3
- package/lib/components/z-box/box.d.ts +20 -20
- package/lib/components/z-box/index.d.ts +3 -3
- package/lib/components/z-box/index.less +4 -4
- package/lib/components/z-button/index.d.ts +3 -3
- package/lib/components/z-button/z-button.d.ts +4 -4
- package/lib/components/z-config-provider/configProvider.d.ts +4 -4
- package/lib/components/z-config-provider/index.d.ts +3 -3
- package/lib/components/z-div/div.d.ts +6 -6
- package/lib/components/z-div/index.d.ts +2 -2
- package/lib/components/z-editTable/editTable.d.ts +11 -11
- package/lib/components/z-editTable/editTable.js +2 -2
- package/lib/components/z-editTable/index.d.ts +2 -2
- package/lib/components/z-form/index.d.ts +3 -3
- package/lib/components/z-form/z-form.d.ts +10 -10
- package/lib/components/z-list/index.d.ts +3 -3
- package/lib/components/z-list/list.d.ts +17 -17
- package/lib/components/z-list/list.js +2 -2
- package/lib/components/z-preview/index.d.ts +3 -3
- package/lib/components/z-preview/preview.d.ts +4 -4
- package/lib/components/z-ranking-list/index.d.ts +2 -2
- package/lib/components/z-ranking-list/index.less +45 -45
- package/lib/components/z-ranking-list/z-ranking-list.d.ts +14 -14
- package/lib/components/z-ranking-list/z-ranking-list.js +2 -2
- package/lib/components/z-simple-bar/index.d.ts +3 -3
- package/lib/components/z-simple-bar/index.less +9 -9
- package/lib/components/z-simple-bar/z-simple-bar.d.ts +27 -27
- package/lib/components/z-singleFactory/index.d.ts +2 -2
- package/lib/components/z-singleFactory/zSingerFactory.d.ts +3 -3
- package/lib/components/z-statistic/index.d.ts +3 -3
- package/lib/components/z-statistic/index.less +22 -22
- package/lib/components/z-statistic/z-statistic.d.ts +13 -13
- package/lib/components/z-table/index.d.ts +3 -3
- package/lib/components/z-table/table.d.ts +8 -8
- package/lib/components/z-tpl/index.d.ts +3 -3
- package/lib/components/z-tpl/tpl.d.ts +23 -23
- package/lib/components/z-tpl/tpl.js +2 -2
- package/lib/components/z-warehouse/index.d.ts +2 -2
- package/lib/components/z-warehouse/zWarehouse.d.ts +3 -3
- package/lib/index.d.ts +29 -29
- package/lib/index.scss +1 -1
- package/lib/utils/hoc.d.ts +6 -6
- package/lib/utils/hoc.js +3 -3
- package/lib/utils/index.d.ts +12 -12
- package/lib/utils/props/button.d.ts +13 -13
- package/lib/utils/props/common.d.ts +1 -1
- package/lib/utils/props/editTable.d.ts +3 -3
- package/lib/utils/props/form.js +16 -15
- package/lib/utils/props/listTpl.d.ts +29 -28
- package/lib/utils/props/microModal.d.ts +7 -7
- package/lib/utils/props/microSwitch.d.ts +1 -1
- package/lib/utils/props/modalSelect.d.ts +6 -6
- package/lib/utils/props/preview.d.ts +2 -2
- package/lib/utils/props/tpl.d.ts +162 -159
- package/lib/utils/props/warehouseAndFactory.d.ts +1 -1
- package/lib/variables.d.ts +2 -2
- package/lib/variables.scss +3 -3
- package/package.json +3 -3
- package/es/utils/props/form.d.ts +0 -35
- package/lib/utils/props/form.d.ts +0 -35
package/lib/utils/props/form.js
CHANGED
|
@@ -15,8 +15,8 @@ var _excluded = ["fieldProps", "formItemProps", "dependencyColumns", "required",
|
|
|
15
15
|
_excluded4 = ["fieldProps"],
|
|
16
16
|
_excluded5 = ["requestOptions"],
|
|
17
17
|
_excluded6 = ["columns"];
|
|
18
|
-
/**
|
|
19
|
-
* 处理表单默认值
|
|
18
|
+
/**
|
|
19
|
+
* 处理表单默认值
|
|
20
20
|
*/
|
|
21
21
|
var requestOptionsCheck = function requestOptionsCheck(func, data) {
|
|
22
22
|
return typeof func === 'function' ? func(data) : true;
|
|
@@ -45,16 +45,17 @@ var processInitialValue = function processInitialValue(e) {
|
|
|
45
45
|
} : {}, (rest === null || rest === void 0 ? void 0 : rest.valueType) === 'dependency' ? {
|
|
46
46
|
columns: function columns(obj) {
|
|
47
47
|
var hhh = (dependencyColumns !== null && dependencyColumns !== void 0 ? dependencyColumns : []).map(function (child) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
// const value = (fieldRest?.name || [])?.reduce((prev, next) => {
|
|
49
|
+
// if (prev?.[next]) {
|
|
50
|
+
// return prev?.[next];
|
|
51
|
+
// }
|
|
52
|
+
// return prev;
|
|
53
|
+
// }, obj);
|
|
54
|
+
|
|
55
55
|
var dependencyName = '';
|
|
56
56
|
try {
|
|
57
|
-
|
|
57
|
+
// obj 依赖对象
|
|
58
|
+
dependencyName = JSON.stringify(obj !== null && obj !== void 0 ? obj : '');
|
|
58
59
|
} catch (error) {
|
|
59
60
|
dependencyName = '';
|
|
60
61
|
}
|
|
@@ -113,7 +114,7 @@ var processInitialValue = function processInitialValue(e) {
|
|
|
113
114
|
});
|
|
114
115
|
};
|
|
115
116
|
var processFormProps = function processFormProps(props) {
|
|
116
|
-
var
|
|
117
|
+
var _ref3;
|
|
117
118
|
var columns = props.columns,
|
|
118
119
|
submitter = props.submitter,
|
|
119
120
|
labelColWidth = props.labelColWidth,
|
|
@@ -132,17 +133,17 @@ var processFormProps = function processFormProps(props) {
|
|
|
132
133
|
restProps = props.restProps;
|
|
133
134
|
return (0, _modalSelect.processModalSelectProps)((0, _extends2["default"])({
|
|
134
135
|
// columns只支持两级group嵌套
|
|
135
|
-
columns: (
|
|
136
|
+
columns: (_ref3 = columns || []) === null || _ref3 === void 0 ? void 0 : _ref3.filter(function (e) {
|
|
136
137
|
return !!e;
|
|
137
138
|
}).map(function (e) {
|
|
138
139
|
if (e.valueType === 'group') {
|
|
139
|
-
var
|
|
140
|
+
var _ref4, _ref4$filter;
|
|
140
141
|
var groupColumns = e.columns,
|
|
141
142
|
groupRest = (0, _objectWithoutPropertiesLoose2["default"])(e, _excluded6);
|
|
142
143
|
return (0, _extends2["default"])({}, groupRest, {
|
|
143
|
-
columns: (
|
|
144
|
+
columns: (_ref4 = groupColumns || []) === null || _ref4 === void 0 ? void 0 : (_ref4$filter = _ref4.filter(function (child) {
|
|
144
145
|
return !!child;
|
|
145
|
-
})) === null ||
|
|
146
|
+
})) === null || _ref4$filter === void 0 ? void 0 : _ref4$filter.map(function (child) {
|
|
146
147
|
return processInitialValue(child);
|
|
147
148
|
})
|
|
148
149
|
});
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { RcListItem } from '@ztocwst/rc-pro';
|
|
2
|
-
export declare const processListTplProps: (props: RcListItem, extra?: {
|
|
3
|
-
listRef?: any;
|
|
4
|
-
tableRef?: any;
|
|
5
|
-
listFormRef?: any;
|
|
6
|
-
listFormCurrentRef?: any;
|
|
7
|
-
}) => {
|
|
8
|
-
requestConfig: any;
|
|
9
|
-
type?: "list";
|
|
10
|
-
listRef: any;
|
|
11
|
-
onListBtnChange?: (type: "add" | "copy" | "edit" | "preview" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>;
|
|
12
|
-
|
|
13
|
-
key?: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
1
|
+
import { RcListItem } from '@ztocwst/rc-pro';
|
|
2
|
+
export declare const processListTplProps: (props: RcListItem, extra?: {
|
|
3
|
+
listRef?: any;
|
|
4
|
+
tableRef?: any;
|
|
5
|
+
listFormRef?: any;
|
|
6
|
+
listFormCurrentRef?: any;
|
|
7
|
+
}) => {
|
|
8
|
+
requestConfig: any;
|
|
9
|
+
type?: "list";
|
|
10
|
+
listRef: any;
|
|
11
|
+
onListBtnChange?: (type: "add" | "copy" | "edit" | "preview" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>;
|
|
12
|
+
renderWithDefaultDom?: (dom: JSX.Element[], onChange?: (type: "add" | "copy" | "edit" | "preview" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>) => JSX.Element;
|
|
13
|
+
render?: (onChange?: (type: "add" | "copy" | "edit" | "preview" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>) => React.ReactNode;
|
|
14
|
+
key?: string;
|
|
15
|
+
name?: any;
|
|
16
|
+
form: any;
|
|
17
|
+
actions: {
|
|
18
|
+
items: any[];
|
|
19
|
+
type?: string;
|
|
20
|
+
spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
|
|
21
|
+
size?: import("antd/lib/button").ButtonSize;
|
|
22
|
+
onClick?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps) => void | Promise<any>;
|
|
23
|
+
onSuccess?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps, data?: any) => void;
|
|
24
|
+
};
|
|
25
|
+
grid: {
|
|
26
|
+
config: any;
|
|
27
|
+
ref: any;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ProButtonItemsProps } from '@ztocwst/rc-pro';
|
|
2
|
-
export declare const processMicroModalProps: (item: any) => ProButtonItemsProps;
|
|
3
|
-
export declare function transformFormProps(formProps: any): {
|
|
4
|
-
formProps?: undefined;
|
|
5
|
-
} | {
|
|
6
|
-
formProps: any;
|
|
7
|
-
};
|
|
1
|
+
import type { ProButtonItemsProps } from '@ztocwst/rc-pro';
|
|
2
|
+
export declare const processMicroModalProps: (item: any) => ProButtonItemsProps;
|
|
3
|
+
export declare function transformFormProps(formProps: any): {
|
|
4
|
+
formProps?: undefined;
|
|
5
|
+
} | {
|
|
6
|
+
formProps: any;
|
|
7
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const processMicroSwitchProps: (props: any, tableRef: any) => any;
|
|
1
|
+
export declare const processMicroSwitchProps: (props: any, tableRef: any) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
2
|
-
export declare const processModalSelectProps: (props: ProFormRenderProps & {
|
|
3
|
-
labelColWidth?: number;
|
|
4
|
-
columns?: any[];
|
|
5
|
-
}) => any;
|
|
6
|
-
export declare const processModalSelectTablePropsColumns: (columns: any[]) => any[];
|
|
1
|
+
import { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
2
|
+
export declare const processModalSelectProps: (props: ProFormRenderProps & {
|
|
3
|
+
labelColWidth?: number;
|
|
4
|
+
columns?: any[];
|
|
5
|
+
}) => any;
|
|
6
|
+
export declare const processModalSelectTablePropsColumns: (columns: any[]) => any[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ProPreviewProps } from '@ztocwst/rc-pro';
|
|
2
|
-
export declare const processPreviewProps: (props: ProPreviewProps) => any;
|
|
1
|
+
import { ProPreviewProps } from '@ztocwst/rc-pro';
|
|
2
|
+
export declare const processPreviewProps: (props: ProPreviewProps) => any;
|
package/lib/utils/props/tpl.d.ts
CHANGED
|
@@ -1,159 +1,162 @@
|
|
|
1
|
-
import { RcPageItem, RcPageProps } from '@ztocwst/rc-pro';
|
|
2
|
-
export declare const processTplBillProps: (props: RcPageItem['bill'], extra?: {
|
|
3
|
-
billFormRef?: any;
|
|
4
|
-
billFormCurrentRef?: any;
|
|
5
|
-
}) => {
|
|
6
|
-
previewTabs: {
|
|
7
|
-
antdRadioGroupProps?: any;
|
|
8
|
-
antdPageHeaderProps?: any;
|
|
9
|
-
on: true;
|
|
10
|
-
title?: any;
|
|
11
|
-
};
|
|
12
|
-
preview?: any;
|
|
13
|
-
form?: {
|
|
14
|
-
props: any;
|
|
15
|
-
antdPageHeaderProps?: any;
|
|
16
|
-
layoutProps?: any;
|
|
17
|
-
requestConfig: {
|
|
18
|
-
preview?: any;
|
|
19
|
-
edit?: any;
|
|
20
|
-
add?: any;
|
|
21
|
-
};
|
|
22
|
-
key?: string;
|
|
23
|
-
width?: string | number;
|
|
24
|
-
name?: any;
|
|
25
|
-
layoutType?: "page" | "
|
|
26
|
-
onCustomBack?: () => void;
|
|
27
|
-
onBackSuccess?: (data?: any) => void;
|
|
28
|
-
isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
|
|
29
|
-
submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
|
|
30
|
-
submitterRender?: (opt: {
|
|
31
|
-
onFinish?: (values: any, options?: import("@ztocwst/rc-pro/es/templates/basicTpl").SubmitOptions) => Promise<any>;
|
|
32
|
-
}, dom: JSX.Element[]) => any;
|
|
33
|
-
saveAndContinue?: boolean;
|
|
34
|
-
};
|
|
35
|
-
} | {
|
|
36
|
-
previewTabs?: undefined;
|
|
37
|
-
preview?: any;
|
|
38
|
-
form?: {
|
|
39
|
-
props: any;
|
|
40
|
-
antdPageHeaderProps?: any;
|
|
41
|
-
layoutProps?: any;
|
|
42
|
-
requestConfig: {
|
|
43
|
-
preview?: any;
|
|
44
|
-
edit?: any;
|
|
45
|
-
add?: any;
|
|
46
|
-
};
|
|
47
|
-
key?: string;
|
|
48
|
-
width?: string | number;
|
|
49
|
-
name?: any;
|
|
50
|
-
layoutType?: "page" | "
|
|
51
|
-
onCustomBack?: () => void;
|
|
52
|
-
onBackSuccess?: (data?: any) => void;
|
|
53
|
-
isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
|
|
54
|
-
submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
|
|
55
|
-
submitterRender?: (opt: {
|
|
56
|
-
onFinish?: (values: any, options?: import("@ztocwst/rc-pro/es/templates/basicTpl").SubmitOptions) => Promise<any>;
|
|
57
|
-
}, dom: JSX.Element[]) => any;
|
|
58
|
-
saveAndContinue?: boolean;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
export declare const processTplProps: (props: RcPageProps, extra?: {
|
|
62
|
-
listRef?: any;
|
|
63
|
-
tableRef?: any;
|
|
64
|
-
listFormRef?: any;
|
|
65
|
-
billFormRef?: any;
|
|
66
|
-
listFormCurrentRef?: any;
|
|
67
|
-
billFormCurrentRef?: any;
|
|
68
|
-
}) => {
|
|
69
|
-
page: {
|
|
70
|
-
bill?: {
|
|
71
|
-
previewTabs: {
|
|
72
|
-
antdRadioGroupProps?: any;
|
|
73
|
-
antdPageHeaderProps?: any;
|
|
74
|
-
on: true;
|
|
75
|
-
title?: any;
|
|
76
|
-
};
|
|
77
|
-
preview?: any;
|
|
78
|
-
form?: {
|
|
79
|
-
props: any;
|
|
80
|
-
antdPageHeaderProps?: any;
|
|
81
|
-
layoutProps?: any;
|
|
82
|
-
requestConfig: {
|
|
83
|
-
preview?: any;
|
|
84
|
-
edit?: any;
|
|
85
|
-
add?: any;
|
|
86
|
-
};
|
|
87
|
-
key?: string;
|
|
88
|
-
width?: string | number;
|
|
89
|
-
name?: any;
|
|
90
|
-
layoutType?: "page" | "
|
|
91
|
-
onCustomBack?: () => void;
|
|
92
|
-
onBackSuccess?: (data?: any) => void;
|
|
93
|
-
isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
|
|
94
|
-
submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
|
|
95
|
-
submitterRender?: (opt: {
|
|
96
|
-
onFinish?: (values: any, options?: import("@ztocwst/rc-pro/es/templates/basicTpl").SubmitOptions) => Promise<any>;
|
|
97
|
-
}, dom: JSX.Element[]) => any;
|
|
98
|
-
saveAndContinue?: boolean;
|
|
99
|
-
};
|
|
100
|
-
} | {
|
|
101
|
-
previewTabs?: undefined;
|
|
102
|
-
preview?: any;
|
|
103
|
-
form?: {
|
|
104
|
-
props: any;
|
|
105
|
-
antdPageHeaderProps?: any;
|
|
106
|
-
layoutProps?: any;
|
|
107
|
-
requestConfig: {
|
|
108
|
-
preview?: any;
|
|
109
|
-
edit?: any;
|
|
110
|
-
add?: any;
|
|
111
|
-
};
|
|
112
|
-
key?: string;
|
|
113
|
-
width?: string | number;
|
|
114
|
-
name?: any;
|
|
115
|
-
layoutType?: "page" | "
|
|
116
|
-
onCustomBack?: () => void;
|
|
117
|
-
onBackSuccess?: (data?: any) => void;
|
|
118
|
-
isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
|
|
119
|
-
submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
|
|
120
|
-
submitterRender?: (opt: {
|
|
121
|
-
onFinish?: (values: any, options?: import("@ztocwst/rc-pro/es/templates/basicTpl").SubmitOptions) => Promise<any>;
|
|
122
|
-
}, dom: JSX.Element[]) => any;
|
|
123
|
-
saveAndContinue?: boolean;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
list: {
|
|
127
|
-
requestConfig: any;
|
|
128
|
-
type?: "list";
|
|
129
|
-
listRef: any;
|
|
130
|
-
onListBtnChange?: (type: "add" | "copy" | "edit" | "preview" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>;
|
|
131
|
-
|
|
132
|
-
key?: string;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
requestConfig: Omit<import("@ztocwst/rc-pro/es/utils").RequestCommonProps, "transform" | "formCheck">;
|
|
158
|
-
} & import("antd").SelectProps<any, import("rc-select/lib/Select").DefaultOptionType>);
|
|
159
|
-
|
|
1
|
+
import { RcPageItem, RcPageProps } from '@ztocwst/rc-pro';
|
|
2
|
+
export declare const processTplBillProps: (props: RcPageItem['bill'], extra?: {
|
|
3
|
+
billFormRef?: any;
|
|
4
|
+
billFormCurrentRef?: any;
|
|
5
|
+
}) => {
|
|
6
|
+
previewTabs: {
|
|
7
|
+
antdRadioGroupProps?: any;
|
|
8
|
+
antdPageHeaderProps?: any;
|
|
9
|
+
on: true;
|
|
10
|
+
title?: any;
|
|
11
|
+
};
|
|
12
|
+
preview?: any;
|
|
13
|
+
form?: {
|
|
14
|
+
props: any;
|
|
15
|
+
antdPageHeaderProps?: any;
|
|
16
|
+
layoutProps?: any;
|
|
17
|
+
requestConfig: {
|
|
18
|
+
preview?: any;
|
|
19
|
+
edit?: any;
|
|
20
|
+
add?: any;
|
|
21
|
+
};
|
|
22
|
+
key?: string;
|
|
23
|
+
width?: string | number;
|
|
24
|
+
name?: any;
|
|
25
|
+
layoutType?: "page" | "modal" | "drawer";
|
|
26
|
+
onCustomBack?: () => void;
|
|
27
|
+
onBackSuccess?: (data?: any) => void;
|
|
28
|
+
isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
|
|
29
|
+
submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
|
|
30
|
+
submitterRender?: (opt: {
|
|
31
|
+
onFinish?: (values: any, options?: import("@ztocwst/rc-pro/es/templates/basicTpl").SubmitOptions) => Promise<any>;
|
|
32
|
+
}, dom: JSX.Element[]) => any;
|
|
33
|
+
saveAndContinue?: boolean;
|
|
34
|
+
};
|
|
35
|
+
} | {
|
|
36
|
+
previewTabs?: undefined;
|
|
37
|
+
preview?: any;
|
|
38
|
+
form?: {
|
|
39
|
+
props: any;
|
|
40
|
+
antdPageHeaderProps?: any;
|
|
41
|
+
layoutProps?: any;
|
|
42
|
+
requestConfig: {
|
|
43
|
+
preview?: any;
|
|
44
|
+
edit?: any;
|
|
45
|
+
add?: any;
|
|
46
|
+
};
|
|
47
|
+
key?: string;
|
|
48
|
+
width?: string | number;
|
|
49
|
+
name?: any;
|
|
50
|
+
layoutType?: "page" | "modal" | "drawer";
|
|
51
|
+
onCustomBack?: () => void;
|
|
52
|
+
onBackSuccess?: (data?: any) => void;
|
|
53
|
+
isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
|
|
54
|
+
submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
|
|
55
|
+
submitterRender?: (opt: {
|
|
56
|
+
onFinish?: (values: any, options?: import("@ztocwst/rc-pro/es/templates/basicTpl").SubmitOptions) => Promise<any>;
|
|
57
|
+
}, dom: JSX.Element[]) => any;
|
|
58
|
+
saveAndContinue?: boolean;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export declare const processTplProps: (props: RcPageProps, extra?: {
|
|
62
|
+
listRef?: any;
|
|
63
|
+
tableRef?: any;
|
|
64
|
+
listFormRef?: any;
|
|
65
|
+
billFormRef?: any;
|
|
66
|
+
listFormCurrentRef?: any;
|
|
67
|
+
billFormCurrentRef?: any;
|
|
68
|
+
}) => {
|
|
69
|
+
page: {
|
|
70
|
+
bill?: {
|
|
71
|
+
previewTabs: {
|
|
72
|
+
antdRadioGroupProps?: any;
|
|
73
|
+
antdPageHeaderProps?: any;
|
|
74
|
+
on: true;
|
|
75
|
+
title?: any;
|
|
76
|
+
};
|
|
77
|
+
preview?: any;
|
|
78
|
+
form?: {
|
|
79
|
+
props: any;
|
|
80
|
+
antdPageHeaderProps?: any;
|
|
81
|
+
layoutProps?: any;
|
|
82
|
+
requestConfig: {
|
|
83
|
+
preview?: any;
|
|
84
|
+
edit?: any;
|
|
85
|
+
add?: any;
|
|
86
|
+
};
|
|
87
|
+
key?: string;
|
|
88
|
+
width?: string | number;
|
|
89
|
+
name?: any;
|
|
90
|
+
layoutType?: "page" | "modal" | "drawer";
|
|
91
|
+
onCustomBack?: () => void;
|
|
92
|
+
onBackSuccess?: (data?: any) => void;
|
|
93
|
+
isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
|
|
94
|
+
submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
|
|
95
|
+
submitterRender?: (opt: {
|
|
96
|
+
onFinish?: (values: any, options?: import("@ztocwst/rc-pro/es/templates/basicTpl").SubmitOptions) => Promise<any>;
|
|
97
|
+
}, dom: JSX.Element[]) => any;
|
|
98
|
+
saveAndContinue?: boolean;
|
|
99
|
+
};
|
|
100
|
+
} | {
|
|
101
|
+
previewTabs?: undefined;
|
|
102
|
+
preview?: any;
|
|
103
|
+
form?: {
|
|
104
|
+
props: any;
|
|
105
|
+
antdPageHeaderProps?: any;
|
|
106
|
+
layoutProps?: any;
|
|
107
|
+
requestConfig: {
|
|
108
|
+
preview?: any;
|
|
109
|
+
edit?: any;
|
|
110
|
+
add?: any;
|
|
111
|
+
};
|
|
112
|
+
key?: string;
|
|
113
|
+
width?: string | number;
|
|
114
|
+
name?: any;
|
|
115
|
+
layoutType?: "page" | "modal" | "drawer";
|
|
116
|
+
onCustomBack?: () => void;
|
|
117
|
+
onBackSuccess?: (data?: any) => void;
|
|
118
|
+
isValidatorCancelTouched?: boolean | import("antd").ModalFuncProps;
|
|
119
|
+
submitSecondConfirm?: boolean | import("antd").ModalFuncProps;
|
|
120
|
+
submitterRender?: (opt: {
|
|
121
|
+
onFinish?: (values: any, options?: import("@ztocwst/rc-pro/es/templates/basicTpl").SubmitOptions) => Promise<any>;
|
|
122
|
+
}, dom: JSX.Element[]) => any;
|
|
123
|
+
saveAndContinue?: boolean;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
list: {
|
|
127
|
+
requestConfig: any;
|
|
128
|
+
type?: "list";
|
|
129
|
+
listRef: any;
|
|
130
|
+
onListBtnChange?: (type: "add" | "copy" | "edit" | "preview" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>;
|
|
131
|
+
renderWithDefaultDom?: (dom: JSX.Element[], onChange?: (type: "add" | "copy" | "edit" | "preview" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>) => JSX.Element;
|
|
132
|
+
render?: (onChange?: (type: "add" | "copy" | "edit" | "preview" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>) => React.ReactNode;
|
|
133
|
+
key?: string;
|
|
134
|
+
name?: any;
|
|
135
|
+
form: any;
|
|
136
|
+
actions: {
|
|
137
|
+
items: any[];
|
|
138
|
+
type?: string;
|
|
139
|
+
spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
|
|
140
|
+
size?: import("antd/lib/button").ButtonSize;
|
|
141
|
+
onClick?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps) => void | Promise<any>;
|
|
142
|
+
onSuccess?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps, data?: any) => void;
|
|
143
|
+
};
|
|
144
|
+
grid: {
|
|
145
|
+
config: any;
|
|
146
|
+
ref: any;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
key?: string;
|
|
151
|
+
tab?: React.ReactNode;
|
|
152
|
+
onBillSuccess?: (res: any) => void;
|
|
153
|
+
onBillError?: (res: any) => void;
|
|
154
|
+
onPageSuccess?: () => void;
|
|
155
|
+
pageRef?: React.MutableRefObject<import("@ztocwst/rc-pro").RcPageRefInstance>;
|
|
156
|
+
singleWarehouse?: boolean | ({
|
|
157
|
+
requestConfig: Omit<import("@ztocwst/rc-pro/es/utils").RequestCommonProps, "transform" | "formCheck">;
|
|
158
|
+
} & import("antd").SelectProps<any, import("rc-select/lib/Select").DefaultOptionType>);
|
|
159
|
+
singleFactory?: boolean | ({
|
|
160
|
+
requestConfig: Omit<import("@ztocwst/rc-pro/es/utils").RequestCommonProps, "transform" | "formCheck">;
|
|
161
|
+
} & import("antd").SelectProps<any, import("rc-select/lib/Select").DefaultOptionType>);
|
|
162
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const processWarehouseAndFactoryProps: (_props: any) => any;
|
|
1
|
+
export declare const processWarehouseAndFactoryProps: (_props: any) => any;
|
package/lib/variables.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const bizCssPrefix = "bizpack";
|
|
2
|
-
export { bizCssPrefix };
|
|
1
|
+
declare const bizCssPrefix = "bizpack";
|
|
2
|
+
export { bizCssPrefix };
|
package/lib/variables.scss
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@import '~@alifd/next/variables.scss';
|
|
2
|
-
|
|
3
|
-
$biz-css-prefix: '.bizpack';
|
|
1
|
+
@import '~@alifd/next/variables.scss';
|
|
2
|
+
|
|
3
|
+
$biz-css-prefix: '.bizpack';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ztocwst/rc-pro-materials",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "@ztocwst/rc-pro-materials",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
},
|
|
85
85
|
"componentConfig": {
|
|
86
86
|
"isComponentLibrary": true,
|
|
87
|
-
"materialSchema": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.
|
|
87
|
+
"materialSchema": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.15/build/lowcode/assets-prod.json"
|
|
88
88
|
},
|
|
89
|
-
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.
|
|
89
|
+
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.15/build/index.html",
|
|
90
90
|
"publishConfig": {
|
|
91
91
|
"registry": "https://registry.npmjs.org/",
|
|
92
92
|
"access": "public"
|
package/es/utils/props/form.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 处理表单默认值
|
|
3
|
-
*/
|
|
4
|
-
import { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
5
|
-
export declare const processFormProps: (props: Omit<import("@ant-design/pro-form/lib/components/SchemaForm").FormSchema<any, "custom" | "text" | "autoComplete" | "cardList" | "upload" | "linkage" | "asyncSelect" | "inputTextArea" | "modalSelect" | "treeSelectArea" | "inputGroup">, "columns"> & {
|
|
6
|
-
onCollapse?: (collapsed: boolean) => void;
|
|
7
|
-
defaultColsNumber?: number;
|
|
8
|
-
span?: number;
|
|
9
|
-
currentRef?: React.Ref<any>;
|
|
10
|
-
valueTypeMap?: Record<string, import("@ant-design/pro-provider").ProRenderFieldPropsType>;
|
|
11
|
-
number?: number;
|
|
12
|
-
settingOpt?: {
|
|
13
|
-
key: string;
|
|
14
|
-
isShowAdd?: boolean;
|
|
15
|
-
getAsyncColumns?: (key: string) => Promise<any[]>;
|
|
16
|
-
setAsyncColumns?: (key: string, data: any[]) => Promise<{
|
|
17
|
-
[k: string]: any;
|
|
18
|
-
success: boolean;
|
|
19
|
-
}>;
|
|
20
|
-
};
|
|
21
|
-
submitterFooter?: boolean;
|
|
22
|
-
anchor?: {
|
|
23
|
-
on?: boolean;
|
|
24
|
-
direction?: "left" | "right";
|
|
25
|
-
getContainer?: () => Element | HTMLElement;
|
|
26
|
-
} & Omit<import("antd").AnchorProps, "getContainer">;
|
|
27
|
-
columns?: import("@ztocwst/rc-pro").ProFormRenderColumnsType<any, "text" | import("@ant-design/pro-form/lib/components/SchemaForm").FormFieldType>[] | ((values: any) => import("@ztocwst/rc-pro").ProFormRenderColumnsType<any, "text" | import("@ant-design/pro-form/lib/components/SchemaForm").FormFieldType>[]);
|
|
28
|
-
onLoadSuccess?: () => void;
|
|
29
|
-
onSettingSuccess?: () => void;
|
|
30
|
-
coerceRaster?: boolean;
|
|
31
|
-
} & {
|
|
32
|
-
labelColWidth?: number;
|
|
33
|
-
columns?: any[];
|
|
34
|
-
restProps?: any;
|
|
35
|
-
}) => any;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 处理表单默认值
|
|
3
|
-
*/
|
|
4
|
-
import { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
5
|
-
export declare const processFormProps: (props: Omit<import("@ant-design/pro-form/lib/components/SchemaForm").FormSchema<any, "custom" | "text" | "autoComplete" | "cardList" | "upload" | "linkage" | "asyncSelect" | "inputTextArea" | "modalSelect" | "treeSelectArea" | "inputGroup">, "columns"> & {
|
|
6
|
-
onCollapse?: (collapsed: boolean) => void;
|
|
7
|
-
defaultColsNumber?: number;
|
|
8
|
-
span?: number;
|
|
9
|
-
currentRef?: React.Ref<any>;
|
|
10
|
-
valueTypeMap?: Record<string, import("@ant-design/pro-provider").ProRenderFieldPropsType>;
|
|
11
|
-
number?: number;
|
|
12
|
-
settingOpt?: {
|
|
13
|
-
key: string;
|
|
14
|
-
isShowAdd?: boolean;
|
|
15
|
-
getAsyncColumns?: (key: string) => Promise<any[]>;
|
|
16
|
-
setAsyncColumns?: (key: string, data: any[]) => Promise<{
|
|
17
|
-
[k: string]: any;
|
|
18
|
-
success: boolean;
|
|
19
|
-
}>;
|
|
20
|
-
};
|
|
21
|
-
submitterFooter?: boolean;
|
|
22
|
-
anchor?: {
|
|
23
|
-
on?: boolean;
|
|
24
|
-
direction?: "left" | "right";
|
|
25
|
-
getContainer?: () => Element | HTMLElement;
|
|
26
|
-
} & Omit<import("antd").AnchorProps, "getContainer">;
|
|
27
|
-
columns?: import("@ztocwst/rc-pro").ProFormRenderColumnsType<any, "text" | import("@ant-design/pro-form/lib/components/SchemaForm").FormFieldType>[] | ((values: any) => import("@ztocwst/rc-pro").ProFormRenderColumnsType<any, "text" | import("@ant-design/pro-form/lib/components/SchemaForm").FormFieldType>[]);
|
|
28
|
-
onLoadSuccess?: () => void;
|
|
29
|
-
onSettingSuccess?: () => void;
|
|
30
|
-
coerceRaster?: boolean;
|
|
31
|
-
} & {
|
|
32
|
-
labelColWidth?: number;
|
|
33
|
-
columns?: any[];
|
|
34
|
-
restProps?: any;
|
|
35
|
-
}) => any;
|