antd-form-document 0.2.4 → 0.2.6
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 +2 -2
- package/dist/components/SuperUpload/{ChunkUpload.d.ts → Chunk.d.ts} +3 -3
- package/dist/components/SuperUpload/Chunk.d.ts.map +1 -0
- package/dist/containers/Collapse/index.d.ts.map +1 -1
- package/dist/containers/Content/index.d.ts.map +1 -1
- package/dist/containers/Divider/index.d.ts.map +1 -1
- package/dist/containers/Row/index.d.ts.map +1 -1
- package/dist/containers/Steps/index.d.ts.map +1 -1
- package/dist/form/index.d.ts +39 -3
- package/dist/form/index.d.ts.map +1 -1
- package/dist/index.tsx +1 -1
- package/dist/index.tsx.map +1 -1
- package/dist/preview/index.d.ts +5 -0
- package/dist/preview/index.d.ts.map +1 -1
- package/dist/service/UIComponent.d.ts +0 -7
- package/dist/service/UIComponent.d.ts.map +1 -1
- package/dist/service/WidgetComponent.d.ts.map +1 -1
- package/dist/utils/request.d.ts.map +1 -1
- package/dist/utils/style.d.ts +8 -0
- package/dist/utils/style.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/components/SuperUpload/ChunkUpload.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -1066,7 +1066,7 @@ const App = () => {
|
|
|
1066
1066
|
</Collection>
|
|
1067
1067
|
```
|
|
1068
1068
|
|
|
1069
|
-
|
|
1069
|
+
**注:** 仅`Select`、`Checkbox`、`Radio`组件支持该子控件
|
|
1070
1070
|
|
|
1071
1071
|
|
|
1072
1072
|
|
|
@@ -1247,7 +1247,7 @@ export default defineConfig({
|
|
|
1247
1247
|
**例:**
|
|
1248
1248
|
|
|
1249
1249
|
```xml
|
|
1250
|
-
<UploadList code="uploadList" title="附件"
|
|
1250
|
+
<UploadList code="uploadList" title="附件" labelCol="4" wrapperCol="20" fileType="application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/pdf" fileSize="20MB" maxCount="5" fileTypeMessage="上传文件类型,仅支持word、pdf类型!">
|
|
1251
1251
|
<Validates>
|
|
1252
1252
|
<Validate required="true" message="此项为必填项" />
|
|
1253
1253
|
</Validates>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 上传 Upload.js
|
|
3
3
|
*/
|
|
4
|
-
declare class
|
|
4
|
+
declare class Chunk {
|
|
5
5
|
spark: any;
|
|
6
6
|
percents: number[];
|
|
7
7
|
progress?: (percent: number) => void;
|
|
@@ -112,5 +112,5 @@ declare class ChunkUpload {
|
|
|
112
112
|
*/
|
|
113
113
|
completeProgress(step?: boolean): Promise<void>;
|
|
114
114
|
}
|
|
115
|
-
export default
|
|
116
|
-
//# sourceMappingURL=
|
|
115
|
+
export default Chunk;
|
|
116
|
+
//# sourceMappingURL=Chunk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chunk.d.ts","sourceRoot":"","sources":["../../../src/components/SuperUpload/Chunk.ts"],"names":[],"mappings":"AAsBA;;GAEG;AACH,cAAM,KAAK;IACT,KAAK,MAA8B;IACnC,QAAQ,EAAE,MAAM,EAAE,CAAmB;IACrC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IAE5B,SAAS,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAA;KAAE,CAAM;IAE3D,OAAO,SAAC;IACR,SAAS,SAAC;IACV,UAAU,SAAC;IAEX,SAAS,EAAE,OAAO,CAAS;IAC3B,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS,EAAG,CAAM;IAC1C,cAAc,EAAE,MAAM,CAAK;gBAEf,EAAE,SAA4B,EAAE,OAAW,EAAE,UAAc,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU;IAMjG;;;;;OAKG;IACH,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI;IAInD;;;;OAIG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM;IAIlB;;;;OAIG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,GAAU;IAO3C;;;;;OAKG;IACH,MAAM,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM;IAIpC;;;;;OAKG;IACH,OAAO,CAAC,IAAI,EAAE,IAAI;IAelB;;;;;;OAMG;IACF,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAMzD;;;;KAIC;IACD,WAAW,CAAC,OAAO,EAAE,MAAM;IAI7B;;;;OAIG;IACG,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ;IAetC;;;;;;OAMG;IACH,YAAY;IA6BZ;;;;;;OAMG;IACG,WAAW,CAAC,UAAU,EAAE,MAAM;IAuBpC;;;;;;OAMG;IACG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS;IAuB3C;;;OAGG;IACG,OAAO;IAOb;;OAEG;IACG,aAAa;IAcnB;;;MAGE;IACI,UAAU,CAAC,IAAI,CAAC,EAAE,OAAO;IAU/B;;OAEG;IACG,gBAAgB,CAAC,IAAI,CAAC,EAAE,OAAO;CAiBtC;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/Collapse/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAC;4GAY8B,GAAG;AAAxF,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/Collapse/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAC;4GAY8B,GAAG;AAAxF,wBAqBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/Content/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;qGAM0B,GAAG;AAA1E,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/Content/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;qGAM0B,GAAG;AAA1E,wBAcG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/Divider/index.tsx"],"names":[],"mappings":";4DAGsE,GAAG;AAAzE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/Divider/index.tsx"],"names":[],"mappings":";4DAGsE,GAAG;AAAzE,wBAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/Row/index.tsx"],"names":[],"mappings":";+CAGsC,GAAG;AAAzC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/Row/index.tsx"],"names":[],"mappings":";+CAGsC,GAAG;AAAzC,wBAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/Steps/index.tsx"],"names":[],"mappings":";2EAGkE,GAAG;AAArE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/Steps/index.tsx"],"names":[],"mappings":";2EAGkE,GAAG;AAArE,wBAiBC"}
|
package/dist/form/index.d.ts
CHANGED
|
@@ -4,24 +4,54 @@ import XML from "@/entity/XML";
|
|
|
4
4
|
export default class FormDocument extends PureComponent<Design.HomeProps, Design.HomeState> {
|
|
5
5
|
state: {
|
|
6
6
|
stepIndex: number;
|
|
7
|
+
root: undefined;
|
|
7
8
|
};
|
|
8
9
|
form: React.RefObject<FormInstance>;
|
|
9
|
-
|
|
10
|
-
preview: boolean;
|
|
10
|
+
preview?: boolean;
|
|
11
11
|
layouts?: {};
|
|
12
12
|
styles: {};
|
|
13
|
-
showTitle
|
|
13
|
+
showTitle?: boolean;
|
|
14
14
|
customComponents?: {
|
|
15
15
|
[name: string]: {};
|
|
16
16
|
};
|
|
17
17
|
constructor(props: Design.HomeProps);
|
|
18
|
+
componentDidMount(): void;
|
|
18
19
|
onValuesChange: (changedValues: any) => void;
|
|
20
|
+
/**
|
|
21
|
+
* 切换步骤
|
|
22
|
+
*
|
|
23
|
+
* @param stepIndex
|
|
24
|
+
*/
|
|
19
25
|
onStepIndex: (stepIndex: number) => void;
|
|
26
|
+
/**
|
|
27
|
+
* 设置组件状态
|
|
28
|
+
*
|
|
29
|
+
* @param attributes
|
|
30
|
+
*/
|
|
20
31
|
setComponentStatus(attributes: {
|
|
21
32
|
[name: string]: string | boolean;
|
|
22
33
|
}): void;
|
|
34
|
+
/**
|
|
35
|
+
* 加载组件
|
|
36
|
+
*
|
|
37
|
+
* @param xml
|
|
38
|
+
* @param Component
|
|
39
|
+
* @returns
|
|
40
|
+
*/
|
|
23
41
|
component(xml: XML, Component: any): JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* 加载容器
|
|
44
|
+
*
|
|
45
|
+
* @param xml
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
24
48
|
container({ id, tag, attributes, text, children }: XML): JSX.Element | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* 加载控件
|
|
51
|
+
*
|
|
52
|
+
* @param xml
|
|
53
|
+
* @returns
|
|
54
|
+
*/
|
|
25
55
|
applet({ tag, attributes, cdata, children }: XML): {
|
|
26
56
|
tag: string;
|
|
27
57
|
children: ({
|
|
@@ -56,6 +86,12 @@ export default class FormDocument extends PureComponent<Design.HomeProps, Design
|
|
|
56
86
|
type?: undefined;
|
|
57
87
|
action?: undefined;
|
|
58
88
|
} | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* 加载子项
|
|
91
|
+
*
|
|
92
|
+
* @param xml
|
|
93
|
+
* @returns
|
|
94
|
+
*/
|
|
59
95
|
children: (xml: XML) => JSX.Element | {
|
|
60
96
|
tag: string;
|
|
61
97
|
children: ({
|
package/dist/form/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/form/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAoB,YAAY,EAAY,MAAM,MAAM,CAAC;AAGhE,OAAO,GAAG,MAAM,cAAc,CAAC;AAU/B,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,aAAa,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC;IAEzF,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/form/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAoB,YAAY,EAAY,MAAM,MAAM,CAAC;AAGhE,OAAO,GAAG,MAAM,cAAc,CAAC;AAU/B,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,aAAa,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC;IAEzF,KAAK;;;MAGH;IAEF,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,EAAE,CAAC;IACb,MAAM,EAAE,EAAE,CAAC;IACX,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE;QAAC,CAAC,IAAI,EAAC,MAAM,GAAG,EAAE,CAAA;KAAC,CAAC;gBAE3B,KAAK,EAAE,MAAM,CAAC,SAAS;IAMnC,iBAAiB,IAAI,IAAI;IA2BzB,cAAc,kBAAmB,GAAG,UAIlC;IAEF;;;;OAIG;IACH,WAAW,cAAe,MAAM,UAI/B;IAED;;;;OAIG;IACH,kBAAkB,CAAC,UAAU,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;KAAE;IAwBnE;;;;;;OAMG;IACH,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG;IAMlC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,GAAG;IAqBtD;;;;;OAKG;IACH,MAAM,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6BhD;;;;;OAKG;IACH,QAAQ,QAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUnB;IAED,MAAM,IAAI,SAAS;CAoBpB"}
|