@faasjs/ant-design 0.0.2-beta.456 → 0.0.3-beta.1
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 +10 -73
- package/dist/index.js +40 -79
- package/dist/index.mjs +109 -143
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
import * as antd_es_calendar_generateCalendar_js from 'antd/es/calendar/generateCalendar.js';
|
|
2
|
-
import { Dayjs } from 'dayjs';
|
|
3
|
-
import { CalendarProps as CalendarProps$1, DescriptionsProps, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, FormInstance, InputProps, InputNumberProps, SwitchProps, DatePickerProps as DatePickerProps$1, TimePickerProps as TimePickerProps$1, SelectProps, FormProps as FormProps$1, ButtonProps, ModalProps as ModalProps$1, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, PageHeaderProps } from 'antd';
|
|
4
|
-
export { Drawer, Modal } from 'antd';
|
|
5
1
|
import * as react from 'react';
|
|
6
2
|
import { CSSProperties, ReactNode, LazyExoticComponent, ComponentType } from 'react';
|
|
7
|
-
import { ConfigProviderProps as ConfigProviderProps$1 } from 'antd/
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
import * as antd_es_date_picker_generatePicker from 'antd/es/date-picker/generatePicker';
|
|
12
|
-
import { PickerDateProps, PickerTimeProps } from 'antd/es/date-picker/generatePicker';
|
|
3
|
+
import { ConfigProviderProps as ConfigProviderProps$1 } from 'antd/es/config-provider';
|
|
4
|
+
import { Dayjs } from 'dayjs';
|
|
5
|
+
import { DescriptionsProps, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, FormInstance, InputProps, InputNumberProps, SwitchProps, DatePickerProps, TimePickerProps, SelectProps, FormProps as FormProps$1, ButtonProps, ModalProps as ModalProps$1, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1 } from 'antd';
|
|
6
|
+
export { Drawer, Modal } from 'antd';
|
|
13
7
|
import { FaasDataWrapperProps } from '@faasjs/react';
|
|
14
|
-
import * as
|
|
8
|
+
import * as antd_es_form_Form from 'antd/es/form/Form';
|
|
15
9
|
import { RuleObject } from 'rc-field-form/lib/interface';
|
|
16
10
|
import { RouteProps } from 'react-router-dom';
|
|
17
|
-
import { FilterValue, SorterResult, TableCurrentDataSource } from 'antd/
|
|
11
|
+
import { FilterValue, SorterResult, TableCurrentDataSource } from 'antd/es/table/interface';
|
|
18
12
|
|
|
19
13
|
type BlankProps = {
|
|
20
14
|
value?: any;
|
|
@@ -34,9 +28,6 @@ type BlankProps = {
|
|
|
34
28
|
*/
|
|
35
29
|
declare function Blank(options?: BlankProps): JSX.Element;
|
|
36
30
|
|
|
37
|
-
type CalendarProps = CalendarProps$1<Dayjs>;
|
|
38
|
-
declare const Calendar: (props: antd_es_calendar_generateCalendar_js.CalendarProps<Dayjs>) => JSX.Element;
|
|
39
|
-
|
|
40
31
|
type ConfigProviderProps = {
|
|
41
32
|
antd?: ConfigProviderProps$1;
|
|
42
33
|
lang?: string;
|
|
@@ -125,55 +116,6 @@ declare function transferOptions(options: BaseOption[]): {
|
|
|
125
116
|
}[];
|
|
126
117
|
declare function transferValue(type: FaasItemType, value: any): any;
|
|
127
118
|
|
|
128
|
-
type DatePickerProps = PickerDateProps<Dayjs>;
|
|
129
|
-
declare const DatePicker: antd_es_date_picker_generatePicker_interface.PickerComponentClass<antd_es_date_picker_generatePicker.PickerProps<Dayjs> & {
|
|
130
|
-
status?: "" | "warning" | "error";
|
|
131
|
-
dropdownClassName?: string;
|
|
132
|
-
popupClassName?: string;
|
|
133
|
-
}, unknown> & {
|
|
134
|
-
WeekPicker: antd_es_date_picker_generatePicker_interface.PickerComponentClass<Omit<antd_es_date_picker_generatePicker.PickerProps<Dayjs> & {
|
|
135
|
-
status?: "" | "warning" | "error";
|
|
136
|
-
dropdownClassName?: string;
|
|
137
|
-
popupClassName?: string;
|
|
138
|
-
}, "picker">, unknown>;
|
|
139
|
-
MonthPicker: antd_es_date_picker_generatePicker_interface.PickerComponentClass<Omit<antd_es_date_picker_generatePicker.PickerProps<Dayjs> & {
|
|
140
|
-
status?: "" | "warning" | "error";
|
|
141
|
-
dropdownClassName?: string;
|
|
142
|
-
popupClassName?: string;
|
|
143
|
-
}, "picker">, unknown>;
|
|
144
|
-
YearPicker: antd_es_date_picker_generatePicker_interface.PickerComponentClass<Omit<antd_es_date_picker_generatePicker.PickerProps<Dayjs> & {
|
|
145
|
-
status?: "" | "warning" | "error";
|
|
146
|
-
dropdownClassName?: string;
|
|
147
|
-
popupClassName?: string;
|
|
148
|
-
}, "picker">, unknown>;
|
|
149
|
-
RangePicker: antd_es_date_picker_generatePicker_interface.PickerComponentClass<antd_es_date_picker_generatePicker.RangePickerProps<Dayjs> & {
|
|
150
|
-
dropdownClassName?: string;
|
|
151
|
-
popupClassName?: string;
|
|
152
|
-
}, unknown>;
|
|
153
|
-
TimePicker: antd_es_date_picker_generatePicker_interface.PickerComponentClass<Omit<Omit<rc_picker_lib_Picker.PickerTimeProps<Dayjs>, "locale" | "generateConfig" | "hideHeader" | "components"> & {
|
|
154
|
-
locale?: antd_es_date_picker_generatePicker.PickerLocale;
|
|
155
|
-
size?: antd_es_button.ButtonSize;
|
|
156
|
-
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
157
|
-
bordered?: boolean;
|
|
158
|
-
status?: "" | "warning" | "error";
|
|
159
|
-
} & {
|
|
160
|
-
status?: "" | "warning" | "error";
|
|
161
|
-
dropdownClassName?: string;
|
|
162
|
-
popupClassName?: string;
|
|
163
|
-
}, "picker">, unknown>;
|
|
164
|
-
QuarterPicker: antd_es_date_picker_generatePicker_interface.PickerComponentClass<Omit<Omit<rc_picker_lib_Picker.PickerTimeProps<Dayjs>, "locale" | "generateConfig" | "hideHeader" | "components"> & {
|
|
165
|
-
locale?: antd_es_date_picker_generatePicker.PickerLocale;
|
|
166
|
-
size?: antd_es_button.ButtonSize;
|
|
167
|
-
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
168
|
-
bordered?: boolean;
|
|
169
|
-
status?: "" | "warning" | "error";
|
|
170
|
-
} & {
|
|
171
|
-
status?: "" | "warning" | "error";
|
|
172
|
-
dropdownClassName?: string;
|
|
173
|
-
popupClassName?: string;
|
|
174
|
-
}, "picker">, unknown>;
|
|
175
|
-
};
|
|
176
|
-
|
|
177
119
|
type ExtendDescriptionTypeProps = {
|
|
178
120
|
children?: JSX.Element | null;
|
|
179
121
|
render?: (value: any, values: any) => ReactNode | JSX.Element;
|
|
@@ -248,11 +190,11 @@ type BooleanProps = {
|
|
|
248
190
|
};
|
|
249
191
|
type DateProps = {
|
|
250
192
|
type: 'date';
|
|
251
|
-
input?: DatePickerProps
|
|
193
|
+
input?: DatePickerProps;
|
|
252
194
|
};
|
|
253
195
|
type TimeProps = {
|
|
254
196
|
type: 'time';
|
|
255
|
-
input?: TimePickerProps
|
|
197
|
+
input?: TimePickerProps;
|
|
256
198
|
};
|
|
257
199
|
type ObjectProps = {
|
|
258
200
|
type: 'object';
|
|
@@ -359,7 +301,7 @@ type FormProps<Values extends Record<string, any> = any, ExtendItemProps = any>
|
|
|
359
301
|
*/
|
|
360
302
|
declare function Form<Values = any>(props: FormProps<Values>): JSX.Element;
|
|
361
303
|
declare namespace Form {
|
|
362
|
-
var useForm: typeof
|
|
304
|
+
var useForm: typeof antd_es_form_Form.useForm;
|
|
363
305
|
}
|
|
364
306
|
|
|
365
307
|
type LinkProps = {
|
|
@@ -465,9 +407,6 @@ type TableProps<T = any, ExtendTypes = any> = {
|
|
|
465
407
|
*/
|
|
466
408
|
declare function Table<T = any, ExtendTypes = any>(props: TableProps<T, ExtendTypes>): JSX.Element;
|
|
467
409
|
|
|
468
|
-
type TimePickerProps = Omit<PickerTimeProps<Dayjs>, 'picker'>;
|
|
469
|
-
declare const TimePicker: react.ForwardRefExoticComponent<TimePickerProps & react.RefAttributes<any>>;
|
|
470
|
-
|
|
471
410
|
type TitleProps = {
|
|
472
411
|
title: string | string[];
|
|
473
412
|
/** ` - ` as default */
|
|
@@ -480,8 +419,6 @@ type TitleProps = {
|
|
|
480
419
|
};
|
|
481
420
|
/** return a pure text element */
|
|
482
421
|
plain?: boolean;
|
|
483
|
-
/** return a PageHeader element */
|
|
484
|
-
header?: PageHeaderProps;
|
|
485
422
|
/** return children */
|
|
486
423
|
children?: JSX.Element;
|
|
487
424
|
};
|
|
@@ -504,4 +441,4 @@ type TitleProps = {
|
|
|
504
441
|
*/
|
|
505
442
|
declare function Title(props: TitleProps): JSX.Element;
|
|
506
443
|
|
|
507
|
-
export { BaseItemProps, BaseOption, Blank, BlankProps,
|
|
444
|
+
export { BaseItemProps, BaseOption, Blank, BlankProps, ConfigContext, ConfigProvider, ConfigProviderProps, Description, DescriptionItemProps, DescriptionProps, DrawerProps, ExtendDescriptionItemProps, ExtendDescriptionTypeProps, ExtendFormItemProps, ExtendFormTypeProps, ExtendTableItemProps, ExtendTableTypeProps, ExtendTypes, FaasItemProps, FaasItemType, FaasItemTypeValue, Form, FormItem, FormItemProps, FormProps, Link, LinkProps, ModalProps, PageNotFound, Routes, RoutesProps, Table, TableItemProps, TableProps, Title, TitleProps, setDrawerProps, setModalProps, transferOptions, transferValue, useConfigContext, useDrawer, useModal };
|
package/dist/index.js
CHANGED
|
@@ -27,10 +27,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
27
27
|
var src_exports = {};
|
|
28
28
|
__export(src_exports, {
|
|
29
29
|
Blank: () => Blank,
|
|
30
|
-
Calendar: () => Calendar,
|
|
31
30
|
ConfigContext: () => ConfigContext,
|
|
32
31
|
ConfigProvider: () => ConfigProvider,
|
|
33
|
-
DatePicker: () => DatePicker,
|
|
34
32
|
Description: () => Description,
|
|
35
33
|
Drawer: () => import_antd4.Drawer,
|
|
36
34
|
Form: () => Form,
|
|
@@ -40,7 +38,6 @@ __export(src_exports, {
|
|
|
40
38
|
PageNotFound: () => PageNotFound,
|
|
41
39
|
Routes: () => Routes,
|
|
42
40
|
Table: () => Table,
|
|
43
|
-
TimePicker: () => TimePicker,
|
|
44
41
|
Title: () => Title,
|
|
45
42
|
transferOptions: () => transferOptions,
|
|
46
43
|
transferValue: () => transferValue,
|
|
@@ -139,15 +136,9 @@ function Blank(options) {
|
|
|
139
136
|
}) : options.value;
|
|
140
137
|
}
|
|
141
138
|
|
|
142
|
-
// src/Calendar.tsx
|
|
143
|
-
var import_dayjs = __toESM(require("rc-picker/es/generate/dayjs.js"));
|
|
144
|
-
var import_generateCalendar = __toESM(require("antd/es/calendar/generateCalendar.js"));
|
|
145
|
-
var import_style = require("antd/es/calendar/style/index.js");
|
|
146
|
-
var Calendar = (0, import_generateCalendar.default)(import_dayjs.default);
|
|
147
|
-
|
|
148
139
|
// src/data.ts
|
|
149
140
|
var import_lodash3 = require("lodash");
|
|
150
|
-
var
|
|
141
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
151
142
|
function transferOptions(options) {
|
|
152
143
|
if (!options)
|
|
153
144
|
return [];
|
|
@@ -166,18 +157,12 @@ function transferValue(type, value) {
|
|
|
166
157
|
if (["date", "time"].includes(type)) {
|
|
167
158
|
if (typeof value === "number" && value.toString().length === 10)
|
|
168
159
|
value = value * 1e3;
|
|
169
|
-
if (!
|
|
170
|
-
value = (0,
|
|
160
|
+
if (!import_dayjs.default.isDayjs(value))
|
|
161
|
+
value = (0, import_dayjs.default)(value);
|
|
171
162
|
}
|
|
172
163
|
return value;
|
|
173
164
|
}
|
|
174
165
|
|
|
175
|
-
// src/DatePicker.tsx
|
|
176
|
-
var import_dayjs3 = __toESM(require("rc-picker/es/generate/dayjs.js"));
|
|
177
|
-
var import_generatePicker = __toESM(require("antd/es/date-picker/generatePicker/index.js"));
|
|
178
|
-
var import_style2 = require("antd/es/date-picker/style/index.js");
|
|
179
|
-
var DatePicker = (0, import_generatePicker.default)(import_dayjs3.default);
|
|
180
|
-
|
|
181
166
|
// src/Description.tsx
|
|
182
167
|
var import_icons = require("@ant-design/icons");
|
|
183
168
|
var import_antd3 = require("antd");
|
|
@@ -363,30 +348,15 @@ function useDrawer(init) {
|
|
|
363
348
|
}
|
|
364
349
|
|
|
365
350
|
// src/Form.tsx
|
|
366
|
-
var
|
|
351
|
+
var import_react7 = require("@faasjs/react");
|
|
367
352
|
var import_antd6 = require("antd");
|
|
368
|
-
var
|
|
353
|
+
var import_react8 = require("react");
|
|
369
354
|
|
|
370
355
|
// src/FormItem.tsx
|
|
371
356
|
var import_antd5 = require("antd");
|
|
372
357
|
var import_icons2 = require("@ant-design/icons");
|
|
373
|
-
var import_react7 = require("react");
|
|
374
|
-
var import_lodash5 = require("lodash");
|
|
375
|
-
|
|
376
|
-
// src/TimePicker.tsx
|
|
377
358
|
var import_react6 = require("react");
|
|
378
|
-
var
|
|
379
|
-
var TimePicker = (0, import_react6.forwardRef)((props, ref) => {
|
|
380
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DatePicker, {
|
|
381
|
-
...props,
|
|
382
|
-
picker: "time",
|
|
383
|
-
mode: void 0,
|
|
384
|
-
ref
|
|
385
|
-
});
|
|
386
|
-
});
|
|
387
|
-
TimePicker.displayName = "TimePicker";
|
|
388
|
-
|
|
389
|
-
// src/FormItem.tsx
|
|
359
|
+
var import_lodash5 = require("lodash");
|
|
390
360
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
391
361
|
function processProps(propsCopy, config) {
|
|
392
362
|
if (!propsCopy.title)
|
|
@@ -436,11 +406,11 @@ function processProps(propsCopy, config) {
|
|
|
436
406
|
}
|
|
437
407
|
function FormItem(props) {
|
|
438
408
|
var _a;
|
|
439
|
-
const [computedProps, setComputedProps] = (0,
|
|
440
|
-
const [extendTypes, setExtendTypes] = (0,
|
|
409
|
+
const [computedProps, setComputedProps] = (0, import_react6.useState)();
|
|
410
|
+
const [extendTypes, setExtendTypes] = (0, import_react6.useState)();
|
|
441
411
|
const config = useConfigContext();
|
|
442
|
-
const [hidden, setHidden] = (0,
|
|
443
|
-
(0,
|
|
412
|
+
const [hidden, setHidden] = (0, import_react6.useState)(false);
|
|
413
|
+
(0, import_react6.useEffect)(() => {
|
|
444
414
|
const propsCopy = { ...props };
|
|
445
415
|
if (propsCopy.extendTypes) {
|
|
446
416
|
setExtendTypes(propsCopy.extendTypes);
|
|
@@ -656,14 +626,14 @@ function FormItem(props) {
|
|
|
656
626
|
case "date":
|
|
657
627
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd5.Form.Item, {
|
|
658
628
|
...computedProps,
|
|
659
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DatePicker, {
|
|
629
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd5.DatePicker, {
|
|
660
630
|
...computedProps.input
|
|
661
631
|
})
|
|
662
632
|
});
|
|
663
633
|
case "time":
|
|
664
634
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd5.Form.Item, {
|
|
665
635
|
...computedProps,
|
|
666
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimePicker, {
|
|
636
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd5.TimePicker, {
|
|
667
637
|
...computedProps.input
|
|
668
638
|
})
|
|
669
639
|
});
|
|
@@ -749,13 +719,13 @@ function FormItem(props) {
|
|
|
749
719
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
750
720
|
function Form(props) {
|
|
751
721
|
var _a, _b;
|
|
752
|
-
const [loading, setLoading] = (0,
|
|
753
|
-
const [computedProps, setComputedProps] = (0,
|
|
722
|
+
const [loading, setLoading] = (0, import_react8.useState)(false);
|
|
723
|
+
const [computedProps, setComputedProps] = (0, import_react8.useState)();
|
|
754
724
|
const config = useConfigContext();
|
|
755
|
-
const [extendTypes, setExtendTypes] = (0,
|
|
725
|
+
const [extendTypes, setExtendTypes] = (0, import_react8.useState)();
|
|
756
726
|
const [form] = import_antd6.Form.useForm(props.form);
|
|
757
|
-
const [initialValues, setInitialValues] = (0,
|
|
758
|
-
(0,
|
|
727
|
+
const [initialValues, setInitialValues] = (0, import_react8.useState)(props.initialValues);
|
|
728
|
+
(0, import_react8.useEffect)(() => {
|
|
759
729
|
var _a2, _b2;
|
|
760
730
|
const propsCopy = {
|
|
761
731
|
...props,
|
|
@@ -776,7 +746,7 @@ function Form(props) {
|
|
|
776
746
|
setLoading(true);
|
|
777
747
|
try {
|
|
778
748
|
if (propsCopy.submit && ((_a3 = propsCopy.submit.to) == null ? void 0 : _a3.action)) {
|
|
779
|
-
await props.onFinish(values, async (values2) => (0,
|
|
749
|
+
await props.onFinish(values, async (values2) => (0, import_react7.faas)(propsCopy.submit.to.action, propsCopy.submit.to.params ? {
|
|
780
750
|
...values2,
|
|
781
751
|
...propsCopy.submit.to.params
|
|
782
752
|
} : values2));
|
|
@@ -790,7 +760,7 @@ function Form(props) {
|
|
|
790
760
|
} else if (propsCopy.submit && ((_b2 = propsCopy.submit.to) == null ? void 0 : _b2.action)) {
|
|
791
761
|
propsCopy.onFinish = async (values) => {
|
|
792
762
|
setLoading(true);
|
|
793
|
-
return (0,
|
|
763
|
+
return (0, import_react7.faas)(propsCopy.submit.to.action, propsCopy.submit.to.params ? {
|
|
794
764
|
...values,
|
|
795
765
|
...propsCopy.submit.to.params
|
|
796
766
|
} : values).finally(() => setLoading(false));
|
|
@@ -802,7 +772,7 @@ function Form(props) {
|
|
|
802
772
|
}
|
|
803
773
|
setComputedProps(propsCopy);
|
|
804
774
|
}, [props]);
|
|
805
|
-
const onValuesChange = (0,
|
|
775
|
+
const onValuesChange = (0, import_react8.useCallback)((changedValues, allValues) => {
|
|
806
776
|
if (props.onValuesChange) {
|
|
807
777
|
props.onValuesChange(changedValues, allValues);
|
|
808
778
|
}
|
|
@@ -814,7 +784,7 @@ function Form(props) {
|
|
|
814
784
|
item.onValueChange(changedValues[key], allValues, form);
|
|
815
785
|
}
|
|
816
786
|
}, [computedProps]);
|
|
817
|
-
(0,
|
|
787
|
+
(0, import_react8.useEffect)(() => {
|
|
818
788
|
if (!initialValues)
|
|
819
789
|
return;
|
|
820
790
|
form.setFieldsValue(initialValues);
|
|
@@ -908,10 +878,10 @@ function Link({
|
|
|
908
878
|
|
|
909
879
|
// src/Modal.tsx
|
|
910
880
|
var import_antd8 = require("antd");
|
|
911
|
-
var
|
|
881
|
+
var import_react9 = require("react");
|
|
912
882
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
913
883
|
function useModal(init) {
|
|
914
|
-
const [props, setProps] = (0,
|
|
884
|
+
const [props, setProps] = (0, import_react9.useState)({
|
|
915
885
|
open: false,
|
|
916
886
|
onCancel: () => setProps((prev) => ({
|
|
917
887
|
...prev,
|
|
@@ -935,7 +905,7 @@ function useModal(init) {
|
|
|
935
905
|
|
|
936
906
|
// src/Routers.tsx
|
|
937
907
|
var import_antd9 = require("antd");
|
|
938
|
-
var
|
|
908
|
+
var import_react10 = require("react");
|
|
939
909
|
var import_react_router_dom2 = require("react-router-dom");
|
|
940
910
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
941
911
|
function PageNotFound() {
|
|
@@ -950,7 +920,7 @@ function Routes(props) {
|
|
|
950
920
|
children: [
|
|
951
921
|
props.routes.map((r) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_router_dom2.Route, {
|
|
952
922
|
...r,
|
|
953
|
-
element: r.element || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
923
|
+
element: r.element || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react10.Suspense, {
|
|
954
924
|
fallback: props.fallback || /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
955
925
|
style: { padding: "24px" },
|
|
956
926
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd9.Skeleton, {
|
|
@@ -969,12 +939,12 @@ function Routes(props) {
|
|
|
969
939
|
}
|
|
970
940
|
|
|
971
941
|
// src/Table.tsx
|
|
972
|
-
var
|
|
942
|
+
var import_react11 = require("react");
|
|
973
943
|
var import_antd10 = require("antd");
|
|
974
|
-
var
|
|
944
|
+
var import_dayjs2 = __toESM(require("dayjs"));
|
|
975
945
|
var import_icons3 = require("@ant-design/icons");
|
|
976
946
|
var import_lodash6 = require("lodash");
|
|
977
|
-
var
|
|
947
|
+
var import_react12 = require("@faasjs/react");
|
|
978
948
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
979
949
|
function processValue(item, value) {
|
|
980
950
|
var _a;
|
|
@@ -1001,9 +971,9 @@ function processValue(item, value) {
|
|
|
1001
971
|
return value;
|
|
1002
972
|
}
|
|
1003
973
|
function Table(props) {
|
|
1004
|
-
const [columns, setColumns] = (0,
|
|
974
|
+
const [columns, setColumns] = (0, import_react11.useState)();
|
|
1005
975
|
const { common: common2 } = useConfigContext();
|
|
1006
|
-
(0,
|
|
976
|
+
(0, import_react11.useEffect)(() => {
|
|
1007
977
|
var _a;
|
|
1008
978
|
for (const item of props.items) {
|
|
1009
979
|
if (!item.key)
|
|
@@ -1025,7 +995,7 @@ function Table(props) {
|
|
|
1025
995
|
delete item.children;
|
|
1026
996
|
if (props.extendTypes && props.extendTypes[item.type]) {
|
|
1027
997
|
if (props.extendTypes[item.type].children)
|
|
1028
|
-
item.render = (value, values) => (0,
|
|
998
|
+
item.render = (value, values) => (0, import_react11.cloneElement)(
|
|
1029
999
|
props.extendTypes[item.type].children,
|
|
1030
1000
|
{
|
|
1031
1001
|
value,
|
|
@@ -1217,17 +1187,17 @@ function Table(props) {
|
|
|
1217
1187
|
if (!item.render)
|
|
1218
1188
|
item.render = (value) => processValue(item, value);
|
|
1219
1189
|
if (!item.onFilter)
|
|
1220
|
-
item.onFilter = (value, row) => (0,
|
|
1190
|
+
item.onFilter = (value, row) => (0, import_dayjs2.default)(row[item.id]).isSame((0, import_dayjs2.default)(value));
|
|
1221
1191
|
if (!item.sorter)
|
|
1222
|
-
item.sorter = (a, b) => (0,
|
|
1192
|
+
item.sorter = (a, b) => (0, import_dayjs2.default)(a[item.id]).isBefore(b[item.id]) ? -1 : 1;
|
|
1223
1193
|
break;
|
|
1224
1194
|
case "time":
|
|
1225
1195
|
if (!item.render)
|
|
1226
1196
|
item.render = (value) => processValue(item, value);
|
|
1227
1197
|
if (!item.onFilter)
|
|
1228
|
-
item.onFilter = (value, row) => (0,
|
|
1198
|
+
item.onFilter = (value, row) => (0, import_dayjs2.default)(row[item.id]).isSame((0, import_dayjs2.default)(value));
|
|
1229
1199
|
if (!item.sorter)
|
|
1230
|
-
item.sorter = (a, b) => (0,
|
|
1200
|
+
item.sorter = (a, b) => (0, import_dayjs2.default)(a[item.id]).isBefore(b[item.id]) ? -1 : 1;
|
|
1231
1201
|
break;
|
|
1232
1202
|
case "object":
|
|
1233
1203
|
if (!item.render)
|
|
@@ -1255,7 +1225,7 @@ function Table(props) {
|
|
|
1255
1225
|
}
|
|
1256
1226
|
setColumns(props.items);
|
|
1257
1227
|
}, [props.items]);
|
|
1258
|
-
(0,
|
|
1228
|
+
(0, import_react11.useEffect)(() => {
|
|
1259
1229
|
if (!props.dataSource || !columns)
|
|
1260
1230
|
return;
|
|
1261
1231
|
for (const column of columns) {
|
|
@@ -1281,7 +1251,7 @@ function Table(props) {
|
|
|
1281
1251
|
columns,
|
|
1282
1252
|
dataSource: props.dataSource
|
|
1283
1253
|
});
|
|
1284
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1254
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react12.FaasDataWrapper, {
|
|
1285
1255
|
fallback: props.faasData.fallback || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd10.Skeleton, {
|
|
1286
1256
|
active: true
|
|
1287
1257
|
}),
|
|
@@ -1338,12 +1308,11 @@ function Table(props) {
|
|
|
1338
1308
|
}
|
|
1339
1309
|
|
|
1340
1310
|
// src/Title.tsx
|
|
1341
|
-
var
|
|
1342
|
-
var import_antd11 = require("antd");
|
|
1311
|
+
var import_react13 = require("react");
|
|
1343
1312
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
1344
1313
|
function Title(props) {
|
|
1345
1314
|
const { Title: Title2 } = useConfigContext();
|
|
1346
|
-
(0,
|
|
1315
|
+
(0, import_react13.useEffect)(() => {
|
|
1347
1316
|
const title = Array.isArray(props.title) ? props.title : [props.title];
|
|
1348
1317
|
document.title = title.concat(props.suffix || Title2.suffix).filter((t) => !!t).join(props.separator || Title2.separator);
|
|
1349
1318
|
}, [props]);
|
|
@@ -1362,22 +1331,15 @@ function Title(props) {
|
|
|
1362
1331
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
1363
1332
|
children: Array.isArray(props.title) ? props.title[0] : props.title
|
|
1364
1333
|
});
|
|
1365
|
-
if (props.header)
|
|
1366
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd11.PageHeader, {
|
|
1367
|
-
title: Array.isArray(props.title) ? props.title[0] : props.title,
|
|
1368
|
-
...props.header
|
|
1369
|
-
});
|
|
1370
1334
|
if (props.children)
|
|
1371
|
-
return (0,
|
|
1335
|
+
return (0, import_react13.cloneElement)(props.children, { title: props.title });
|
|
1372
1336
|
return null;
|
|
1373
1337
|
}
|
|
1374
1338
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1375
1339
|
0 && (module.exports = {
|
|
1376
1340
|
Blank,
|
|
1377
|
-
Calendar,
|
|
1378
1341
|
ConfigContext,
|
|
1379
1342
|
ConfigProvider,
|
|
1380
|
-
DatePicker,
|
|
1381
1343
|
Description,
|
|
1382
1344
|
Drawer,
|
|
1383
1345
|
Form,
|
|
@@ -1387,7 +1349,6 @@ function Title(props) {
|
|
|
1387
1349
|
PageNotFound,
|
|
1388
1350
|
Routes,
|
|
1389
1351
|
Table,
|
|
1390
|
-
TimePicker,
|
|
1391
1352
|
Title,
|
|
1392
1353
|
transferOptions,
|
|
1393
1354
|
transferValue,
|
package/dist/index.mjs
CHANGED
|
@@ -92,12 +92,6 @@ function Blank(options) {
|
|
|
92
92
|
}) : options.value;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// src/Calendar.tsx
|
|
96
|
-
import dayjsGenerateConfig from "rc-picker/es/generate/dayjs.js";
|
|
97
|
-
import generateCalendar from "antd/es/calendar/generateCalendar.js";
|
|
98
|
-
import "antd/es/calendar/style/index.js";
|
|
99
|
-
var Calendar = generateCalendar(dayjsGenerateConfig);
|
|
100
|
-
|
|
101
95
|
// src/data.ts
|
|
102
96
|
import { upperFirst } from "lodash";
|
|
103
97
|
import dayjs from "dayjs";
|
|
@@ -125,12 +119,6 @@ function transferValue(type, value) {
|
|
|
125
119
|
return value;
|
|
126
120
|
}
|
|
127
121
|
|
|
128
|
-
// src/DatePicker.tsx
|
|
129
|
-
import dayjsGenerateConfig2 from "rc-picker/es/generate/dayjs.js";
|
|
130
|
-
import generatePicker from "antd/es/date-picker/generatePicker/index.js";
|
|
131
|
-
import "antd/es/date-picker/style/index.js";
|
|
132
|
-
var DatePicker = generatePicker(dayjsGenerateConfig2);
|
|
133
|
-
|
|
134
122
|
// src/Description.tsx
|
|
135
123
|
import { CheckOutlined, CloseOutlined } from "@ant-design/icons";
|
|
136
124
|
import {
|
|
@@ -344,7 +332,9 @@ import {
|
|
|
344
332
|
Input,
|
|
345
333
|
InputNumber,
|
|
346
334
|
Switch,
|
|
347
|
-
Select
|
|
335
|
+
Select,
|
|
336
|
+
DatePicker,
|
|
337
|
+
TimePicker
|
|
348
338
|
} from "antd";
|
|
349
339
|
import { MinusCircleOutlined, PlusOutlined } from "@ant-design/icons";
|
|
350
340
|
import {
|
|
@@ -352,22 +342,7 @@ import {
|
|
|
352
342
|
useState as useState4
|
|
353
343
|
} from "react";
|
|
354
344
|
import { upperFirst as upperFirst3 } from "lodash";
|
|
355
|
-
|
|
356
|
-
// src/TimePicker.tsx
|
|
357
|
-
import { forwardRef } from "react";
|
|
358
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
359
|
-
var TimePicker = forwardRef((props, ref) => {
|
|
360
|
-
return /* @__PURE__ */ jsx5(DatePicker, {
|
|
361
|
-
...props,
|
|
362
|
-
picker: "time",
|
|
363
|
-
mode: void 0,
|
|
364
|
-
ref
|
|
365
|
-
});
|
|
366
|
-
});
|
|
367
|
-
TimePicker.displayName = "TimePicker";
|
|
368
|
-
|
|
369
|
-
// src/FormItem.tsx
|
|
370
|
-
import { Fragment as Fragment2, jsx as jsx6, jsxs } from "react/jsx-runtime";
|
|
345
|
+
import { Fragment as Fragment2, jsx as jsx5, jsxs } from "react/jsx-runtime";
|
|
371
346
|
function processProps(propsCopy, config) {
|
|
372
347
|
if (!propsCopy.title)
|
|
373
348
|
propsCopy.title = upperFirst3(propsCopy.id);
|
|
@@ -440,86 +415,86 @@ function FormItem(props) {
|
|
|
440
415
|
if (!computedProps)
|
|
441
416
|
return null;
|
|
442
417
|
if (hidden)
|
|
443
|
-
return /* @__PURE__ */
|
|
418
|
+
return /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
444
419
|
...computedProps,
|
|
445
420
|
noStyle: true,
|
|
446
421
|
rules: [],
|
|
447
|
-
children: /* @__PURE__ */
|
|
422
|
+
children: /* @__PURE__ */ jsx5(Input, {
|
|
448
423
|
hidden: true
|
|
449
424
|
})
|
|
450
425
|
});
|
|
451
426
|
if (extendTypes && extendTypes[computedProps.type])
|
|
452
|
-
return /* @__PURE__ */
|
|
427
|
+
return /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
453
428
|
...computedProps,
|
|
454
429
|
children: extendTypes[computedProps.type].children
|
|
455
430
|
});
|
|
456
431
|
if (computedProps.children)
|
|
457
|
-
return /* @__PURE__ */
|
|
432
|
+
return /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
458
433
|
...computedProps,
|
|
459
434
|
children: computedProps.children
|
|
460
435
|
});
|
|
461
436
|
if (computedProps.render)
|
|
462
|
-
return /* @__PURE__ */
|
|
437
|
+
return /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
463
438
|
...computedProps,
|
|
464
439
|
children: computedProps.render()
|
|
465
440
|
});
|
|
466
441
|
switch (computedProps.type) {
|
|
467
442
|
case "string":
|
|
468
|
-
return /* @__PURE__ */
|
|
443
|
+
return /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
469
444
|
...computedProps,
|
|
470
|
-
children: computedProps.options ? /* @__PURE__ */
|
|
445
|
+
children: computedProps.options ? /* @__PURE__ */ jsx5(Select, {
|
|
471
446
|
...computedProps.input
|
|
472
|
-
}) : /* @__PURE__ */
|
|
447
|
+
}) : /* @__PURE__ */ jsx5(Input, {
|
|
473
448
|
...computedProps.input
|
|
474
449
|
})
|
|
475
450
|
});
|
|
476
451
|
case "string[]":
|
|
477
452
|
if (computedProps.options)
|
|
478
|
-
return /* @__PURE__ */
|
|
453
|
+
return /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
479
454
|
...computedProps,
|
|
480
|
-
children: /* @__PURE__ */
|
|
455
|
+
children: /* @__PURE__ */ jsx5(Select, {
|
|
481
456
|
mode: "multiple",
|
|
482
457
|
...computedProps.input
|
|
483
458
|
})
|
|
484
459
|
});
|
|
485
|
-
return /* @__PURE__ */
|
|
460
|
+
return /* @__PURE__ */ jsx5(AntdForm.List, {
|
|
486
461
|
name: computedProps.name,
|
|
487
462
|
rules: computedProps.rules,
|
|
488
463
|
children: (fields, { add, remove }, { errors }) => {
|
|
489
464
|
var _a2;
|
|
490
465
|
return /* @__PURE__ */ jsxs(Fragment2, {
|
|
491
466
|
children: [
|
|
492
|
-
computedProps.label && /* @__PURE__ */
|
|
467
|
+
computedProps.label && /* @__PURE__ */ jsx5("div", {
|
|
493
468
|
className: "ant-form-item-label",
|
|
494
|
-
children: /* @__PURE__ */
|
|
469
|
+
children: /* @__PURE__ */ jsx5("label", {
|
|
495
470
|
className: computedProps.rules.find((r) => r.required) && "ant-form-item-required",
|
|
496
471
|
children: computedProps.label
|
|
497
472
|
})
|
|
498
473
|
}),
|
|
499
474
|
fields.map((field) => {
|
|
500
475
|
var _a3;
|
|
501
|
-
return /* @__PURE__ */
|
|
476
|
+
return /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
502
477
|
children: /* @__PURE__ */ jsxs(Row, {
|
|
503
478
|
gutter: 24,
|
|
504
479
|
style: { flexFlow: "row nowrap" },
|
|
505
480
|
children: [
|
|
506
|
-
/* @__PURE__ */
|
|
481
|
+
/* @__PURE__ */ jsx5(Col, {
|
|
507
482
|
span: 23,
|
|
508
|
-
children: /* @__PURE__ */
|
|
483
|
+
children: /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
509
484
|
...field,
|
|
510
485
|
noStyle: true,
|
|
511
|
-
children: /* @__PURE__ */
|
|
486
|
+
children: /* @__PURE__ */ jsx5(Input, {
|
|
512
487
|
...computedProps.input
|
|
513
488
|
})
|
|
514
489
|
})
|
|
515
490
|
}),
|
|
516
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ jsx5(Col, {
|
|
517
492
|
span: 1,
|
|
518
|
-
children: !((_a3 = computedProps.input) == null ? void 0 : _a3.disabled) && (!computedProps.rules.find((r) => r.required) || field.key > 0) && /* @__PURE__ */
|
|
493
|
+
children: !((_a3 = computedProps.input) == null ? void 0 : _a3.disabled) && (!computedProps.rules.find((r) => r.required) || field.key > 0) && /* @__PURE__ */ jsx5(Button, {
|
|
519
494
|
danger: true,
|
|
520
495
|
type: "link",
|
|
521
496
|
style: { float: "right" },
|
|
522
|
-
icon: /* @__PURE__ */
|
|
497
|
+
icon: /* @__PURE__ */ jsx5(MinusCircleOutlined, {}),
|
|
523
498
|
onClick: () => remove(field.name)
|
|
524
499
|
})
|
|
525
500
|
})
|
|
@@ -529,13 +504,13 @@ function FormItem(props) {
|
|
|
529
504
|
}),
|
|
530
505
|
/* @__PURE__ */ jsxs(AntdForm.Item, {
|
|
531
506
|
children: [
|
|
532
|
-
!((_a2 = computedProps.input) == null ? void 0 : _a2.disabled) && (!computedProps.maxCount || computedProps.maxCount > fields.length) && /* @__PURE__ */
|
|
507
|
+
!((_a2 = computedProps.input) == null ? void 0 : _a2.disabled) && (!computedProps.maxCount || computedProps.maxCount > fields.length) && /* @__PURE__ */ jsx5(Button, {
|
|
533
508
|
type: "dashed",
|
|
534
509
|
block: true,
|
|
535
510
|
onClick: () => add(),
|
|
536
|
-
icon: /* @__PURE__ */
|
|
511
|
+
icon: /* @__PURE__ */ jsx5(PlusOutlined, {})
|
|
537
512
|
}),
|
|
538
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ jsx5(AntdForm.ErrorList, {
|
|
539
514
|
errors
|
|
540
515
|
})
|
|
541
516
|
]
|
|
@@ -545,63 +520,63 @@ function FormItem(props) {
|
|
|
545
520
|
}
|
|
546
521
|
});
|
|
547
522
|
case "number":
|
|
548
|
-
return /* @__PURE__ */
|
|
523
|
+
return /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
549
524
|
...computedProps,
|
|
550
|
-
children: computedProps.options ? /* @__PURE__ */
|
|
525
|
+
children: computedProps.options ? /* @__PURE__ */ jsx5(Select, {
|
|
551
526
|
...computedProps.input
|
|
552
|
-
}) : /* @__PURE__ */
|
|
527
|
+
}) : /* @__PURE__ */ jsx5(InputNumber, {
|
|
553
528
|
style: { width: "100%" },
|
|
554
529
|
...computedProps.input
|
|
555
530
|
})
|
|
556
531
|
});
|
|
557
532
|
case "number[]":
|
|
558
533
|
if (computedProps.options)
|
|
559
|
-
return /* @__PURE__ */
|
|
534
|
+
return /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
560
535
|
...computedProps,
|
|
561
|
-
children: /* @__PURE__ */
|
|
536
|
+
children: /* @__PURE__ */ jsx5(Select, {
|
|
562
537
|
mode: "multiple",
|
|
563
538
|
...computedProps.input
|
|
564
539
|
})
|
|
565
540
|
});
|
|
566
|
-
return /* @__PURE__ */
|
|
541
|
+
return /* @__PURE__ */ jsx5(AntdForm.List, {
|
|
567
542
|
name: computedProps.name,
|
|
568
543
|
rules: computedProps.rules,
|
|
569
544
|
children: (fields, { add, remove }, { errors }) => {
|
|
570
545
|
var _a2, _b;
|
|
571
546
|
return /* @__PURE__ */ jsxs(Fragment2, {
|
|
572
547
|
children: [
|
|
573
|
-
computedProps.label && /* @__PURE__ */
|
|
548
|
+
computedProps.label && /* @__PURE__ */ jsx5("div", {
|
|
574
549
|
className: "ant-form-item-label",
|
|
575
|
-
children: /* @__PURE__ */
|
|
550
|
+
children: /* @__PURE__ */ jsx5("label", {
|
|
576
551
|
className: ((_a2 = computedProps.rules) == null ? void 0 : _a2.find((r) => r.required)) && "ant-form-item-required",
|
|
577
552
|
children: computedProps.label
|
|
578
553
|
})
|
|
579
554
|
}),
|
|
580
555
|
fields.map((field) => {
|
|
581
556
|
var _a3;
|
|
582
|
-
return /* @__PURE__ */
|
|
557
|
+
return /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
583
558
|
children: /* @__PURE__ */ jsxs(Row, {
|
|
584
559
|
gutter: 24,
|
|
585
560
|
style: { flexFlow: "row nowrap" },
|
|
586
561
|
children: [
|
|
587
|
-
/* @__PURE__ */
|
|
562
|
+
/* @__PURE__ */ jsx5(Col, {
|
|
588
563
|
span: 23,
|
|
589
|
-
children: /* @__PURE__ */
|
|
564
|
+
children: /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
590
565
|
...field,
|
|
591
566
|
noStyle: true,
|
|
592
|
-
children: /* @__PURE__ */
|
|
567
|
+
children: /* @__PURE__ */ jsx5(InputNumber, {
|
|
593
568
|
style: { width: "100%" },
|
|
594
569
|
...computedProps.input
|
|
595
570
|
})
|
|
596
571
|
})
|
|
597
572
|
}),
|
|
598
|
-
/* @__PURE__ */
|
|
573
|
+
/* @__PURE__ */ jsx5(Col, {
|
|
599
574
|
span: 1,
|
|
600
|
-
children: !((_a3 = computedProps.input) == null ? void 0 : _a3.disabled) && (!computedProps.rules.find((r) => r.required) || field.key > 0) && /* @__PURE__ */
|
|
575
|
+
children: !((_a3 = computedProps.input) == null ? void 0 : _a3.disabled) && (!computedProps.rules.find((r) => r.required) || field.key > 0) && /* @__PURE__ */ jsx5(Button, {
|
|
601
576
|
danger: true,
|
|
602
577
|
type: "link",
|
|
603
578
|
style: { float: "right" },
|
|
604
|
-
icon: /* @__PURE__ */
|
|
579
|
+
icon: /* @__PURE__ */ jsx5(MinusCircleOutlined, {}),
|
|
605
580
|
onClick: () => remove(field.name)
|
|
606
581
|
})
|
|
607
582
|
})
|
|
@@ -611,13 +586,13 @@ function FormItem(props) {
|
|
|
611
586
|
}),
|
|
612
587
|
/* @__PURE__ */ jsxs(AntdForm.Item, {
|
|
613
588
|
children: [
|
|
614
|
-
!((_b = computedProps.input) == null ? void 0 : _b.disabled) && (!computedProps.maxCount || computedProps.maxCount > fields.length) && /* @__PURE__ */
|
|
589
|
+
!((_b = computedProps.input) == null ? void 0 : _b.disabled) && (!computedProps.maxCount || computedProps.maxCount > fields.length) && /* @__PURE__ */ jsx5(Button, {
|
|
615
590
|
type: "dashed",
|
|
616
591
|
block: true,
|
|
617
592
|
onClick: () => add(),
|
|
618
|
-
icon: /* @__PURE__ */
|
|
593
|
+
icon: /* @__PURE__ */ jsx5(PlusOutlined, {})
|
|
619
594
|
}),
|
|
620
|
-
/* @__PURE__ */
|
|
595
|
+
/* @__PURE__ */ jsx5(AntdForm.ErrorList, {
|
|
621
596
|
errors
|
|
622
597
|
})
|
|
623
598
|
]
|
|
@@ -627,43 +602,43 @@ function FormItem(props) {
|
|
|
627
602
|
}
|
|
628
603
|
});
|
|
629
604
|
case "boolean":
|
|
630
|
-
return /* @__PURE__ */
|
|
605
|
+
return /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
631
606
|
...computedProps,
|
|
632
|
-
children: /* @__PURE__ */
|
|
607
|
+
children: /* @__PURE__ */ jsx5(Switch, {
|
|
633
608
|
...computedProps.input
|
|
634
609
|
})
|
|
635
610
|
});
|
|
636
611
|
case "date":
|
|
637
|
-
return /* @__PURE__ */
|
|
612
|
+
return /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
638
613
|
...computedProps,
|
|
639
|
-
children: /* @__PURE__ */
|
|
614
|
+
children: /* @__PURE__ */ jsx5(DatePicker, {
|
|
640
615
|
...computedProps.input
|
|
641
616
|
})
|
|
642
617
|
});
|
|
643
618
|
case "time":
|
|
644
|
-
return /* @__PURE__ */
|
|
619
|
+
return /* @__PURE__ */ jsx5(AntdForm.Item, {
|
|
645
620
|
...computedProps,
|
|
646
|
-
children: /* @__PURE__ */
|
|
621
|
+
children: /* @__PURE__ */ jsx5(TimePicker, {
|
|
647
622
|
...computedProps.input
|
|
648
623
|
})
|
|
649
624
|
});
|
|
650
625
|
case "object":
|
|
651
626
|
return /* @__PURE__ */ jsxs(Fragment2, {
|
|
652
627
|
children: [
|
|
653
|
-
computedProps.label && /* @__PURE__ */
|
|
628
|
+
computedProps.label && /* @__PURE__ */ jsx5("div", {
|
|
654
629
|
className: "ant-form-item-label",
|
|
655
|
-
children: /* @__PURE__ */
|
|
630
|
+
children: /* @__PURE__ */ jsx5("label", {
|
|
656
631
|
className: ((_a = computedProps.rules) == null ? void 0 : _a.find((r) => r.required)) && "ant-form-item-required",
|
|
657
632
|
children: computedProps.label
|
|
658
633
|
})
|
|
659
634
|
}),
|
|
660
|
-
computedProps.object.map((o) => /* @__PURE__ */
|
|
635
|
+
computedProps.object.map((o) => /* @__PURE__ */ jsx5(FormItem, {
|
|
661
636
|
...o
|
|
662
637
|
}, o.id))
|
|
663
638
|
]
|
|
664
639
|
});
|
|
665
640
|
case "object[]":
|
|
666
|
-
return /* @__PURE__ */
|
|
641
|
+
return /* @__PURE__ */ jsx5(AntdForm.List, {
|
|
667
642
|
name: computedProps.name,
|
|
668
643
|
rules: computedProps.rules,
|
|
669
644
|
children: (fields, { add, remove }, { errors }) => /* @__PURE__ */ jsxs(Fragment2, {
|
|
@@ -671,14 +646,14 @@ function FormItem(props) {
|
|
|
671
646
|
fields.map((field) => /* @__PURE__ */ jsxs(AntdForm.Item, {
|
|
672
647
|
style: { marginBottom: 0 },
|
|
673
648
|
children: [
|
|
674
|
-
/* @__PURE__ */
|
|
649
|
+
/* @__PURE__ */ jsx5("div", {
|
|
675
650
|
className: "ant-form-item-label",
|
|
676
651
|
children: /* @__PURE__ */ jsxs("label", {
|
|
677
652
|
children: [
|
|
678
653
|
computedProps.label,
|
|
679
654
|
" ",
|
|
680
655
|
field.name + 1,
|
|
681
|
-
!computedProps.disabled && (!computedProps.rules.find((r) => r.required) || field.key > 0) && /* @__PURE__ */
|
|
656
|
+
!computedProps.disabled && (!computedProps.rules.find((r) => r.required) || field.key > 0) && /* @__PURE__ */ jsx5(Button, {
|
|
682
657
|
danger: true,
|
|
683
658
|
type: "link",
|
|
684
659
|
onClick: () => remove(field.name),
|
|
@@ -687,11 +662,11 @@ function FormItem(props) {
|
|
|
687
662
|
]
|
|
688
663
|
})
|
|
689
664
|
}),
|
|
690
|
-
/* @__PURE__ */
|
|
665
|
+
/* @__PURE__ */ jsx5(Row, {
|
|
691
666
|
gutter: 24,
|
|
692
|
-
children: computedProps.object.map((o) => /* @__PURE__ */
|
|
667
|
+
children: computedProps.object.map((o) => /* @__PURE__ */ jsx5(Col, {
|
|
693
668
|
span: o.col || 24,
|
|
694
|
-
children: /* @__PURE__ */
|
|
669
|
+
children: /* @__PURE__ */ jsx5(FormItem, {
|
|
695
670
|
...o,
|
|
696
671
|
name: [field.name, o.id]
|
|
697
672
|
})
|
|
@@ -705,14 +680,14 @@ function FormItem(props) {
|
|
|
705
680
|
type: "dashed",
|
|
706
681
|
block: true,
|
|
707
682
|
onClick: () => add(),
|
|
708
|
-
icon: /* @__PURE__ */
|
|
683
|
+
icon: /* @__PURE__ */ jsx5(PlusOutlined, {}),
|
|
709
684
|
children: [
|
|
710
685
|
config.common.add,
|
|
711
686
|
" ",
|
|
712
687
|
computedProps.label
|
|
713
688
|
]
|
|
714
689
|
}),
|
|
715
|
-
/* @__PURE__ */
|
|
690
|
+
/* @__PURE__ */ jsx5(AntdForm.ErrorList, {
|
|
716
691
|
errors
|
|
717
692
|
})
|
|
718
693
|
]
|
|
@@ -726,7 +701,7 @@ function FormItem(props) {
|
|
|
726
701
|
}
|
|
727
702
|
|
|
728
703
|
// src/Form.tsx
|
|
729
|
-
import { jsx as
|
|
704
|
+
import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
730
705
|
function Form(props) {
|
|
731
706
|
var _a, _b;
|
|
732
707
|
const [loading, setLoading] = useState5(false);
|
|
@@ -807,12 +782,12 @@ function Form(props) {
|
|
|
807
782
|
onValuesChange,
|
|
808
783
|
children: [
|
|
809
784
|
computedProps.beforeItems,
|
|
810
|
-
(_a = computedProps.items) == null ? void 0 : _a.map((item) => /* @__PURE__ */
|
|
785
|
+
(_a = computedProps.items) == null ? void 0 : _a.map((item) => /* @__PURE__ */ jsx6(FormItem, {
|
|
811
786
|
...item,
|
|
812
787
|
extendTypes
|
|
813
788
|
}, item.id)),
|
|
814
789
|
computedProps.children,
|
|
815
|
-
computedProps.submit !== false && /* @__PURE__ */
|
|
790
|
+
computedProps.submit !== false && /* @__PURE__ */ jsx6(Button2, {
|
|
816
791
|
htmlType: "submit",
|
|
817
792
|
type: "primary",
|
|
818
793
|
loading,
|
|
@@ -827,7 +802,7 @@ Form.useForm = AntdForm2.useForm;
|
|
|
827
802
|
// src/Link.tsx
|
|
828
803
|
import { Link as RouterLink } from "react-router-dom";
|
|
829
804
|
import { Button as Button3 } from "antd";
|
|
830
|
-
import { jsx as
|
|
805
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
831
806
|
function Link({
|
|
832
807
|
href,
|
|
833
808
|
target,
|
|
@@ -840,9 +815,9 @@ function Link({
|
|
|
840
815
|
style = Object.assign({ cursor: "pointer" }, style);
|
|
841
816
|
if (href.startsWith("http")) {
|
|
842
817
|
if (button)
|
|
843
|
-
return /* @__PURE__ */
|
|
818
|
+
return /* @__PURE__ */ jsx7(Button3, {
|
|
844
819
|
...button,
|
|
845
|
-
children: /* @__PURE__ */
|
|
820
|
+
children: /* @__PURE__ */ jsx7("a", {
|
|
846
821
|
href,
|
|
847
822
|
target: target || (Link2 == null ? void 0 : Link2.target) || "_blank",
|
|
848
823
|
style: {
|
|
@@ -852,7 +827,7 @@ function Link({
|
|
|
852
827
|
children: text || children
|
|
853
828
|
})
|
|
854
829
|
});
|
|
855
|
-
return /* @__PURE__ */
|
|
830
|
+
return /* @__PURE__ */ jsx7("a", {
|
|
856
831
|
href,
|
|
857
832
|
target: target || (Link2 == null ? void 0 : Link2.target) || "_blank",
|
|
858
833
|
style: {
|
|
@@ -863,9 +838,9 @@ function Link({
|
|
|
863
838
|
});
|
|
864
839
|
}
|
|
865
840
|
if (button)
|
|
866
|
-
return /* @__PURE__ */
|
|
841
|
+
return /* @__PURE__ */ jsx7(Button3, {
|
|
867
842
|
...button,
|
|
868
|
-
children: /* @__PURE__ */
|
|
843
|
+
children: /* @__PURE__ */ jsx7(RouterLink, {
|
|
869
844
|
to: href,
|
|
870
845
|
target: target || (Link2 == null ? void 0 : Link2.target),
|
|
871
846
|
style: {
|
|
@@ -875,7 +850,7 @@ function Link({
|
|
|
875
850
|
children: text || children
|
|
876
851
|
})
|
|
877
852
|
});
|
|
878
|
-
return /* @__PURE__ */
|
|
853
|
+
return /* @__PURE__ */ jsx7(RouterLink, {
|
|
879
854
|
to: href,
|
|
880
855
|
target: target || (Link2 == null ? void 0 : Link2.target),
|
|
881
856
|
style: {
|
|
@@ -889,7 +864,7 @@ function Link({
|
|
|
889
864
|
// src/Modal.tsx
|
|
890
865
|
import { Modal } from "antd";
|
|
891
866
|
import { useState as useState6 } from "react";
|
|
892
|
-
import { jsx as
|
|
867
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
893
868
|
function useModal(init) {
|
|
894
869
|
const [props, setProps] = useState6({
|
|
895
870
|
open: false,
|
|
@@ -900,7 +875,7 @@ function useModal(init) {
|
|
|
900
875
|
...init
|
|
901
876
|
});
|
|
902
877
|
return {
|
|
903
|
-
modal: /* @__PURE__ */
|
|
878
|
+
modal: /* @__PURE__ */ jsx8(Modal, {
|
|
904
879
|
...props
|
|
905
880
|
}),
|
|
906
881
|
modalProps: props,
|
|
@@ -922,10 +897,10 @@ import {
|
|
|
922
897
|
Routes as OriginRoutes,
|
|
923
898
|
Route
|
|
924
899
|
} from "react-router-dom";
|
|
925
|
-
import { jsx as
|
|
900
|
+
import { jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
926
901
|
function PageNotFound() {
|
|
927
902
|
const config = useConfigContext();
|
|
928
|
-
return /* @__PURE__ */
|
|
903
|
+
return /* @__PURE__ */ jsx9(Result, {
|
|
929
904
|
status: "404",
|
|
930
905
|
title: config.common.pageNotFound
|
|
931
906
|
});
|
|
@@ -933,21 +908,21 @@ function PageNotFound() {
|
|
|
933
908
|
function Routes(props) {
|
|
934
909
|
return /* @__PURE__ */ jsxs3(OriginRoutes, {
|
|
935
910
|
children: [
|
|
936
|
-
props.routes.map((r) => /* @__PURE__ */
|
|
911
|
+
props.routes.map((r) => /* @__PURE__ */ jsx9(Route, {
|
|
937
912
|
...r,
|
|
938
|
-
element: r.element || /* @__PURE__ */
|
|
939
|
-
fallback: props.fallback || /* @__PURE__ */
|
|
913
|
+
element: r.element || /* @__PURE__ */ jsx9(Suspense, {
|
|
914
|
+
fallback: props.fallback || /* @__PURE__ */ jsx9("div", {
|
|
940
915
|
style: { padding: "24px" },
|
|
941
|
-
children: /* @__PURE__ */
|
|
916
|
+
children: /* @__PURE__ */ jsx9(Skeleton2, {
|
|
942
917
|
active: true
|
|
943
918
|
})
|
|
944
919
|
}),
|
|
945
|
-
children: /* @__PURE__ */
|
|
920
|
+
children: /* @__PURE__ */ jsx9(r.page, {})
|
|
946
921
|
})
|
|
947
922
|
}, r.path)),
|
|
948
|
-
/* @__PURE__ */
|
|
923
|
+
/* @__PURE__ */ jsx9(Route, {
|
|
949
924
|
path: "*",
|
|
950
|
-
element: props.notFound || /* @__PURE__ */
|
|
925
|
+
element: props.notFound || /* @__PURE__ */ jsx9(PageNotFound, {})
|
|
951
926
|
}, "*")
|
|
952
927
|
]
|
|
953
928
|
});
|
|
@@ -973,12 +948,12 @@ import {
|
|
|
973
948
|
upperFirst as upperFirst4
|
|
974
949
|
} from "lodash";
|
|
975
950
|
import { FaasDataWrapper as FaasDataWrapper2 } from "@faasjs/react";
|
|
976
|
-
import { jsx as
|
|
951
|
+
import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
977
952
|
function processValue(item, value) {
|
|
978
953
|
var _a;
|
|
979
954
|
const transferred = transferValue(item.type, value);
|
|
980
955
|
if (transferred === null || Array.isArray(transferred) && transferred.length === 0)
|
|
981
|
-
return /* @__PURE__ */
|
|
956
|
+
return /* @__PURE__ */ jsx10(Blank, {});
|
|
982
957
|
if (item.options) {
|
|
983
958
|
if (item.type.endsWith("[]"))
|
|
984
959
|
return transferred.map((v) => {
|
|
@@ -1051,7 +1026,7 @@ function Table(props) {
|
|
|
1051
1026
|
setSelectedKeys,
|
|
1052
1027
|
confirm,
|
|
1053
1028
|
clearFilters
|
|
1054
|
-
}) => /* @__PURE__ */
|
|
1029
|
+
}) => /* @__PURE__ */ jsx10(Input2.Search, {
|
|
1055
1030
|
placeholder: `${common2.search} ${item.title}`,
|
|
1056
1031
|
allowClear: true,
|
|
1057
1032
|
onSearch: (v) => {
|
|
@@ -1079,7 +1054,7 @@ function Table(props) {
|
|
|
1079
1054
|
setSelectedKeys,
|
|
1080
1055
|
confirm,
|
|
1081
1056
|
clearFilters
|
|
1082
|
-
}) => /* @__PURE__ */
|
|
1057
|
+
}) => /* @__PURE__ */ jsx10(Input2.Search, {
|
|
1083
1058
|
placeholder: `${common2.search} ${item.title}`,
|
|
1084
1059
|
allowClear: true,
|
|
1085
1060
|
onSearch: (v) => {
|
|
@@ -1105,7 +1080,7 @@ function Table(props) {
|
|
|
1105
1080
|
setSelectedKeys,
|
|
1106
1081
|
confirm,
|
|
1107
1082
|
clearFilters
|
|
1108
|
-
}) => /* @__PURE__ */
|
|
1083
|
+
}) => /* @__PURE__ */ jsx10(Input2.Search, {
|
|
1109
1084
|
placeholder: `${common2.search} ${item.title}`,
|
|
1110
1085
|
allowClear: true,
|
|
1111
1086
|
onSearch: (v) => {
|
|
@@ -1129,7 +1104,7 @@ function Table(props) {
|
|
|
1129
1104
|
setSelectedKeys,
|
|
1130
1105
|
confirm,
|
|
1131
1106
|
clearFilters
|
|
1132
|
-
}) => /* @__PURE__ */
|
|
1107
|
+
}) => /* @__PURE__ */ jsx10(Input2.Search, {
|
|
1133
1108
|
placeholder: `${common2.search} ${item.title}`,
|
|
1134
1109
|
allowClear: true,
|
|
1135
1110
|
onSearch: (v) => {
|
|
@@ -1145,12 +1120,12 @@ function Table(props) {
|
|
|
1145
1120
|
break;
|
|
1146
1121
|
case "boolean":
|
|
1147
1122
|
if (!item.render)
|
|
1148
|
-
item.render = (value) => typeof value === "undefined" ? /* @__PURE__ */
|
|
1123
|
+
item.render = (value) => typeof value === "undefined" ? /* @__PURE__ */ jsx10(Blank, {}) : value ? /* @__PURE__ */ jsx10(CheckOutlined2, {
|
|
1149
1124
|
style: {
|
|
1150
1125
|
marginTop: "4px",
|
|
1151
1126
|
color: "#52c41a"
|
|
1152
1127
|
}
|
|
1153
|
-
}) : /* @__PURE__ */
|
|
1128
|
+
}) : /* @__PURE__ */ jsx10(CloseOutlined2, {
|
|
1154
1129
|
style: {
|
|
1155
1130
|
marginTop: "4px",
|
|
1156
1131
|
color: "#ff4d4f"
|
|
@@ -1170,28 +1145,28 @@ function Table(props) {
|
|
|
1170
1145
|
confirm();
|
|
1171
1146
|
},
|
|
1172
1147
|
children: [
|
|
1173
|
-
/* @__PURE__ */
|
|
1148
|
+
/* @__PURE__ */ jsx10(Radio.Button, {
|
|
1174
1149
|
children: common2.all
|
|
1175
1150
|
}),
|
|
1176
|
-
/* @__PURE__ */
|
|
1151
|
+
/* @__PURE__ */ jsx10(Radio.Button, {
|
|
1177
1152
|
value: "true",
|
|
1178
|
-
children: /* @__PURE__ */
|
|
1153
|
+
children: /* @__PURE__ */ jsx10(CheckOutlined2, {
|
|
1179
1154
|
style: {
|
|
1180
1155
|
color: "#52c41a",
|
|
1181
1156
|
verticalAlign: "middle"
|
|
1182
1157
|
}
|
|
1183
1158
|
})
|
|
1184
1159
|
}),
|
|
1185
|
-
/* @__PURE__ */
|
|
1160
|
+
/* @__PURE__ */ jsx10(Radio.Button, {
|
|
1186
1161
|
value: "false",
|
|
1187
|
-
children: /* @__PURE__ */
|
|
1162
|
+
children: /* @__PURE__ */ jsx10(CloseOutlined2, {
|
|
1188
1163
|
style: {
|
|
1189
1164
|
verticalAlign: "middle",
|
|
1190
1165
|
color: "#ff4d4f"
|
|
1191
1166
|
}
|
|
1192
1167
|
})
|
|
1193
1168
|
}),
|
|
1194
|
-
/* @__PURE__ */
|
|
1169
|
+
/* @__PURE__ */ jsx10(Radio.Button, {
|
|
1195
1170
|
value: "empty",
|
|
1196
1171
|
children: common2.blank
|
|
1197
1172
|
})
|
|
@@ -1229,7 +1204,7 @@ function Table(props) {
|
|
|
1229
1204
|
break;
|
|
1230
1205
|
case "object":
|
|
1231
1206
|
if (!item.render)
|
|
1232
|
-
item.render = (value) => /* @__PURE__ */
|
|
1207
|
+
item.render = (value) => /* @__PURE__ */ jsx10(Description, {
|
|
1233
1208
|
items: item.object,
|
|
1234
1209
|
dataSource: value || {},
|
|
1235
1210
|
column: 1
|
|
@@ -1237,7 +1212,7 @@ function Table(props) {
|
|
|
1237
1212
|
break;
|
|
1238
1213
|
case "object[]":
|
|
1239
1214
|
if (!item.render)
|
|
1240
|
-
item.render = (value) => value.map((v, i) => /* @__PURE__ */
|
|
1215
|
+
item.render = (value) => value.map((v, i) => /* @__PURE__ */ jsx10(Description, {
|
|
1241
1216
|
items: item.object,
|
|
1242
1217
|
dataSource: v || [],
|
|
1243
1218
|
column: 1
|
|
@@ -1273,14 +1248,14 @@ function Table(props) {
|
|
|
1273
1248
|
if (!columns)
|
|
1274
1249
|
return null;
|
|
1275
1250
|
if (!props.faasData)
|
|
1276
|
-
return /* @__PURE__ */
|
|
1251
|
+
return /* @__PURE__ */ jsx10(AntdTable, {
|
|
1277
1252
|
...props,
|
|
1278
1253
|
rowKey: props.rowKey || "id",
|
|
1279
1254
|
columns,
|
|
1280
1255
|
dataSource: props.dataSource
|
|
1281
1256
|
});
|
|
1282
|
-
return /* @__PURE__ */
|
|
1283
|
-
fallback: props.faasData.fallback || /* @__PURE__ */
|
|
1257
|
+
return /* @__PURE__ */ jsx10(FaasDataWrapper2, {
|
|
1258
|
+
fallback: props.faasData.fallback || /* @__PURE__ */ jsx10(Skeleton3, {
|
|
1284
1259
|
active: true
|
|
1285
1260
|
}),
|
|
1286
1261
|
render: ({
|
|
@@ -1289,20 +1264,20 @@ function Table(props) {
|
|
|
1289
1264
|
reload
|
|
1290
1265
|
}) => {
|
|
1291
1266
|
if (!data)
|
|
1292
|
-
return /* @__PURE__ */
|
|
1267
|
+
return /* @__PURE__ */ jsx10(AntdTable, {
|
|
1293
1268
|
...props,
|
|
1294
1269
|
rowKey: props.rowKey || "id",
|
|
1295
1270
|
columns,
|
|
1296
1271
|
dataSource: []
|
|
1297
1272
|
});
|
|
1298
1273
|
if (Array.isArray(data))
|
|
1299
|
-
return /* @__PURE__ */
|
|
1274
|
+
return /* @__PURE__ */ jsx10(AntdTable, {
|
|
1300
1275
|
...props,
|
|
1301
1276
|
rowKey: props.rowKey || "id",
|
|
1302
1277
|
columns,
|
|
1303
1278
|
dataSource: data
|
|
1304
1279
|
});
|
|
1305
|
-
return /* @__PURE__ */
|
|
1280
|
+
return /* @__PURE__ */ jsx10(AntdTable, {
|
|
1306
1281
|
...props,
|
|
1307
1282
|
rowKey: props.rowKey || "id",
|
|
1308
1283
|
columns,
|
|
@@ -1337,8 +1312,7 @@ function Table(props) {
|
|
|
1337
1312
|
|
|
1338
1313
|
// src/Title.tsx
|
|
1339
1314
|
import { useEffect as useEffect6, cloneElement as cloneElement3 } from "react";
|
|
1340
|
-
import {
|
|
1341
|
-
import { Fragment as Fragment3, jsx as jsx12 } from "react/jsx-runtime";
|
|
1315
|
+
import { Fragment as Fragment3, jsx as jsx11 } from "react/jsx-runtime";
|
|
1342
1316
|
function Title(props) {
|
|
1343
1317
|
const { Title: Title2 } = useConfigContext();
|
|
1344
1318
|
useEffect6(() => {
|
|
@@ -1347,34 +1321,27 @@ function Title(props) {
|
|
|
1347
1321
|
}, [props]);
|
|
1348
1322
|
if (props.h1) {
|
|
1349
1323
|
if (typeof props.h1 === "boolean")
|
|
1350
|
-
return /* @__PURE__ */
|
|
1324
|
+
return /* @__PURE__ */ jsx11("h1", {
|
|
1351
1325
|
children: Array.isArray(props.title) ? props.title[0] : props.title
|
|
1352
1326
|
});
|
|
1353
|
-
return /* @__PURE__ */
|
|
1327
|
+
return /* @__PURE__ */ jsx11("h1", {
|
|
1354
1328
|
className: props.h1.className,
|
|
1355
1329
|
style: props.h1.style,
|
|
1356
1330
|
children: Array.isArray(props.title) ? props.title[0] : props.title
|
|
1357
1331
|
});
|
|
1358
1332
|
}
|
|
1359
1333
|
if (props.plain)
|
|
1360
|
-
return /* @__PURE__ */
|
|
1334
|
+
return /* @__PURE__ */ jsx11(Fragment3, {
|
|
1361
1335
|
children: Array.isArray(props.title) ? props.title[0] : props.title
|
|
1362
1336
|
});
|
|
1363
|
-
if (props.header)
|
|
1364
|
-
return /* @__PURE__ */ jsx12(PageHeader, {
|
|
1365
|
-
title: Array.isArray(props.title) ? props.title[0] : props.title,
|
|
1366
|
-
...props.header
|
|
1367
|
-
});
|
|
1368
1337
|
if (props.children)
|
|
1369
1338
|
return cloneElement3(props.children, { title: props.title });
|
|
1370
1339
|
return null;
|
|
1371
1340
|
}
|
|
1372
1341
|
export {
|
|
1373
1342
|
Blank,
|
|
1374
|
-
Calendar,
|
|
1375
1343
|
ConfigContext,
|
|
1376
1344
|
ConfigProvider,
|
|
1377
|
-
DatePicker,
|
|
1378
1345
|
Description,
|
|
1379
1346
|
Drawer,
|
|
1380
1347
|
Form,
|
|
@@ -1384,7 +1351,6 @@ export {
|
|
|
1384
1351
|
PageNotFound,
|
|
1385
1352
|
Routes,
|
|
1386
1353
|
Table,
|
|
1387
|
-
TimePicker,
|
|
1388
1354
|
Title,
|
|
1389
1355
|
transferOptions,
|
|
1390
1356
|
transferValue,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3-beta.1",
|
|
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.
|
|
31
|
+
"@faasjs/react": "^0.0.3-beta.1",
|
|
32
32
|
"react-router-dom": "*",
|
|
33
33
|
"dayjs": "*"
|
|
34
34
|
},
|