@faasjs/ant-design 0.0.2-beta.384 → 0.0.2-beta.387
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 +8 -4
- package/dist/index.d.ts +4 -1
- package/dist/index.js +10 -17
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -281,17 +281,21 @@ ___
|
|
|
281
281
|
| `Title` | { `separator`: `string` ; `suffix`: `string` } |
|
|
282
282
|
| `Title.separator` | `string` |
|
|
283
283
|
| `Title.suffix` | `string` |
|
|
284
|
-
| `common` | { `all`: `string` ; `blank`: `string` ; `pageNotFound`: `string` ; `submit`: `string` } |
|
|
284
|
+
| `common` | { `add`: `string` ; `all`: `string` ; `blank`: `string` ; `delete`: `string` ; `pageNotFound`: `string` ; `required`: `string` ; `submit`: `string` } |
|
|
285
|
+
| `common.add` | `string` |
|
|
285
286
|
| `common.all` | `string` |
|
|
286
287
|
| `common.blank` | `string` |
|
|
288
|
+
| `common.delete` | `string` |
|
|
287
289
|
| `common.pageNotFound` | `string` |
|
|
290
|
+
| `common.required` | `string` |
|
|
288
291
|
| `common.submit` | `string` |
|
|
292
|
+
| `lang` | `string` |
|
|
289
293
|
|
|
290
294
|
___
|
|
291
295
|
|
|
292
296
|
### FormItemProps
|
|
293
297
|
|
|
294
|
-
Ƭ **FormItemProps**<`T`\>: { `children?`: `JSX.Element` \| ``null`` ; `extendTypes?`: { `[type: string]`: [`ExtendFormTypeProps`](#extendformtypeprops); } ; `label?`: `string` \| ``false`` ; `rules?`: `RuleObject`[] ; `render?`: () => `Element` } & `FormItemInputProps` & [`FaasItemProps`](#faasitemprops) & `AntdFormItemProps`<`T
|
|
298
|
+
Ƭ **FormItemProps**<`T`\>: { `children?`: `JSX.Element` \| ``null`` ; `extendTypes?`: { `[type: string]`: [`ExtendFormTypeProps`](#extendformtypeprops); } ; `label?`: `string` \| ``false`` ; `rules?`: `RuleObject`[] ; `render?`: () => `Element` } & `FormItemInputProps` & [`FaasItemProps`](#faasitemprops) & `Omit`<`AntdFormItemProps`<`T`\>, ``"children"``\>
|
|
295
299
|
|
|
296
300
|
#### Type parameters
|
|
297
301
|
|
|
@@ -303,7 +307,7 @@ ___
|
|
|
303
307
|
|
|
304
308
|
### FormProps
|
|
305
309
|
|
|
306
|
-
Ƭ **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"``\>
|
|
310
|
+
Ƭ **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"``\>
|
|
307
311
|
|
|
308
312
|
#### Type parameters
|
|
309
313
|
|
|
@@ -423,7 +427,7 @@ ___
|
|
|
423
427
|
|
|
424
428
|
### DatePicker
|
|
425
429
|
|
|
426
|
-
• `Const` **DatePicker**: `PickerComponentClass`<`
|
|
430
|
+
• `Const` **DatePicker**: `PickerComponentClass`<`Omit`<`PickerBaseProps`<`Dayjs`\>, ``"locale"`` \| ``"generateConfig"`` \| ``"hideHeader"`` \| ``"components"``\> & {} & {} & `Omit`<`PickerDateProps`<`Dayjs`\>, ``"locale"`` \| ``"generateConfig"`` \| ``"hideHeader"`` \| ``"components"``\> & {} & {} & `Omit`<`PickerTimeProps`<`Dayjs`\>, ``"locale"`` \| ``"generateConfig"`` \| ``"hideHeader"`` \| ``"components"``\> & {} & {}, `unknown`\> & {}
|
|
427
431
|
|
|
428
432
|
___
|
|
429
433
|
|
package/dist/index.d.ts
CHANGED
|
@@ -112,7 +112,9 @@ declare function transferOptions(options: BaseOption[]): {
|
|
|
112
112
|
}[];
|
|
113
113
|
|
|
114
114
|
declare type DatePickerProps = PickerDateProps<Dayjs>;
|
|
115
|
-
declare const DatePicker: antd_es_date_picker_generatePicker_interface.PickerComponentClass<antd_es_date_picker_generatePicker.PickerProps<Dayjs
|
|
115
|
+
declare const DatePicker: antd_es_date_picker_generatePicker_interface.PickerComponentClass<antd_es_date_picker_generatePicker.PickerProps<Dayjs> & {
|
|
116
|
+
status?: "" | "warning" | "error";
|
|
117
|
+
}, unknown> & {
|
|
116
118
|
WeekPicker: antd_es_date_picker_generatePicker_interface.PickerComponentClass<Omit<PickerDateProps<Dayjs>, "picker">, unknown>;
|
|
117
119
|
MonthPicker: antd_es_date_picker_generatePicker_interface.PickerComponentClass<Omit<PickerDateProps<Dayjs>, "picker">, unknown>;
|
|
118
120
|
YearPicker: antd_es_date_picker_generatePicker_interface.PickerComponentClass<Omit<PickerDateProps<Dayjs>, "picker">, unknown>;
|
|
@@ -284,6 +286,7 @@ declare type FormProps<Values = any, ExtendItemProps = any> = {
|
|
|
284
286
|
};
|
|
285
287
|
onFinish?: (values: Values, submit?: (values: any) => Promise<any>) => Promise<any>;
|
|
286
288
|
beforeItems?: JSX.Element | JSX.Element[];
|
|
289
|
+
footer?: JSX.Element | JSX.Element[];
|
|
287
290
|
extendTypes?: {
|
|
288
291
|
[type: string]: ExtendFormTypeProps;
|
|
289
292
|
};
|
package/dist/index.js
CHANGED
|
@@ -21,27 +21,20 @@ var __spreadValues = (a, b) => {
|
|
|
21
21
|
return a;
|
|
22
22
|
};
|
|
23
23
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
25
24
|
var __export = (target, all) => {
|
|
26
25
|
for (var name in all)
|
|
27
26
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
28
27
|
};
|
|
29
|
-
var
|
|
30
|
-
if (
|
|
31
|
-
for (let key of __getOwnPropNames(
|
|
32
|
-
if (!__hasOwnProp.call(
|
|
33
|
-
__defProp(
|
|
28
|
+
var __copyProps = (to, from, except, desc) => {
|
|
29
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
30
|
+
for (let key of __getOwnPropNames(from))
|
|
31
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
32
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
34
33
|
}
|
|
35
|
-
return
|
|
34
|
+
return to;
|
|
36
35
|
};
|
|
37
|
-
var __toESM = (
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
41
|
-
return (module2, temp) => {
|
|
42
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
43
|
-
};
|
|
44
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
36
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
37
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
45
38
|
|
|
46
39
|
// src/index.ts
|
|
47
40
|
var src_exports = {};
|
|
@@ -64,6 +57,7 @@ __export(src_exports, {
|
|
|
64
57
|
useFaasState: () => useFaasState,
|
|
65
58
|
useModal: () => useModal
|
|
66
59
|
});
|
|
60
|
+
module.exports = __toCommonJS(src_exports);
|
|
67
61
|
|
|
68
62
|
// react-shim.js
|
|
69
63
|
var import_react = __toESM(require("react"));
|
|
@@ -535,7 +529,7 @@ function Form(props) {
|
|
|
535
529
|
htmlType: "submit",
|
|
536
530
|
type: "primary",
|
|
537
531
|
loading
|
|
538
|
-
}, ((_b = computedProps.submit) == null ? void 0 : _b.text) || config.Form.submit.text));
|
|
532
|
+
}, ((_b = computedProps.submit) == null ? void 0 : _b.text) || config.Form.submit.text), computedProps.footer);
|
|
539
533
|
}
|
|
540
534
|
Form.useForm = import_antd5.Form.useForm;
|
|
541
535
|
Form.Item = FormItem;
|
|
@@ -829,7 +823,6 @@ function Title(props) {
|
|
|
829
823
|
return (0, import_react14.cloneElement)(props.children, { title: props.title });
|
|
830
824
|
return null;
|
|
831
825
|
}
|
|
832
|
-
module.exports = __toCommonJS(src_exports);
|
|
833
826
|
// Annotate the CommonJS export names for ESM import in node:
|
|
834
827
|
0 && (module.exports = {
|
|
835
828
|
Blank,
|
package/dist/index.mjs
CHANGED
|
@@ -507,7 +507,7 @@ function Form(props) {
|
|
|
507
507
|
htmlType: "submit",
|
|
508
508
|
type: "primary",
|
|
509
509
|
loading
|
|
510
|
-
}, ((_b = computedProps.submit) == null ? void 0 : _b.text) || config.Form.submit.text));
|
|
510
|
+
}, ((_b = computedProps.submit) == null ? void 0 : _b.text) || config.Form.submit.text), computedProps.footer);
|
|
511
511
|
}
|
|
512
512
|
Form.useForm = AntdForm2.useForm;
|
|
513
513
|
Form.Item = FormItem;
|
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.387",
|
|
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.387",
|
|
32
32
|
"react-use": "*",
|
|
33
33
|
"react-router-dom": "*",
|
|
34
34
|
"dayjs": "*"
|