@faasjs/ant-design 0.0.2-beta.339 → 0.0.2-beta.340
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.d.ts +28 -22
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -23,12 +23,11 @@ declare type FaasItemProps = BaseItemType & {
|
|
|
23
23
|
type?: FaasItemType;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
declare type
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
render?: (value: any, values: any) => JSX.Element | string | number | boolean | null;
|
|
30
|
-
};
|
|
26
|
+
declare type ExtendDescriptionTypeProps = {
|
|
27
|
+
children?: JSX.Element | null;
|
|
28
|
+
render?: (value: any, values: any) => JSX.Element | string | number | boolean | null;
|
|
31
29
|
};
|
|
30
|
+
declare type ExtendDescriptionItemProps = BaseItemType;
|
|
32
31
|
declare type DescriptionItemProps<T = any> = {
|
|
33
32
|
children?: JSX.Element;
|
|
34
33
|
render?: (value: T, values: any) => JSX.Element | string | number | boolean | null;
|
|
@@ -36,7 +35,9 @@ declare type DescriptionItemProps<T = any> = {
|
|
|
36
35
|
declare type DescriptionProps<T = any, ExtendItemProps = any> = {
|
|
37
36
|
items: (DescriptionItemProps | ExtendItemProps)[];
|
|
38
37
|
dataSource: T;
|
|
39
|
-
extendTypes?:
|
|
38
|
+
extendTypes?: {
|
|
39
|
+
[key: string]: ExtendDescriptionTypeProps;
|
|
40
|
+
};
|
|
40
41
|
} & DescriptionsProps;
|
|
41
42
|
declare function Description(props: DescriptionProps): JSX.Element;
|
|
42
43
|
|
|
@@ -74,16 +75,17 @@ declare type OptionsProps<T = any> = {
|
|
|
74
75
|
input?: SelectProps<any>;
|
|
75
76
|
};
|
|
76
77
|
declare type FormItemInputProps<T = any> = StringProps | StringListProps | NumberProps | NumberListProps | BooleanProps | OptionsProps<T>;
|
|
77
|
-
declare type
|
|
78
|
-
|
|
79
|
-
children?: JSX.Element | null;
|
|
80
|
-
};
|
|
78
|
+
declare type ExtendFormTypeProps = {
|
|
79
|
+
children?: JSX.Element | null;
|
|
81
80
|
};
|
|
81
|
+
declare type ExtendFormItemProps = BaseItemType & FormItemProps$1;
|
|
82
82
|
declare type FormItemProps<T = any> = {
|
|
83
83
|
children?: JSX.Element;
|
|
84
84
|
rules?: RuleObject[];
|
|
85
85
|
label?: string | false;
|
|
86
|
-
extendTypes?:
|
|
86
|
+
extendTypes?: {
|
|
87
|
+
[type: string]: ExtendFormTypeProps;
|
|
88
|
+
};
|
|
87
89
|
} & FormItemInputProps<T> & FaasItemProps & FormItemProps$1<T>;
|
|
88
90
|
declare function FormItem<T = any>(props: FormItemProps<T>): JSX.Element;
|
|
89
91
|
|
|
@@ -94,24 +96,28 @@ declare type FormProps<Values = any, ExtendItemProps = any> = {
|
|
|
94
96
|
/** Default: Submit */
|
|
95
97
|
text?: string;
|
|
96
98
|
};
|
|
97
|
-
extendTypes?:
|
|
99
|
+
extendTypes?: {
|
|
100
|
+
[type: string]: ExtendFormTypeProps;
|
|
101
|
+
};
|
|
98
102
|
} & FormProps$1<Values>;
|
|
99
103
|
declare function Form<Values = any>(props: FormProps<Values>): JSX.Element;
|
|
100
104
|
declare namespace Form {
|
|
101
105
|
var useForm: typeof antd_lib_form_Form.useForm;
|
|
106
|
+
var Item: typeof FormItem;
|
|
102
107
|
}
|
|
103
108
|
|
|
104
109
|
declare type TableItemProps<T = any> = FaasItemProps & TableColumnProps<T>;
|
|
105
|
-
declare type
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
render?: (value: any, values: any) => JSX.Element | string | number | boolean | null;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
declare type TableProps<T = any, ExtendTypes = any> = TableProps$1<T> & {
|
|
112
|
-
items: (TableItemProps | ExtendTypes)[];
|
|
113
|
-
extendTypes?: ExtendTableItemProps;
|
|
110
|
+
declare type ExtendTableTypeProps = {
|
|
111
|
+
children?: JSX.Element | null;
|
|
112
|
+
render?: (value: any, values: any) => JSX.Element | string | number | boolean | null;
|
|
114
113
|
};
|
|
114
|
+
declare type ExtendTableItemProps<T = any> = BaseItemType & TableColumnProps<T>;
|
|
115
|
+
declare type TableProps<T = any, ExtendTypes = any> = {
|
|
116
|
+
items: (TableItemProps | (ExtendTypes & BaseItemType))[];
|
|
117
|
+
extendTypes?: {
|
|
118
|
+
[key: string]: ExtendTableTypeProps;
|
|
119
|
+
};
|
|
120
|
+
} & TableProps$1<T>;
|
|
115
121
|
declare function Table<T = any, ExtendTypes = any>(props: TableProps<T, ExtendTypes>): JSX.Element;
|
|
116
122
|
|
|
117
|
-
export { BaseItemType, Description, DescriptionItemProps, DescriptionProps, ExtendDescriptionItemProps, ExtendFormItemProps, ExtendTableItemProps, FaasItemProps, FaasItemType, FaasItemTypeValue, Form, FormItem, FormItemProps, FormProps, Table, TableItemProps, TableProps };
|
|
123
|
+
export { BaseItemType, Description, DescriptionItemProps, DescriptionProps, ExtendDescriptionItemProps, ExtendDescriptionTypeProps, ExtendFormItemProps, ExtendFormTypeProps, ExtendTableItemProps, ExtendTableTypeProps, FaasItemProps, FaasItemType, FaasItemTypeValue, Form, FormItem, FormItemProps, FormProps, Table, TableItemProps, TableProps };
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.340",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"lodash": "*",
|
|
28
28
|
"react": "*",
|
|
29
29
|
"react-dom": "*",
|
|
30
|
-
"@faasjs/react": "^0.0.2-beta.
|
|
30
|
+
"@faasjs/react": "^0.0.2-beta.340"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/lodash": "*",
|