antd-form-document 0.1.0
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/.yarnignore +9 -0
- package/README.md +1133 -0
- package/dist/applets/index.d.ts +35 -0
- package/dist/applets/index.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +10 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/DatePicker/index.d.ts +7 -0
- package/dist/components/DatePicker/index.d.ts.map +1 -0
- package/dist/components/Duration/index.d.ts +8 -0
- package/dist/components/Duration/index.d.ts.map +1 -0
- package/dist/components/Editor/index.d.ts +7 -0
- package/dist/components/Editor/index.d.ts.map +1 -0
- package/dist/components/InputNumber/index.d.ts +7 -0
- package/dist/components/InputNumber/index.d.ts.map +1 -0
- package/dist/components/Label/index.d.ts +6 -0
- package/dist/components/Label/index.d.ts.map +1 -0
- package/dist/components/Radio/index.d.ts +10 -0
- package/dist/components/Radio/index.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +11 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Switch/index.d.ts +7 -0
- package/dist/components/Switch/index.d.ts.map +1 -0
- package/dist/components/Table/index.d.ts +7 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Text/index.d.ts +7 -0
- package/dist/components/Text/index.d.ts.map +1 -0
- package/dist/components/TextArea/index.d.ts +7 -0
- package/dist/components/TextArea/index.d.ts.map +1 -0
- package/dist/components/TimePicker/index.d.ts +7 -0
- package/dist/components/TimePicker/index.d.ts.map +1 -0
- package/dist/components/Tooltip/index.d.ts +6 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/components/Upload/index.d.ts +6 -0
- package/dist/components/Upload/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +16 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/config.d.ts +20 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/containers/Col/index.d.ts +4 -0
- package/dist/containers/Col/index.d.ts.map +1 -0
- package/dist/containers/Collapse/index.d.ts +4 -0
- package/dist/containers/Collapse/index.d.ts.map +1 -0
- package/dist/containers/Content/index.d.ts +4 -0
- package/dist/containers/Content/index.d.ts.map +1 -0
- package/dist/containers/Divider/index.d.ts +4 -0
- package/dist/containers/Divider/index.d.ts.map +1 -0
- package/dist/containers/Row/index.d.ts +4 -0
- package/dist/containers/Row/index.d.ts.map +1 -0
- package/dist/containers/Steps/index.d.ts +4 -0
- package/dist/containers/Steps/index.d.ts.map +1 -0
- package/dist/containers/index.d.ts +7 -0
- package/dist/containers/index.d.ts.map +1 -0
- package/dist/context.d.ts +3 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/entity/Meta.d.ts +40 -0
- package/dist/entity/Meta.d.ts.map +1 -0
- package/dist/form/index.d.ts +95 -0
- package/dist/form/index.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.tsx +4 -0
- package/dist/index.tsx.map +1 -0
- package/dist/preview/index.d.ts +7 -0
- package/dist/preview/index.d.ts.map +1 -0
- package/dist/service/ProComponent.d.ts +13 -0
- package/dist/service/ProComponent.d.ts.map +1 -0
- package/dist/service/UIComponent.d.ts +102 -0
- package/dist/service/UIComponent.d.ts.map +1 -0
- package/dist/service/UIListComponent.d.ts +17 -0
- package/dist/service/UIListComponent.d.ts.map +1 -0
- package/dist/service/WidgetComponent.d.ts +4 -0
- package/dist/service/WidgetComponent.d.ts.map +1 -0
- package/dist/service/index.d.ts +5 -0
- package/dist/service/index.d.ts.map +1 -0
- package/dist/utils/request.d.ts +4 -0
- package/dist/utils/request.d.ts.map +1 -0
- package/dist/utils/xml.d.ts +7 -0
- package/dist/utils/xml.d.ts.map +1 -0
- package/package.json +60 -0
- package/yarn-error.log +3919 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* validate 验证
|
|
3
|
+
*
|
|
4
|
+
* @param param0
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare const validate: ({ type, required, minlength, maxlength, min, max, pattern, message }: any) => Design.Rule;
|
|
8
|
+
/**
|
|
9
|
+
* condition 条件
|
|
10
|
+
*
|
|
11
|
+
* @param param0
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare const condition: (fields: object | undefined, preview: boolean) => ({ test }: {
|
|
15
|
+
test: string;
|
|
16
|
+
}) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* collection 集合
|
|
19
|
+
*
|
|
20
|
+
* @param param0
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export declare const collection: (fields: object | undefined, { cdata }: {
|
|
24
|
+
cdata: string;
|
|
25
|
+
}) => Array<string>;
|
|
26
|
+
/**
|
|
27
|
+
* compute 计算
|
|
28
|
+
*
|
|
29
|
+
* @param param0
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
export declare const compute: (fields: object | undefined, { cdata }: {
|
|
33
|
+
cdata: string;
|
|
34
|
+
}) => Array<string> | string | undefined;
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/applets/index.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,yEAAqF,GAAG,KAAG,OAAO,IAiBtH,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,WAAY,MAAM,GAAG,SAAS,WAAW,OAAO;UAAwB,MAAM;MAAK,OAaxG,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,WAAY,MAAM,GAAG,SAAS;WAAsB,MAAM;MAAK,MAAM,MAAM,CAajG,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,OAAO,WAAY,MAAM,GAAG,SAAS;WAAsB,MAAM;MAAK,MAAM,MAAM,CAAC,GAAG,MAAM,GAAG,SAa3G,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIListComponent } from '@/service';
|
|
3
|
+
export default class CheckBox extends UIListComponent<Design.RemoteProps, Design.ListState> {
|
|
4
|
+
state: {
|
|
5
|
+
list: never[];
|
|
6
|
+
};
|
|
7
|
+
componentDidMount(): void;
|
|
8
|
+
render(): React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAmB,MAAM,WAAW,CAAC;AAE7D,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,eAAe,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC;IACzF,KAAK;;MAEJ;IAED,iBAAiB,IAAI,IAAI;IAczB,MAAM,IAAI,KAAK,CAAC,SAAS;CAiC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,WAAW,EAAmB,MAAM,WAAW,CAAC;AAEzD,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAEtE,iBAAiB,IAAI,IAAI;IAIzB,MAAM,IAAI,KAAK,CAAC,SAAS;CAwB1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIComponent } from '@/service';
|
|
3
|
+
import './index.css';
|
|
4
|
+
export default class Duration extends UIComponent<Design.ComponentProps> {
|
|
5
|
+
componentDidMount(): void;
|
|
6
|
+
render(): React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Duration/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,WAAW,EAAmB,MAAM,WAAW,CAAC;AACzD,OAAO,aAAa,CAAC;AAErB,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC;IAEtE,iBAAiB,IAAI,IAAI;IAIzB,MAAM,IAAI,KAAK,CAAC,SAAS;CAwB1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC;IAEpE,iBAAiB,IAAI,IAAI;IAIzB,MAAM,IAAI,KAAK,CAAC,SAAS;CAyB1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/InputNumber/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC;IAEtE,iBAAiB,IAAI,IAAI;IAIzB,MAAM,IAAI,KAAK,CAAC,SAAS;CAgD1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Label/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC;IAEnE,MAAM,IAAI,KAAK,CAAC,SAAS;CAmB1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIListComponent } from '@/service';
|
|
3
|
+
export default class RadioButton extends UIListComponent<Design.Radio.Props, Design.ListState> {
|
|
4
|
+
state: {
|
|
5
|
+
list: never[];
|
|
6
|
+
};
|
|
7
|
+
componentDidMount(): void;
|
|
8
|
+
render(): React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAmB,MAAM,WAAW,CAAC;AAE7D,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC;IAC5F,KAAK;;MAEJ;IAED,iBAAiB,IAAI,IAAI;IAczB,MAAM,IAAI,KAAK,CAAC,SAAS;CAiC1B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIListComponent } from '@/service';
|
|
3
|
+
export default class SelectList extends UIListComponent<Design.RemoteProps, Design.ListState> {
|
|
4
|
+
state: {
|
|
5
|
+
list: never[];
|
|
6
|
+
};
|
|
7
|
+
componentDidMount(): void;
|
|
8
|
+
initValue(): void;
|
|
9
|
+
render(): React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAmB,MAAM,WAAW,CAAC;AAG7D,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,eAAe,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC;IAC3F,KAAK;;MAEJ;IAED,iBAAiB,IAAI,IAAI;IAczB,SAAS;IAWT,MAAM,IAAI,KAAK,CAAC,SAAS;CAsC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC;IAE1E,iBAAiB,IAAI,IAAI;IAIzB,MAAM,IAAI,KAAK,CAAC,SAAS;CAyB1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,eAAe,EAAmB,MAAM,WAAW,CAAC;AAG7D,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,eAAe,CAAC,MAAM,CAAC,cAAc,CAAC;IAE3E,UAAU;IAWV,MAAM,IAAI,KAAK,CAAC,SAAS;CAwB1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC;IAElE,iBAAiB,IAAI,IAAI;IAIzB,MAAM,IAAI,KAAK,CAAC,SAAS;CAwB1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC;IAEtE,iBAAiB,IAAI,IAAI;IAIzB,MAAM,IAAI,KAAK,CAAC,SAAS;CAwB1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TimePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAmB,MAAM,WAAW,CAAC;AAGzD,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAEtE,iBAAiB,IAAI,IAAI;IAIzB,MAAM,IAAI,KAAK,CAAC,SAAS;CAwB1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC;IAErE,MAAM,IAAI,KAAK,CAAC,SAAS;CAc1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Upload/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,eAAe,EAAmB,MAAM,WAAW,CAAC;AAa7D,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;IAExE,MAAM,IAAI,KAAK,CAAC,SAAS;CAyB1B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { default as Label } from "./Label";
|
|
2
|
+
export { default as Tooltip } from "./Tooltip";
|
|
3
|
+
export { default as Text } from "./Text";
|
|
4
|
+
export { default as TextArea } from "./TextArea";
|
|
5
|
+
export { default as Number } from "./InputNumber";
|
|
6
|
+
export { default as Editor } from "./Editor";
|
|
7
|
+
export { default as Select } from "./Select";
|
|
8
|
+
export { default as Checkbox } from "./Checkbox";
|
|
9
|
+
export { default as Radio } from "./Radio";
|
|
10
|
+
export { default as Switch } from "./Switch";
|
|
11
|
+
export { default as Duration } from "./Duration";
|
|
12
|
+
export { default as DatePicker } from "./DatePicker";
|
|
13
|
+
export { default as TimePicker } from "./TimePicker";
|
|
14
|
+
export { default as Upload } from "./Upload";
|
|
15
|
+
export { default as Table } from "./Table";
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare class DesignConfig {
|
|
2
|
+
readonly request: {
|
|
3
|
+
prefix: string;
|
|
4
|
+
headers: {};
|
|
5
|
+
params: {};
|
|
6
|
+
};
|
|
7
|
+
readonly file: {
|
|
8
|
+
listUrl: string;
|
|
9
|
+
downloadUrl: string;
|
|
10
|
+
uploadUrl: string;
|
|
11
|
+
extraData?: {};
|
|
12
|
+
};
|
|
13
|
+
readonly components?: any;
|
|
14
|
+
private constructor();
|
|
15
|
+
static init(conf?: Design.Config): DesignConfig;
|
|
16
|
+
}
|
|
17
|
+
declare let config: DesignConfig;
|
|
18
|
+
declare const defineConfig: (conf: Design.Config) => void;
|
|
19
|
+
export { defineConfig, config };
|
|
20
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,cAAM,YAAY;IAChB,QAAQ,CAAC,OAAO,EAAE;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,EAAE,CAAC;QACZ,MAAM,EAAE,EAAE,CAAC;KACZ,CAIA;IACD,QAAQ,CAAC,IAAI,EAAE;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,EAAE,CAAA;KACf,CAKA;IAED,QAAQ,CAAC,UAAU,CAAC,EAAE,GAAG,CAAA;IAEzB,OAAO;IASP,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM;CAGjC;AAED,QAAA,IAAI,MAAM,EAAE,YAAkC,CAAC;AAC/C,QAAA,MAAM,YAAY,SAAU,OAAO,MAAM,SAExC,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/Col/index.tsx"],"names":[],"mappings":";6CAGoC,GAAG;AAAvC,wBAMC"}
|
|
@@ -0,0 +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,wBAiCG"}
|
|
@@ -0,0 +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,wBAqBG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/Divider/index.tsx"],"names":[],"mappings":";4DAGsE,GAAG;AAAzE,wBAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/Row/index.tsx"],"names":[],"mappings":";+CAGsC,GAAG;AAAzC,wBAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/containers/Steps/index.tsx"],"names":[],"mappings":";2EAKkE,GAAG;AAArE,wBAcC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as Row } from "./Row";
|
|
2
|
+
export { default as Col } from "./Col";
|
|
3
|
+
export { default as Steps } from "./Steps";
|
|
4
|
+
export { default as Content } from "./Content";
|
|
5
|
+
export { default as Divider } from "./Divider";
|
|
6
|
+
export { default as Collapse } from "./Collapse";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/containers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,aAAa,+BAA0C,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export default class Meta {
|
|
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?: Meta[];
|
|
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
|
+
//# sourceMappingURL=Meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Meta.d.ts","sourceRoot":"","sources":["../../src/entity/Meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,IAAI;IACvB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;KAAE,CAAM;IAC/D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC;gBAEf,OAAO,EAAE,OAAO;IA8B5B;;;;;OAKG;IACH,OAAO,CAAC,SAAS;IAIjB;;;;;OAKG;IACH,OAAO,CAAC,SAAS;IAIjB;;;;;OAKG;IACH,OAAO,CAAC,QAAQ;IAIhB;;;;;OAKG;IACH,OAAO,CAAC,QAAQ;CAGjB"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import React, { PureComponent, ReactNode } from "react";
|
|
2
|
+
import { FormInstance } from "antd";
|
|
3
|
+
import Meta from "@/entity/Meta";
|
|
4
|
+
export default class FormDesign extends PureComponent<Design.HomeProps, Design.HomeState> {
|
|
5
|
+
state: {
|
|
6
|
+
stepIndex: number;
|
|
7
|
+
};
|
|
8
|
+
form: React.RefObject<FormInstance>;
|
|
9
|
+
root: Meta;
|
|
10
|
+
preview: boolean;
|
|
11
|
+
layouts?: {};
|
|
12
|
+
styles: {};
|
|
13
|
+
showTitle: boolean;
|
|
14
|
+
customComponents?: {
|
|
15
|
+
[name: string]: {};
|
|
16
|
+
};
|
|
17
|
+
constructor(props: Design.HomeProps);
|
|
18
|
+
onValuesChange: (changedValues: any) => void;
|
|
19
|
+
onStepIndex: (stepIndex: number) => void;
|
|
20
|
+
setComponentStatus(attributes: {
|
|
21
|
+
[name: string]: string | boolean;
|
|
22
|
+
}): void;
|
|
23
|
+
component(meta: Meta, Component: any): JSX.Element;
|
|
24
|
+
container({ id, tag, attributes, text, children }: Meta): JSX.Element | undefined;
|
|
25
|
+
applet({ tag, attributes, cdata, children }: Meta): {
|
|
26
|
+
tag: string;
|
|
27
|
+
children: ({
|
|
28
|
+
[name: string]: string | boolean;
|
|
29
|
+
} | {
|
|
30
|
+
rules: any;
|
|
31
|
+
})[] | undefined;
|
|
32
|
+
type?: undefined;
|
|
33
|
+
action?: undefined;
|
|
34
|
+
cdata?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
tag: string;
|
|
37
|
+
children: {
|
|
38
|
+
key: string | boolean;
|
|
39
|
+
label: string | undefined;
|
|
40
|
+
}[] | undefined;
|
|
41
|
+
type?: undefined;
|
|
42
|
+
action?: undefined;
|
|
43
|
+
cdata?: undefined;
|
|
44
|
+
} | {
|
|
45
|
+
tag: string;
|
|
46
|
+
type: string | boolean;
|
|
47
|
+
action: string | boolean;
|
|
48
|
+
children: {
|
|
49
|
+
[name: string]: string | boolean;
|
|
50
|
+
}[] | undefined;
|
|
51
|
+
cdata?: undefined;
|
|
52
|
+
} | {
|
|
53
|
+
tag: string;
|
|
54
|
+
cdata: string | undefined;
|
|
55
|
+
children?: undefined;
|
|
56
|
+
type?: undefined;
|
|
57
|
+
action?: undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
children: (meta: Meta) => JSX.Element | {
|
|
60
|
+
tag: string;
|
|
61
|
+
children: ({
|
|
62
|
+
[name: string]: string | boolean;
|
|
63
|
+
} | {
|
|
64
|
+
rules: any;
|
|
65
|
+
})[] | undefined;
|
|
66
|
+
type?: undefined;
|
|
67
|
+
action?: undefined;
|
|
68
|
+
cdata?: undefined;
|
|
69
|
+
} | {
|
|
70
|
+
tag: string;
|
|
71
|
+
children: {
|
|
72
|
+
key: string | boolean;
|
|
73
|
+
label: string | undefined;
|
|
74
|
+
}[] | undefined;
|
|
75
|
+
type?: undefined;
|
|
76
|
+
action?: undefined;
|
|
77
|
+
cdata?: undefined;
|
|
78
|
+
} | {
|
|
79
|
+
tag: string;
|
|
80
|
+
type: string | boolean;
|
|
81
|
+
action: string | boolean;
|
|
82
|
+
children: {
|
|
83
|
+
[name: string]: string | boolean;
|
|
84
|
+
}[] | undefined;
|
|
85
|
+
cdata?: undefined;
|
|
86
|
+
} | {
|
|
87
|
+
tag: string;
|
|
88
|
+
cdata: string | undefined;
|
|
89
|
+
children?: undefined;
|
|
90
|
+
type?: undefined;
|
|
91
|
+
action?: undefined;
|
|
92
|
+
} | undefined;
|
|
93
|
+
render(): ReactNode;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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,IAAI,MAAM,eAAe,CAAC;AAUjC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,aAAa,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC;IAEvF,KAAK;;MAEH;IAEF,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IACpC,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,EAAE,CAAC;IACb,MAAM,EAAE,EAAE,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE;QAAC,CAAC,IAAI,EAAC,MAAM,GAAG,EAAE,CAAA;KAAC,CAAC;gBAE3B,KAAK,EAAE,MAAM,CAAC,SAAS;IA+BnC,cAAc,kBAAmB,GAAG,UAIlC;IAEF,WAAW,cAAe,MAAM,UAI/B;IAED,kBAAkB,CAAC,UAAU,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;KAAE;IAwBnE,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG;IAMpC,SAAS,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,IAAI;IAqBvD,MAAM,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6BjD,QAAQ,SAAU,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUrB;IAED,MAAM,IAAI,SAAS;CAmBpB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAO,QAAQ,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC"}
|