@ztocwst/rc-pro-materials 0.1.22 → 0.1.23
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/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +4 -4
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.js +8 -8
- package/dist/SCM_Comps.js +8 -8
- 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-auth/auth.d.ts +9 -9
- package/es/components/z-auth/index.d.ts +3 -3
- package/es/components/z-box/box.d.ts +20 -20
- package/es/components/z-box/box.js +6 -3
- 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/div.js +3 -2
- 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-pro-provider/index.d.ts +3 -3
- package/es/components/z-pro-provider/z-pro-provider.d.ts +6 -6
- 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 +4 -4
- package/es/components/z-warehouse/index.d.ts +2 -2
- package/es/components/z-warehouse/zWarehouse.d.ts +3 -3
- package/es/components/z-warehouse/zWarehouse.js +0 -1
- package/es/index.d.ts +31 -31
- package/es/index.scss +1 -1
- 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.d.ts +35 -35
- package/es/utils/props/form.js +2 -2
- package/es/utils/props/listTpl.d.ts +29 -29
- 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 -162
- package/es/utils/props/warehouseAndFactory.d.ts +1 -1
- 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-auth/auth.d.ts +9 -9
- package/lib/components/z-auth/index.d.ts +3 -3
- package/lib/components/z-box/box.d.ts +20 -20
- package/lib/components/z-box/box.js +6 -3
- 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/div.js +4 -2
- 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-pro-provider/index.d.ts +3 -3
- package/lib/components/z-pro-provider/z-pro-provider.d.ts +6 -6
- 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 +4 -4
- package/lib/components/z-warehouse/index.d.ts +2 -2
- package/lib/components/z-warehouse/zWarehouse.d.ts +3 -3
- package/lib/components/z-warehouse/zWarehouse.js +0 -1
- package/lib/index.d.ts +31 -31
- 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.d.ts +35 -35
- package/lib/utils/props/form.js +2 -2
- package/lib/utils/props/listTpl.d.ts +29 -29
- 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 -162
- package/lib/utils/props/warehouseAndFactory.d.ts +1 -1
- package/lib/variables.scss +3 -3
- package/package.json +3 -3
package/es/utils/props/tpl.d.ts
CHANGED
|
@@ -1,162 +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" | "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
|
+
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/es/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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { ProEllipsisProps } from '@ztocwst/rc-pro';
|
|
3
|
-
declare const ZEllipsis: React.FC<ProEllipsisProps>;
|
|
4
|
-
export default ZEllipsis;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ProEllipsisProps } from '@ztocwst/rc-pro';
|
|
3
|
+
declare const ZEllipsis: React.FC<ProEllipsisProps>;
|
|
4
|
+
export default ZEllipsis;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZEllipsis from './ellipsis';
|
|
2
|
-
export type { ProEllipsisProps } from '@ztocwst/rc-pro';
|
|
3
|
-
export default ZEllipsis;
|
|
1
|
+
import ZEllipsis from './ellipsis';
|
|
2
|
+
export type { ProEllipsisProps } from '@ztocwst/rc-pro';
|
|
3
|
+
export default ZEllipsis;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface TypeAuthProps {
|
|
3
|
-
/** 权限编码集合 */
|
|
4
|
-
authCodes?: string[];
|
|
5
|
-
/** 编码 */
|
|
6
|
-
code: string;
|
|
7
|
-
}
|
|
8
|
-
declare const Auth: React.FC<TypeAuthProps>;
|
|
9
|
-
export default Auth;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TypeAuthProps {
|
|
3
|
+
/** 权限编码集合 */
|
|
4
|
+
authCodes?: string[];
|
|
5
|
+
/** 编码 */
|
|
6
|
+
code: string;
|
|
7
|
+
}
|
|
8
|
+
declare const Auth: React.FC<TypeAuthProps>;
|
|
9
|
+
export default Auth;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZAuth from './auth';
|
|
2
|
-
export type { TypeAuthProps } from './auth';
|
|
3
|
-
export default ZAuth;
|
|
1
|
+
import ZAuth from './auth';
|
|
2
|
+
export type { TypeAuthProps } from './auth';
|
|
3
|
+
export default ZAuth;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface TypeZBoxProps {
|
|
4
|
-
/** 对齐方向 */
|
|
5
|
-
direction: 'column' | 'row';
|
|
6
|
-
/** 主轴对齐 */
|
|
7
|
-
justify: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around';
|
|
8
|
-
/** 交叉轴对齐 */
|
|
9
|
-
align: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
10
|
-
/** 宽度 */
|
|
11
|
-
width: '' | '100%';
|
|
12
|
-
/** 间距 */
|
|
13
|
-
spacing: number;
|
|
14
|
-
style?: CSSProperties;
|
|
15
|
-
className?: string;
|
|
16
|
-
/** 是否换行 */
|
|
17
|
-
wrap: 'wrap' | 'nowrap';
|
|
18
|
-
}
|
|
19
|
-
declare const ZBox: React.FC<TypeZBoxProps>;
|
|
20
|
-
export default ZBox;
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface TypeZBoxProps {
|
|
4
|
+
/** 对齐方向 */
|
|
5
|
+
direction: 'column' | 'row';
|
|
6
|
+
/** 主轴对齐 */
|
|
7
|
+
justify: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around';
|
|
8
|
+
/** 交叉轴对齐 */
|
|
9
|
+
align: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
10
|
+
/** 宽度 */
|
|
11
|
+
width: '' | '100%';
|
|
12
|
+
/** 间距 */
|
|
13
|
+
spacing: number;
|
|
14
|
+
style?: CSSProperties;
|
|
15
|
+
className?: string;
|
|
16
|
+
/** 是否换行 */
|
|
17
|
+
wrap: 'wrap' | 'nowrap';
|
|
18
|
+
}
|
|
19
|
+
declare const ZBox: React.FC<TypeZBoxProps>;
|
|
20
|
+
export default ZBox;
|
|
@@ -4,8 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports["default"] = void 0;
|
|
6
6
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
7
8
|
require("./index.less");
|
|
8
9
|
var _classnames2 = _interopRequireDefault(require("classnames"));
|
|
10
|
+
var _excluded = ["direction", "justify", "align", "width", "wrap", "spacing", "style", "className", "children"];
|
|
9
11
|
var ZBox = function ZBox(props) {
|
|
10
12
|
var _classnames;
|
|
11
13
|
var direction = props.direction,
|
|
@@ -16,7 +18,8 @@ var ZBox = function ZBox(props) {
|
|
|
16
18
|
spacing = props.spacing,
|
|
17
19
|
style = props.style,
|
|
18
20
|
className = props.className,
|
|
19
|
-
children = props.children
|
|
21
|
+
children = props.children,
|
|
22
|
+
rest = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
|
20
23
|
var styleProps = {
|
|
21
24
|
flexFlow: direction,
|
|
22
25
|
justifyContent: justify,
|
|
@@ -25,10 +28,10 @@ var ZBox = function ZBox(props) {
|
|
|
25
28
|
gap: spacing,
|
|
26
29
|
flexWrap: wrap
|
|
27
30
|
};
|
|
28
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, rest, {
|
|
29
32
|
className: (0, _classnames2["default"])('rc-z-box', (_classnames = {}, _classnames[className] = !!className, _classnames)),
|
|
30
33
|
style: (0, _extends2["default"])({}, styleProps, style)
|
|
31
|
-
}, children);
|
|
34
|
+
}), children);
|
|
32
35
|
};
|
|
33
36
|
ZBox.displayName = 'ZBox';
|
|
34
37
|
var _default = ZBox;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZBox from './box';
|
|
2
|
-
export type { TypeZBoxProps } from './box';
|
|
3
|
-
export default ZBox;
|
|
1
|
+
import ZBox from './box';
|
|
2
|
+
export type { TypeZBoxProps } from './box';
|
|
3
|
+
export default ZBox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.rc-z-box {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
display: flex;
|
|
4
|
-
}
|
|
1
|
+
.rc-z-box {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: flex;
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZButton from './z-button';
|
|
2
|
-
export type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
|
|
3
|
-
export default ZButton;
|
|
1
|
+
import ZButton from './z-button';
|
|
2
|
+
export type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
|
|
3
|
+
export default ZButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
|
|
3
|
-
declare const ZButton: React.FC<ProButtonProps>;
|
|
4
|
-
export default ZButton;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
|
|
3
|
+
declare const ZButton: React.FC<ProButtonProps>;
|
|
4
|
+
export default ZButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
3
|
-
declare const ZConfigProvider: React.FC<RcConfigConsumerProps>;
|
|
4
|
-
export default ZConfigProvider;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
3
|
+
declare const ZConfigProvider: React.FC<RcConfigConsumerProps>;
|
|
4
|
+
export default ZConfigProvider;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZConfigProvider from './configProvider';
|
|
2
|
-
export type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
3
|
-
export default ZConfigProvider;
|
|
1
|
+
import ZConfigProvider from './configProvider';
|
|
2
|
+
export type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
3
|
+
export default ZConfigProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
declare const ZDiv: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
className?: string;
|
|
4
|
-
style: CSSProperties;
|
|
5
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export default ZDiv;
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
declare const ZDiv: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
className?: string;
|
|
4
|
+
style: CSSProperties;
|
|
5
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export default ZDiv;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
exports.__esModule = true;
|
|
4
5
|
exports["default"] = void 0;
|
|
6
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
5
7
|
var _react = require("react");
|
|
6
8
|
var ZDiv = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
7
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, props, {
|
|
8
10
|
className: props.className,
|
|
9
11
|
style: props.style,
|
|
10
12
|
ref: ref
|
|
11
|
-
}, props.children);
|
|
13
|
+
}), props.children);
|
|
12
14
|
});
|
|
13
15
|
ZDiv.displayName = 'ZDiv';
|
|
14
16
|
var _default = ZDiv;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import ZDiv from './div';
|
|
2
|
-
export default ZDiv;
|
|
1
|
+
import ZDiv from './div';
|
|
2
|
+
export default ZDiv;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* rcEditTable
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
export default class ZRcEditTable extends React.Component {
|
|
6
|
-
proEditableFormRef: any;
|
|
7
|
-
editableFormRef: any;
|
|
8
|
-
constructor(props: any);
|
|
9
|
-
getProEditableFormRefRef: () => any;
|
|
10
|
-
render(): React.JSX.Element;
|
|
11
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* rcEditTable
|
|
3
|
+
*/
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
export default class ZRcEditTable extends React.Component {
|
|
6
|
+
proEditableFormRef: any;
|
|
7
|
+
editableFormRef: any;
|
|
8
|
+
constructor(props: any);
|
|
9
|
+
getProEditableFormRefRef: () => any;
|
|
10
|
+
render(): React.JSX.Element;
|
|
11
|
+
}
|
|
@@ -9,8 +9,8 @@ var _rcPro = require("@ztocwst/rc-pro");
|
|
|
9
9
|
var _utils = require("../../utils");
|
|
10
10
|
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); }
|
|
11
11
|
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; }
|
|
12
|
-
/**
|
|
13
|
-
* rcEditTable
|
|
12
|
+
/**
|
|
13
|
+
* rcEditTable
|
|
14
14
|
*/
|
|
15
15
|
var ZRcEditTable = /*#__PURE__*/function (_React$Component) {
|
|
16
16
|
(0, _inheritsLoose2["default"])(ZRcEditTable, _React$Component);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import ZRcEditTable from './editTable';
|
|
2
|
-
export default ZRcEditTable;
|
|
1
|
+
import ZRcEditTable from './editTable';
|
|
2
|
+
export default ZRcEditTable;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZForm from './z-form';
|
|
2
|
-
export type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
3
|
-
export default ZForm;
|
|
1
|
+
import ZForm from './z-form';
|
|
2
|
+
export type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
3
|
+
export default ZForm;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
3
|
-
export default class ZFormContainer extends React.Component<ProFormRenderProps, any> {
|
|
4
|
-
formRef: any;
|
|
5
|
-
currentRef: any;
|
|
6
|
-
constructor(props: any);
|
|
7
|
-
getFormRef: () => any;
|
|
8
|
-
getCurrentRef: () => any;
|
|
9
|
-
render(): React.JSX.Element;
|
|
10
|
-
}
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
3
|
+
export default class ZFormContainer extends React.Component<ProFormRenderProps, any> {
|
|
4
|
+
formRef: any;
|
|
5
|
+
currentRef: any;
|
|
6
|
+
constructor(props: any);
|
|
7
|
+
getFormRef: () => any;
|
|
8
|
+
getCurrentRef: () => any;
|
|
9
|
+
render(): React.JSX.Element;
|
|
10
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZList from './list';
|
|
2
|
-
export type { RcListItem } from '@ztocwst/rc-pro';
|
|
3
|
-
export default ZList;
|
|
1
|
+
import ZList from './list';
|
|
2
|
+
export type { RcListItem } from '@ztocwst/rc-pro';
|
|
3
|
+
export default ZList;
|