@faasjs/ant-design 0.0.2-beta.376 → 0.0.2-beta.377
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 +5 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -305,7 +305,7 @@ ___
|
|
|
305
305
|
|
|
306
306
|
### FormProps
|
|
307
307
|
|
|
308
|
-
Ƭ **FormProps**<`Values`, `ExtendItemProps`\>: { `extendTypes?`: { `[type: string]`: [`ExtendFormTypeProps`](#extendformtypeprops); } ; `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"``\>
|
|
308
|
+
Ƭ **FormProps**<`Values`, `ExtendItemProps`\>: { `beforeItems?`: `JSX.Element` \| `JSX.Element`[] ; `extendTypes?`: { `[type: string]`: [`ExtendFormTypeProps`](#extendformtypeprops); } ; `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"``\>
|
|
309
309
|
|
|
310
310
|
#### Type parameters
|
|
311
311
|
|
|
@@ -425,13 +425,13 @@ ___
|
|
|
425
425
|
|
|
426
426
|
### DatePicker
|
|
427
427
|
|
|
428
|
-
• **DatePicker**: `PickerComponentClass`<`PickerProps`<`Dayjs`\>, `unknown`\> & {}
|
|
428
|
+
• `Const` **DatePicker**: `PickerComponentClass`<`PickerProps`<`Dayjs`\>, `unknown`\> & {}
|
|
429
429
|
|
|
430
430
|
___
|
|
431
431
|
|
|
432
432
|
### TimePicker
|
|
433
433
|
|
|
434
|
-
• **TimePicker**: `ForwardRefExoticComponent`<[`TimePickerProps`](#timepickerprops) & `RefAttributes`<`any`\>\>
|
|
434
|
+
• `Const` **TimePicker**: `ForwardRefExoticComponent`<[`TimePickerProps`](#timepickerprops) & `RefAttributes`<`any`\>\>
|
|
435
435
|
|
|
436
436
|
## Functions
|
|
437
437
|
|
|
@@ -459,7 +459,7 @@ ___
|
|
|
459
459
|
|
|
460
460
|
### Calendar
|
|
461
461
|
|
|
462
|
-
▸
|
|
462
|
+
▸ **Calendar**(`props`): `Element`
|
|
463
463
|
|
|
464
464
|
#### Parameters
|
|
465
465
|
|
|
@@ -691,7 +691,7 @@ ___
|
|
|
691
691
|
|
|
692
692
|
### useFaasState
|
|
693
693
|
|
|
694
|
-
▸
|
|
694
|
+
▸ **useFaasState**(): [[`FaasState`](#faasstate), (`state`: `IHookStateSetAction`<[`FaasState`](#faasstate)\>) => `void`]
|
|
695
695
|
|
|
696
696
|
#### Returns
|
|
697
697
|
|
package/dist/index.d.ts
CHANGED
|
@@ -263,6 +263,7 @@ declare type FormProps<Values = any, ExtendItemProps = any> = {
|
|
|
263
263
|
};
|
|
264
264
|
};
|
|
265
265
|
onFinish?: (values: Values, submit?: (values: any) => Promise<any>) => Promise<any>;
|
|
266
|
+
beforeItems?: JSX.Element | JSX.Element[];
|
|
266
267
|
extendTypes?: {
|
|
267
268
|
[type: string]: ExtendFormTypeProps;
|
|
268
269
|
};
|
package/dist/index.js
CHANGED
|
@@ -464,7 +464,7 @@ function Form(props) {
|
|
|
464
464
|
}, []);
|
|
465
465
|
if (!computedProps)
|
|
466
466
|
return null;
|
|
467
|
-
return /* @__PURE__ */ import_react.default.createElement(import_antd5.Form, __spreadValues({}, computedProps), (_a = computedProps.items) == null ? void 0 : _a.map((item) => /* @__PURE__ */ import_react.default.createElement(FormItem, __spreadProps(__spreadValues({
|
|
467
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd5.Form, __spreadValues({}, computedProps), computedProps.beforeItems, (_a = computedProps.items) == null ? void 0 : _a.map((item) => /* @__PURE__ */ import_react.default.createElement(FormItem, __spreadProps(__spreadValues({
|
|
468
468
|
key: item.id
|
|
469
469
|
}, item), {
|
|
470
470
|
extendTypes: computedProps.extendTypes
|
package/dist/index.mjs
CHANGED
|
@@ -436,7 +436,7 @@ function Form(props) {
|
|
|
436
436
|
}, []);
|
|
437
437
|
if (!computedProps)
|
|
438
438
|
return null;
|
|
439
|
-
return /* @__PURE__ */ React.createElement(AntdForm2, __spreadValues({}, computedProps), (_a = computedProps.items) == null ? void 0 : _a.map((item) => /* @__PURE__ */ React.createElement(FormItem, __spreadProps(__spreadValues({
|
|
439
|
+
return /* @__PURE__ */ React.createElement(AntdForm2, __spreadValues({}, computedProps), computedProps.beforeItems, (_a = computedProps.items) == null ? void 0 : _a.map((item) => /* @__PURE__ */ React.createElement(FormItem, __spreadProps(__spreadValues({
|
|
440
440
|
key: item.id
|
|
441
441
|
}, item), {
|
|
442
442
|
extendTypes: computedProps.extendTypes
|
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.377",
|
|
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.377",
|
|
32
32
|
"react-use": "*",
|
|
33
33
|
"react-router-dom": "*",
|
|
34
34
|
"dayjs": "*"
|