@faasjs/ant-design 0.0.2-beta.446 → 0.0.2-beta.448
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 +23 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -96,6 +96,7 @@ Form are based on [Ant Design's Form.Item component](https://ant.design/componen
|
|
|
96
96
|
- [TimePicker](#timepicker)
|
|
97
97
|
- [Title](#title)
|
|
98
98
|
- [transferOptions](#transferoptions)
|
|
99
|
+
- [transferValue](#transfervalue)
|
|
99
100
|
- [useConfigContext](#useconfigcontext)
|
|
100
101
|
- [useDrawer](#usedrawer)
|
|
101
102
|
- [useModal](#usemodal)
|
|
@@ -183,7 +184,7 @@ ___
|
|
|
183
184
|
|
|
184
185
|
### DescriptionItemProps
|
|
185
186
|
|
|
186
|
-
Ƭ **DescriptionItemProps**<`T`\>: { `children?`: `JSX.Element` ; `render?`: (`value`: `T`, `values`: `any`) => `ReactNode` \| `JSX.Element` } & [`FaasItemProps`](#faasitemprops) & { `object?`: [`DescriptionItemProps`](#descriptionitemprops)[] }
|
|
187
|
+
Ƭ **DescriptionItemProps**<`T`\>: { `children?`: `JSX.Element` ; `if?`: (`values`: `Record`<`string`, `any`\>) => `boolean` ; `render?`: (`value`: `T`, `values`: `any`) => `ReactNode` \| `JSX.Element` } & [`FaasItemProps`](#faasitemprops) & { `object?`: [`DescriptionItemProps`](#descriptionitemprops)[] }
|
|
187
188
|
|
|
188
189
|
#### Type parameters
|
|
189
190
|
|
|
@@ -320,7 +321,7 @@ ___
|
|
|
320
321
|
|
|
321
322
|
### FormItemProps
|
|
322
323
|
|
|
323
|
-
Ƭ **FormItemProps**<`T`\>: { `children?`: `ReactNode` ; `extendTypes?`: [`ExtendTypes`](#extendtypes) ; `label?`: `string` \| ``false`` ; `render?`: (`value?`: `
|
|
324
|
+
Ƭ **FormItemProps**<`T`\>: { `children?`: `ReactNode` ; `extendTypes?`: [`ExtendTypes`](#extendtypes) ; `if?`: (`values`: `Record`<`string`, `any`\>) => `boolean` ; `label?`: `string` \| ``false`` ; `onValueChange?`: (`value`: `T`, `values`: `any`, `form`: `FormInstance`) => `void` ; `render?`: (`value?`: `T`) => `ReactNode` \| `JSX.Element` ; `rules?`: `RuleObject`[] } & `FormItemInputProps` & [`FaasItemProps`](#faasitemprops) & `Omit`<`AntdFormItemProps`<`T`\>, ``"children"``\>
|
|
324
325
|
|
|
325
326
|
#### Type parameters
|
|
326
327
|
|
|
@@ -332,13 +333,13 @@ ___
|
|
|
332
333
|
|
|
333
334
|
### FormProps
|
|
334
335
|
|
|
335
|
-
Ƭ **FormProps**<`Values`, `ExtendItemProps`\>: { `beforeItems?`: `JSX.Element` \| `JSX.Element`[] ; `children?`: `ReactNode` ; `extendTypes?`: [`ExtendTypes`](#extendtypes) ; `footer?`: `JSX.Element` \| `JSX.Element`[] ; `items?`: ([`FormItemProps`](#formitemprops) \| `ExtendItemProps`)[] ; `onFinish?`: (`values`: `Values`, `submit?`: (`values`: `any`) => `Promise`<`any`\>) => `Promise`<`any`\> ; `submit?`: ``false`` \| { `text?`: `string` ; `to?`: { `action`: `string` ; `params?`: `Record`<`string`, `any`\> } } } & `Omit`<`AntdFormProps`<`Values`\>, ``"onFinish"`` \| ``"children"``\>
|
|
336
|
+
Ƭ **FormProps**<`Values`, `ExtendItemProps`\>: { `beforeItems?`: `JSX.Element` \| `JSX.Element`[] ; `children?`: `ReactNode` ; `extendTypes?`: [`ExtendTypes`](#extendtypes) ; `footer?`: `JSX.Element` \| `JSX.Element`[] ; `initialValues?`: `Values` ; `items?`: ([`FormItemProps`](#formitemprops) \| `ExtendItemProps`)[] ; `onFinish?`: (`values`: `Values`, `submit?`: (`values`: `any`) => `Promise`<`any`\>) => `Promise`<`any`\> ; `submit?`: ``false`` \| { `text?`: `string` ; `to?`: { `action`: `string` ; `params?`: `Record`<`string`, `any`\> } } } & `Omit`<`AntdFormProps`<`Values`\>, ``"onFinish"`` \| ``"children"`` \| ``"initialValues"``\>
|
|
336
337
|
|
|
337
338
|
#### Type parameters
|
|
338
339
|
|
|
339
340
|
| Name | Type |
|
|
340
341
|
| :------ | :------ |
|
|
341
|
-
| `Values` | `any` |
|
|
342
|
+
| `Values` | extends `Record`<`string`, `any`\> = `any` |
|
|
342
343
|
| `ExtendItemProps` | `any` |
|
|
343
344
|
|
|
344
345
|
___
|
|
@@ -382,7 +383,7 @@ ___
|
|
|
382
383
|
|
|
383
384
|
### TableItemProps
|
|
384
385
|
|
|
385
|
-
Ƭ **TableItemProps**<`T`\>: { `children?`: `JSX.Element` \| ``null`` ; `optionsType?`: ``"auto"`` } & [`FaasItemProps`](#faasitemprops) & `Omit`<`AntdTableColumnProps`<`T`\>, ``"children"``\>
|
|
386
|
+
Ƭ **TableItemProps**<`T`\>: { `children?`: `JSX.Element` \| ``null`` ; `object?`: [`TableItemProps`](#tableitemprops)[] ; `optionsType?`: ``"auto"`` } & [`FaasItemProps`](#faasitemprops) & `Omit`<`AntdTableColumnProps`<`T`\>, ``"children"``\>
|
|
386
387
|
|
|
387
388
|
#### Type parameters
|
|
388
389
|
|
|
@@ -796,6 +797,23 @@ ___
|
|
|
796
797
|
|
|
797
798
|
___
|
|
798
799
|
|
|
800
|
+
### transferValue
|
|
801
|
+
|
|
802
|
+
▸ **transferValue**(`type`, `value`): `any`
|
|
803
|
+
|
|
804
|
+
#### Parameters
|
|
805
|
+
|
|
806
|
+
| Name | Type |
|
|
807
|
+
| :------ | :------ |
|
|
808
|
+
| `type` | [`FaasItemType`](#faasitemtype) |
|
|
809
|
+
| `value` | `any` |
|
|
810
|
+
|
|
811
|
+
#### Returns
|
|
812
|
+
|
|
813
|
+
`any`
|
|
814
|
+
|
|
815
|
+
___
|
|
816
|
+
|
|
799
817
|
### useConfigContext
|
|
800
818
|
|
|
801
819
|
▸ **useConfigContext**(): [`ConfigProviderProps`](#configproviderprops)
|
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.448",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"lodash": "*",
|
|
29
29
|
"react": "*",
|
|
30
30
|
"react-dom": "*",
|
|
31
|
-
"@faasjs/react": "^0.0.2-beta.
|
|
31
|
+
"@faasjs/react": "^0.0.2-beta.448",
|
|
32
32
|
"react-router-dom": "*",
|
|
33
33
|
"dayjs": "*"
|
|
34
34
|
},
|