@faasjs/ant-design 0.0.2-beta.391 → 0.0.2-beta.394
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 +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +4 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -308,7 +308,7 @@ ___
|
|
|
308
308
|
|
|
309
309
|
### FormProps
|
|
310
310
|
|
|
311
|
-
Ƭ **FormProps**<`Values`, `ExtendItemProps`\>: { `beforeItems?`: `JSX.Element` \| `JSX.Element`[] ; `extendTypes?`: { `[type: string]`: [`ExtendFormTypeProps`](#extendformtypeprops); } ; `footer?`: `JSX.Element` \| `JSX.Element`[] ; `items?`: ([`FormItemProps`](#formitemprops) \| `ExtendItemProps`)[] ; `submit?`: ``false`` \| { `text?`: `string` ; `to?`: { `action`: `string` ; `params?`: `Record`<`string`, `any`\> } } ; `onFinish?`: (`values`: `Values`, `submit?`: (`values`: `any`) => `Promise`<`any`\>) => `Promise`<`any`\> } & `Omit`<`AntdFormProps`<`Values`\>, ``"onFinish"``\>
|
|
311
|
+
Ƭ **FormProps**<`Values`, `ExtendItemProps`\>: { `beforeItems?`: `JSX.Element` \| `JSX.Element`[] ; `children?`: `ReactNode` ; `extendTypes?`: { `[type: string]`: [`ExtendFormTypeProps`](#extendformtypeprops); } ; `footer?`: `JSX.Element` \| `JSX.Element`[] ; `items?`: ([`FormItemProps`](#formitemprops) \| `ExtendItemProps`)[] ; `submit?`: ``false`` \| { `text?`: `string` ; `to?`: { `action`: `string` ; `params?`: `Record`<`string`, `any`\> } } ; `onFinish?`: (`values`: `Values`, `submit?`: (`values`: `any`) => `Promise`<`any`\>) => `Promise`<`any`\> } & `Omit`<`AntdFormProps`<`Values`\>, ``"onFinish"`` \| ``"children"``\>
|
|
312
312
|
|
|
313
313
|
#### Type parameters
|
|
314
314
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Dayjs } from 'dayjs';
|
|
|
3
3
|
import { CalendarProps as CalendarProps$1, DescriptionsProps, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, InputProps, InputNumberProps, SwitchProps, DatePickerProps as DatePickerProps$1, TimePickerProps as TimePickerProps$1, SelectProps, FormProps as FormProps$1, ModalProps as ModalProps$1, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1 } from 'antd';
|
|
4
4
|
export { Drawer, Modal } from 'antd';
|
|
5
5
|
import * as react from 'react';
|
|
6
|
-
import { LazyExoticComponent, ComponentType } from 'react';
|
|
6
|
+
import { ReactNode, LazyExoticComponent, ComponentType } from 'react';
|
|
7
7
|
import * as antd_es_date_picker_generatePicker_interface from 'antd/es/date-picker/generatePicker/interface';
|
|
8
8
|
import * as antd_es_date_picker_generatePicker from 'antd/es/date-picker/generatePicker';
|
|
9
9
|
import { PickerDateProps, PickerTimeProps } from 'antd/es/date-picker/generatePicker';
|
|
@@ -293,7 +293,8 @@ declare type FormProps<Values = any, ExtendItemProps = any> = {
|
|
|
293
293
|
extendTypes?: {
|
|
294
294
|
[type: string]: ExtendFormTypeProps;
|
|
295
295
|
};
|
|
296
|
-
|
|
296
|
+
children?: ReactNode;
|
|
297
|
+
} & Omit<FormProps$1<Values>, 'onFinish' | 'children'>;
|
|
297
298
|
declare function Form<Values = any>(props: FormProps<Values>): JSX.Element;
|
|
298
299
|
declare namespace Form {
|
|
299
300
|
var useForm: typeof antd_lib_form_Form.useForm;
|
package/dist/index.mjs
CHANGED
|
@@ -239,7 +239,10 @@ import {
|
|
|
239
239
|
Button as Button2,
|
|
240
240
|
Form as AntdForm2
|
|
241
241
|
} from "antd";
|
|
242
|
-
import {
|
|
242
|
+
import {
|
|
243
|
+
useEffect as useEffect3,
|
|
244
|
+
useState as useState4
|
|
245
|
+
} from "react";
|
|
243
246
|
|
|
244
247
|
// src/FormItem.tsx
|
|
245
248
|
import {
|
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.394",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@ant-design/icons": "*",
|
|
27
27
|
"antd": "*",
|
|
28
28
|
"lodash": "*",
|
|
29
|
-
"react": "
|
|
30
|
-
"react-dom": "
|
|
31
|
-
"@faasjs/react": "^0.0.2-beta.
|
|
29
|
+
"react": "*",
|
|
30
|
+
"react-dom": "*",
|
|
31
|
+
"@faasjs/react": "^0.0.2-beta.394",
|
|
32
32
|
"react-router-dom": "*",
|
|
33
33
|
"dayjs": "*"
|
|
34
34
|
},
|