antd-form-document 4.0.0 → 5.0.1
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/dist/index.tsx +1 -1
- package/dist/index.tsx.map +1 -1
- package/dist/src/applets/index.d.ts +34 -34
- package/dist/src/components/Checkbox/index.d.ts +9 -9
- package/dist/src/components/DatePicker/index.d.ts +6 -6
- package/dist/src/components/DatePicker/index.d.ts.map +1 -1
- package/dist/src/components/Duration/index.d.ts +7 -7
- package/dist/src/components/Editor/index.d.ts +6 -6
- package/dist/src/components/FormList/index.d.ts +18 -18
- package/dist/src/components/InputNumber/index.d.ts +6 -6
- package/dist/src/components/Label/index.d.ts +5 -5
- package/dist/src/components/Photo/index.d.ts +5 -5
- package/dist/src/components/Radio/index.d.ts +9 -9
- package/dist/src/components/Select/index.d.ts +10 -10
- package/dist/src/components/SuperUpload/index.d.ts +5 -5
- package/dist/src/components/Switch/index.d.ts +6 -6
- package/dist/src/components/Table/index.d.ts +6 -6
- package/dist/src/components/Text/index.d.ts +6 -6
- package/dist/src/components/Text/index.d.ts.map +1 -1
- package/dist/src/components/TextArea/index.d.ts +6 -6
- package/dist/src/components/TimePicker/index.d.ts +6 -6
- package/dist/src/components/TimePicker/index.d.ts.map +1 -1
- package/dist/src/components/Tooltip/index.d.ts +5 -5
- package/dist/src/components/Upload/index.d.ts +5 -5
- package/dist/src/components/index.d.ts +18 -18
- package/dist/src/config.d.ts +35 -35
- package/dist/src/containers/Col/index.d.ts +2 -2
- package/dist/src/containers/Collapse/index.d.ts +3 -3
- package/dist/src/containers/Content/index.d.ts +3 -3
- package/dist/src/containers/Divider/index.d.ts +2 -2
- package/dist/src/containers/Row/index.d.ts +2 -2
- package/dist/src/containers/Steps/index.d.ts +2 -2
- package/dist/src/containers/index.d.ts +6 -6
- package/dist/src/context.d.ts +2 -2
- package/dist/src/entity/XML.d.ts +39 -39
- package/dist/src/form/index.d.ts +135 -135
- package/dist/src/index.d.ts +4 -4
- package/dist/src/preview/index.d.ts +18 -18
- package/dist/src/service/ProComponent.d.ts +12 -12
- package/dist/src/service/UIComponent.d.ts +106 -106
- package/dist/src/service/UIListComponent.d.ts +25 -25
- package/dist/src/service/WidgetComponent.d.ts +3 -3
- package/dist/src/service/index.d.ts +4 -4
- package/dist/src/utils/document.d.ts +43 -43
- package/dist/src/utils/loading.d.ts +19 -19
- package/dist/src/utils/request.d.ts +3 -3
- package/dist/src/utils/style.d.ts +7 -7
- package/package.json +24 -23
package/dist/src/entity/XML.d.ts
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
export default class XML {
|
|
2
|
-
readonly id: string;
|
|
3
|
-
readonly tag: string;
|
|
4
|
-
readonly text?: string;
|
|
5
|
-
readonly attributes: {
|
|
6
|
-
[name: string]: string | boolean;
|
|
7
|
-
};
|
|
8
|
-
readonly cdata?: string;
|
|
9
|
-
readonly children?: XML[];
|
|
10
|
-
constructor(element: Element);
|
|
11
|
-
/**
|
|
12
|
-
* 判断是否为boolean型
|
|
13
|
-
*
|
|
14
|
-
* @param value
|
|
15
|
-
* @returns
|
|
16
|
-
*/
|
|
17
|
-
private isBoolean;
|
|
18
|
-
/**
|
|
19
|
-
* 转换boolean型
|
|
20
|
-
*
|
|
21
|
-
* @param value
|
|
22
|
-
* @returns
|
|
23
|
-
*/
|
|
24
|
-
private toBoolean;
|
|
25
|
-
/**
|
|
26
|
-
* 判断是否为number型
|
|
27
|
-
*
|
|
28
|
-
* @param value
|
|
29
|
-
* @returns
|
|
30
|
-
*/
|
|
31
|
-
private isNumber;
|
|
32
|
-
/**
|
|
33
|
-
* 转换number型
|
|
34
|
-
*
|
|
35
|
-
* @param value
|
|
36
|
-
* @returns
|
|
37
|
-
*/
|
|
38
|
-
private toNumber;
|
|
39
|
-
}
|
|
1
|
+
export default class XML {
|
|
2
|
+
readonly id: string;
|
|
3
|
+
readonly tag: string;
|
|
4
|
+
readonly text?: string;
|
|
5
|
+
readonly attributes: {
|
|
6
|
+
[name: string]: string | boolean;
|
|
7
|
+
};
|
|
8
|
+
readonly cdata?: string;
|
|
9
|
+
readonly children?: XML[];
|
|
10
|
+
constructor(element: Element);
|
|
11
|
+
/**
|
|
12
|
+
* 判断是否为boolean型
|
|
13
|
+
*
|
|
14
|
+
* @param value
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
private isBoolean;
|
|
18
|
+
/**
|
|
19
|
+
* 转换boolean型
|
|
20
|
+
*
|
|
21
|
+
* @param value
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
private toBoolean;
|
|
25
|
+
/**
|
|
26
|
+
* 判断是否为number型
|
|
27
|
+
*
|
|
28
|
+
* @param value
|
|
29
|
+
* @returns
|
|
30
|
+
*/
|
|
31
|
+
private isNumber;
|
|
32
|
+
/**
|
|
33
|
+
* 转换number型
|
|
34
|
+
*
|
|
35
|
+
* @param value
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
private toNumber;
|
|
39
|
+
}
|
|
40
40
|
//# sourceMappingURL=XML.d.ts.map
|
package/dist/src/form/index.d.ts
CHANGED
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
import React, { PureComponent, ReactNode } from "react";
|
|
2
|
-
import { FormInstance } from "antd";
|
|
3
|
-
import XML from "@/entity/XML";
|
|
4
|
-
export default class FormDocument extends PureComponent<Design.HomeProps, Design.HomeState> {
|
|
5
|
-
state: {
|
|
6
|
-
stepIndex: number;
|
|
7
|
-
root: undefined;
|
|
8
|
-
loading: boolean;
|
|
9
|
-
};
|
|
10
|
-
form: React.RefObject<FormInstance>;
|
|
11
|
-
preview?: boolean;
|
|
12
|
-
layouts?: {};
|
|
13
|
-
styles: {};
|
|
14
|
-
showTitle?: boolean;
|
|
15
|
-
customComponents?: {
|
|
16
|
-
[name: string]: {};
|
|
17
|
-
};
|
|
18
|
-
constructor(props: Design.HomeProps);
|
|
19
|
-
componentDidMount(): void;
|
|
20
|
-
/**
|
|
21
|
-
* 销毁form时,重置数据
|
|
22
|
-
*/
|
|
23
|
-
componentWillUnmount(): void;
|
|
24
|
-
onValuesChange: (changedValues: any) => void;
|
|
25
|
-
/**
|
|
26
|
-
* 切换步骤
|
|
27
|
-
*
|
|
28
|
-
* @param stepIndex
|
|
29
|
-
*/
|
|
30
|
-
onStepIndex: (stepIndex: number) => void;
|
|
31
|
-
/**
|
|
32
|
-
* 设置组件状态
|
|
33
|
-
*
|
|
34
|
-
* @param attributes
|
|
35
|
-
*/
|
|
36
|
-
setComponentStatus(attributes: {
|
|
37
|
-
[name: string]: string | boolean;
|
|
38
|
-
}): void;
|
|
39
|
-
/**
|
|
40
|
-
* 加载组件
|
|
41
|
-
*
|
|
42
|
-
* @param xml
|
|
43
|
-
* @param Component
|
|
44
|
-
* @returns
|
|
45
|
-
*/
|
|
46
|
-
component(xml: XML, Component: any): import("react/jsx-runtime").JSX.Element;
|
|
47
|
-
/**
|
|
48
|
-
* 加载容器
|
|
49
|
-
*
|
|
50
|
-
* @param xml
|
|
51
|
-
* @returns
|
|
52
|
-
*/
|
|
53
|
-
container({ id, tag, attributes, text, children }: XML): import("react/jsx-runtime").JSX.Element | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* 加载控件
|
|
56
|
-
*
|
|
57
|
-
* @param xml
|
|
58
|
-
* @returns
|
|
59
|
-
*/
|
|
60
|
-
applet({ tag, attributes, cdata, children }: XML): {
|
|
61
|
-
tag: string;
|
|
62
|
-
children: ({
|
|
63
|
-
[name: string]: string | boolean;
|
|
64
|
-
} | {
|
|
65
|
-
rules: any;
|
|
66
|
-
})[] | undefined;
|
|
67
|
-
type?: undefined;
|
|
68
|
-
action?: undefined;
|
|
69
|
-
cdata?: undefined;
|
|
70
|
-
} | {
|
|
71
|
-
tag: string;
|
|
72
|
-
children: {
|
|
73
|
-
key: string | boolean;
|
|
74
|
-
label: string | undefined;
|
|
75
|
-
}[] | undefined;
|
|
76
|
-
type?: undefined;
|
|
77
|
-
action?: undefined;
|
|
78
|
-
cdata?: undefined;
|
|
79
|
-
} | {
|
|
80
|
-
tag: string;
|
|
81
|
-
type: string | boolean;
|
|
82
|
-
action: string | boolean;
|
|
83
|
-
children: {
|
|
84
|
-
[name: string]: string | boolean;
|
|
85
|
-
}[] | undefined;
|
|
86
|
-
cdata?: undefined;
|
|
87
|
-
} | {
|
|
88
|
-
tag: string;
|
|
89
|
-
cdata: string | undefined;
|
|
90
|
-
children?: undefined;
|
|
91
|
-
type?: undefined;
|
|
92
|
-
action?: undefined;
|
|
93
|
-
} | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* 加载子项
|
|
96
|
-
*
|
|
97
|
-
* @param xml
|
|
98
|
-
* @returns
|
|
99
|
-
*/
|
|
100
|
-
children: (xml: XML) => import("react/jsx-runtime").JSX.Element | {
|
|
101
|
-
tag: string;
|
|
102
|
-
children: ({
|
|
103
|
-
[name: string]: string | boolean;
|
|
104
|
-
} | {
|
|
105
|
-
rules: any;
|
|
106
|
-
})[] | undefined;
|
|
107
|
-
type?: undefined;
|
|
108
|
-
action?: undefined;
|
|
109
|
-
cdata?: undefined;
|
|
110
|
-
} | {
|
|
111
|
-
tag: string;
|
|
112
|
-
children: {
|
|
113
|
-
key: string | boolean;
|
|
114
|
-
label: string | undefined;
|
|
115
|
-
}[] | undefined;
|
|
116
|
-
type?: undefined;
|
|
117
|
-
action?: undefined;
|
|
118
|
-
cdata?: undefined;
|
|
119
|
-
} | {
|
|
120
|
-
tag: string;
|
|
121
|
-
type: string | boolean;
|
|
122
|
-
action: string | boolean;
|
|
123
|
-
children: {
|
|
124
|
-
[name: string]: string | boolean;
|
|
125
|
-
}[] | undefined;
|
|
126
|
-
cdata?: undefined;
|
|
127
|
-
} | {
|
|
128
|
-
tag: string;
|
|
129
|
-
cdata: string | undefined;
|
|
130
|
-
children?: undefined;
|
|
131
|
-
type?: undefined;
|
|
132
|
-
action?: undefined;
|
|
133
|
-
} | undefined;
|
|
134
|
-
render(): ReactNode;
|
|
135
|
-
}
|
|
1
|
+
import React, { PureComponent, ReactNode } from "react";
|
|
2
|
+
import { FormInstance } from "antd";
|
|
3
|
+
import XML from "@/entity/XML";
|
|
4
|
+
export default class FormDocument extends PureComponent<Design.HomeProps, Design.HomeState> {
|
|
5
|
+
state: {
|
|
6
|
+
stepIndex: number;
|
|
7
|
+
root: undefined;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
};
|
|
10
|
+
form: React.RefObject<FormInstance>;
|
|
11
|
+
preview?: boolean;
|
|
12
|
+
layouts?: {};
|
|
13
|
+
styles: {};
|
|
14
|
+
showTitle?: boolean;
|
|
15
|
+
customComponents?: {
|
|
16
|
+
[name: string]: {};
|
|
17
|
+
};
|
|
18
|
+
constructor(props: Design.HomeProps);
|
|
19
|
+
componentDidMount(): void;
|
|
20
|
+
/**
|
|
21
|
+
* 销毁form时,重置数据
|
|
22
|
+
*/
|
|
23
|
+
componentWillUnmount(): void;
|
|
24
|
+
onValuesChange: (changedValues: any) => void;
|
|
25
|
+
/**
|
|
26
|
+
* 切换步骤
|
|
27
|
+
*
|
|
28
|
+
* @param stepIndex
|
|
29
|
+
*/
|
|
30
|
+
onStepIndex: (stepIndex: number) => void;
|
|
31
|
+
/**
|
|
32
|
+
* 设置组件状态
|
|
33
|
+
*
|
|
34
|
+
* @param attributes
|
|
35
|
+
*/
|
|
36
|
+
setComponentStatus(attributes: {
|
|
37
|
+
[name: string]: string | boolean;
|
|
38
|
+
}): void;
|
|
39
|
+
/**
|
|
40
|
+
* 加载组件
|
|
41
|
+
*
|
|
42
|
+
* @param xml
|
|
43
|
+
* @param Component
|
|
44
|
+
* @returns
|
|
45
|
+
*/
|
|
46
|
+
component(xml: XML, Component: any): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
/**
|
|
48
|
+
* 加载容器
|
|
49
|
+
*
|
|
50
|
+
* @param xml
|
|
51
|
+
* @returns
|
|
52
|
+
*/
|
|
53
|
+
container({ id, tag, attributes, text, children }: XML): import("react/jsx-runtime").JSX.Element | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* 加载控件
|
|
56
|
+
*
|
|
57
|
+
* @param xml
|
|
58
|
+
* @returns
|
|
59
|
+
*/
|
|
60
|
+
applet({ tag, attributes, cdata, children }: XML): {
|
|
61
|
+
tag: string;
|
|
62
|
+
children: ({
|
|
63
|
+
[name: string]: string | boolean;
|
|
64
|
+
} | {
|
|
65
|
+
rules: any;
|
|
66
|
+
})[] | undefined;
|
|
67
|
+
type?: undefined;
|
|
68
|
+
action?: undefined;
|
|
69
|
+
cdata?: undefined;
|
|
70
|
+
} | {
|
|
71
|
+
tag: string;
|
|
72
|
+
children: {
|
|
73
|
+
key: string | boolean;
|
|
74
|
+
label: string | undefined;
|
|
75
|
+
}[] | undefined;
|
|
76
|
+
type?: undefined;
|
|
77
|
+
action?: undefined;
|
|
78
|
+
cdata?: undefined;
|
|
79
|
+
} | {
|
|
80
|
+
tag: string;
|
|
81
|
+
type: string | boolean;
|
|
82
|
+
action: string | boolean;
|
|
83
|
+
children: {
|
|
84
|
+
[name: string]: string | boolean;
|
|
85
|
+
}[] | undefined;
|
|
86
|
+
cdata?: undefined;
|
|
87
|
+
} | {
|
|
88
|
+
tag: string;
|
|
89
|
+
cdata: string | undefined;
|
|
90
|
+
children?: undefined;
|
|
91
|
+
type?: undefined;
|
|
92
|
+
action?: undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* 加载子项
|
|
96
|
+
*
|
|
97
|
+
* @param xml
|
|
98
|
+
* @returns
|
|
99
|
+
*/
|
|
100
|
+
children: (xml: XML) => import("react/jsx-runtime").JSX.Element | {
|
|
101
|
+
tag: string;
|
|
102
|
+
children: ({
|
|
103
|
+
[name: string]: string | boolean;
|
|
104
|
+
} | {
|
|
105
|
+
rules: any;
|
|
106
|
+
})[] | undefined;
|
|
107
|
+
type?: undefined;
|
|
108
|
+
action?: undefined;
|
|
109
|
+
cdata?: undefined;
|
|
110
|
+
} | {
|
|
111
|
+
tag: string;
|
|
112
|
+
children: {
|
|
113
|
+
key: string | boolean;
|
|
114
|
+
label: string | undefined;
|
|
115
|
+
}[] | undefined;
|
|
116
|
+
type?: undefined;
|
|
117
|
+
action?: undefined;
|
|
118
|
+
cdata?: undefined;
|
|
119
|
+
} | {
|
|
120
|
+
tag: string;
|
|
121
|
+
type: string | boolean;
|
|
122
|
+
action: string | boolean;
|
|
123
|
+
children: {
|
|
124
|
+
[name: string]: string | boolean;
|
|
125
|
+
}[] | undefined;
|
|
126
|
+
cdata?: undefined;
|
|
127
|
+
} | {
|
|
128
|
+
tag: string;
|
|
129
|
+
cdata: string | undefined;
|
|
130
|
+
children?: undefined;
|
|
131
|
+
type?: undefined;
|
|
132
|
+
action?: undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
render(): ReactNode;
|
|
135
|
+
}
|
|
136
136
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default } from "./form";
|
|
2
|
-
export { defineConfig } from "./config";
|
|
3
|
-
export { DesignContext } from "./context";
|
|
4
|
-
export { UIListComponent, UIComponent } from "./service";
|
|
1
|
+
export { default } from "./form";
|
|
2
|
+
export { defineConfig } from "./config";
|
|
3
|
+
export { DesignContext } from "./context";
|
|
4
|
+
export { UIListComponent, UIComponent } from "./service";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/** 文本预览 */
|
|
2
|
-
export declare const PreviewText: ({ value, type, style, onChange }: Design.PreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
/** 时长预览 */
|
|
4
|
-
export declare const PreviewDuration: ({ value, style, onChange }: any) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
/** 切换预览 */
|
|
6
|
-
export declare const PreviewSwitch: ({ checked, style, onChange }: any) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
/** 列表预览 */
|
|
8
|
-
export declare const PreviewList: ({ value, list, style, onChange }: any) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
/** 文件预览 */
|
|
10
|
-
export declare const PreviewFile: ({ fileList }: {
|
|
11
|
-
fileList: any[];
|
|
12
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export declare const PreviewImage: ({ fileList, width, height, style }: {
|
|
14
|
-
fileList: any[];
|
|
15
|
-
width: number;
|
|
16
|
-
height: number;
|
|
17
|
-
style?: object | undefined;
|
|
18
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
/** 文本预览 */
|
|
2
|
+
export declare const PreviewText: ({ value, type, style, onChange }: Design.PreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
/** 时长预览 */
|
|
4
|
+
export declare const PreviewDuration: ({ value, style, onChange }: any) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
/** 切换预览 */
|
|
6
|
+
export declare const PreviewSwitch: ({ checked, style, onChange }: any) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
/** 列表预览 */
|
|
8
|
+
export declare const PreviewList: ({ value, list, style, onChange }: any) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
/** 文件预览 */
|
|
10
|
+
export declare const PreviewFile: ({ fileList }: {
|
|
11
|
+
fileList: any[];
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const PreviewImage: ({ fileList, width, height, style }: {
|
|
14
|
+
fileList: any[];
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
style?: object | undefined;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import UIComponent from "./UIComponent";
|
|
3
|
-
interface ProComponentProps extends Design.ComponentProps {
|
|
4
|
-
Component: any;
|
|
5
|
-
}
|
|
6
|
-
export default class ProComponent extends UIComponent<ProComponentProps> {
|
|
7
|
-
componentDidMount(): void;
|
|
8
|
-
initValue: () => void;
|
|
9
|
-
onChange: (value: string) => void;
|
|
10
|
-
render(): React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import UIComponent from "./UIComponent";
|
|
3
|
+
interface ProComponentProps extends Design.ComponentProps {
|
|
4
|
+
Component: any;
|
|
5
|
+
}
|
|
6
|
+
export default class ProComponent extends UIComponent<ProComponentProps> {
|
|
7
|
+
componentDidMount(): void;
|
|
8
|
+
initValue: () => void;
|
|
9
|
+
onChange: (value: string) => void;
|
|
10
|
+
render(): React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
13
13
|
//# sourceMappingURL=ProComponent.d.ts.map
|
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DesignContext } from "@/context";
|
|
3
|
-
export default class UIComponent<P extends Design.ComponentProps, S = {}> extends React.PureComponent<P, S> {
|
|
4
|
-
context: React.ContextType<typeof DesignContext>;
|
|
5
|
-
styleWrapper: {
|
|
6
|
-
style: {
|
|
7
|
-
borderBottom: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* 设置字段默认值
|
|
12
|
-
*
|
|
13
|
-
* @param defaultValue
|
|
14
|
-
*/
|
|
15
|
-
setDefaultValue<T>(defaultValue: T): void;
|
|
16
|
-
/**
|
|
17
|
-
* 设置当前字段值
|
|
18
|
-
*
|
|
19
|
-
* @param value
|
|
20
|
-
*/
|
|
21
|
-
setFieldValue<T>(value: T | undefined): void;
|
|
22
|
-
/**
|
|
23
|
-
* 清楚当前值
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
cleanFieldValue(): void;
|
|
27
|
-
/**
|
|
28
|
-
* 获得当前值
|
|
29
|
-
*
|
|
30
|
-
* @returns
|
|
31
|
-
*/
|
|
32
|
-
getFieldValue<T>(): T | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* 获得所有form对象值
|
|
35
|
-
*
|
|
36
|
-
* @returns
|
|
37
|
-
*/
|
|
38
|
-
getFieldsValue(): object | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* 获得标签
|
|
41
|
-
*
|
|
42
|
-
* @returns
|
|
43
|
-
*/
|
|
44
|
-
getLabel(): import("react/jsx-runtime").JSX.Element | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* 获得item信息
|
|
47
|
-
*
|
|
48
|
-
* @returns
|
|
49
|
-
*/
|
|
50
|
-
getItem(): {
|
|
51
|
-
itemProps: {};
|
|
52
|
-
itemLayouts: {};
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* 样式
|
|
56
|
-
*
|
|
57
|
-
* @returns
|
|
58
|
-
*/
|
|
59
|
-
getStyles(): {
|
|
60
|
-
styles: {};
|
|
61
|
-
itemStyles: {};
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* 条件
|
|
65
|
-
*
|
|
66
|
-
* @param defaultHide
|
|
67
|
-
* @param children
|
|
68
|
-
* @returns
|
|
69
|
-
*/
|
|
70
|
-
display(): boolean;
|
|
71
|
-
/**
|
|
72
|
-
* 规则
|
|
73
|
-
*
|
|
74
|
-
* @param preview
|
|
75
|
-
* @param children
|
|
76
|
-
* @returns
|
|
77
|
-
*/
|
|
78
|
-
rules(): Design.Rule[];
|
|
79
|
-
/**
|
|
80
|
-
* 可选内容列表
|
|
81
|
-
*
|
|
82
|
-
* @param children
|
|
83
|
-
* @returns
|
|
84
|
-
*/
|
|
85
|
-
collectionList(): string[] | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* 计算值
|
|
88
|
-
*
|
|
89
|
-
* @param children
|
|
90
|
-
* @returns
|
|
91
|
-
*/
|
|
92
|
-
onComputeValue(): void;
|
|
93
|
-
/**
|
|
94
|
-
* 初始化值
|
|
95
|
-
*
|
|
96
|
-
* @param value
|
|
97
|
-
*/
|
|
98
|
-
initValue(value?: string): void;
|
|
99
|
-
/**
|
|
100
|
-
* 请求网络
|
|
101
|
-
*
|
|
102
|
-
* @param remote
|
|
103
|
-
* @returns
|
|
104
|
-
*/
|
|
105
|
-
request: (remote: string, args?: object) => Promise<any>;
|
|
106
|
-
}
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DesignContext } from "@/context";
|
|
3
|
+
export default class UIComponent<P extends Design.ComponentProps, S = {}> extends React.PureComponent<P, S> {
|
|
4
|
+
context: React.ContextType<typeof DesignContext>;
|
|
5
|
+
styleWrapper: {
|
|
6
|
+
style: {
|
|
7
|
+
borderBottom: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* 设置字段默认值
|
|
12
|
+
*
|
|
13
|
+
* @param defaultValue
|
|
14
|
+
*/
|
|
15
|
+
setDefaultValue<T>(defaultValue: T): void;
|
|
16
|
+
/**
|
|
17
|
+
* 设置当前字段值
|
|
18
|
+
*
|
|
19
|
+
* @param value
|
|
20
|
+
*/
|
|
21
|
+
setFieldValue<T>(value: T | undefined): void;
|
|
22
|
+
/**
|
|
23
|
+
* 清楚当前值
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
cleanFieldValue(): void;
|
|
27
|
+
/**
|
|
28
|
+
* 获得当前值
|
|
29
|
+
*
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
getFieldValue<T>(): T | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* 获得所有form对象值
|
|
35
|
+
*
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
getFieldsValue(): object | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* 获得标签
|
|
41
|
+
*
|
|
42
|
+
* @returns
|
|
43
|
+
*/
|
|
44
|
+
getLabel(): import("react/jsx-runtime").JSX.Element | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* 获得item信息
|
|
47
|
+
*
|
|
48
|
+
* @returns
|
|
49
|
+
*/
|
|
50
|
+
getItem(): {
|
|
51
|
+
itemProps: {};
|
|
52
|
+
itemLayouts: {};
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* 样式
|
|
56
|
+
*
|
|
57
|
+
* @returns
|
|
58
|
+
*/
|
|
59
|
+
getStyles(): {
|
|
60
|
+
styles: {};
|
|
61
|
+
itemStyles: {};
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* 条件
|
|
65
|
+
*
|
|
66
|
+
* @param defaultHide
|
|
67
|
+
* @param children
|
|
68
|
+
* @returns
|
|
69
|
+
*/
|
|
70
|
+
display(): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* 规则
|
|
73
|
+
*
|
|
74
|
+
* @param preview
|
|
75
|
+
* @param children
|
|
76
|
+
* @returns
|
|
77
|
+
*/
|
|
78
|
+
rules(): Design.Rule[];
|
|
79
|
+
/**
|
|
80
|
+
* 可选内容列表
|
|
81
|
+
*
|
|
82
|
+
* @param children
|
|
83
|
+
* @returns
|
|
84
|
+
*/
|
|
85
|
+
collectionList(): string[] | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* 计算值
|
|
88
|
+
*
|
|
89
|
+
* @param children
|
|
90
|
+
* @returns
|
|
91
|
+
*/
|
|
92
|
+
onComputeValue(): void;
|
|
93
|
+
/**
|
|
94
|
+
* 初始化值
|
|
95
|
+
*
|
|
96
|
+
* @param value
|
|
97
|
+
*/
|
|
98
|
+
initValue(value?: string): void;
|
|
99
|
+
/**
|
|
100
|
+
* 请求网络
|
|
101
|
+
*
|
|
102
|
+
* @param remote
|
|
103
|
+
* @returns
|
|
104
|
+
*/
|
|
105
|
+
request: (remote: string, args?: object) => Promise<any>;
|
|
106
|
+
}
|
|
107
107
|
//# sourceMappingURL=UIComponent.d.ts.map
|