@faasjs/ant-design 1.4.2 → 1.6.0
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 +49 -1011
- package/dist/index.d.mts +55 -9
- package/dist/index.d.ts +55 -9
- package/dist/index.js +106 -68
- package/dist/index.mjs +109 -66
- package/package.json +4 -3
package/dist/index.d.mts
CHANGED
|
@@ -5,12 +5,14 @@ import { ConfigProviderProps as ConfigProviderProps$1 } from 'antd/es/config-pro
|
|
|
5
5
|
import { StyleProviderProps } from '@ant-design/cssinjs/lib/StyleContext';
|
|
6
6
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
7
7
|
import { NotificationInstance } from 'antd/es/notification/interface';
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
import
|
|
8
|
+
import * as antd_es_modal_PurePanel from 'antd/es/modal/PurePanel';
|
|
9
|
+
import * as antd_es_modal_useModal from 'antd/es/modal/useModal';
|
|
10
|
+
import * as antd_es_modal_confirm from 'antd/es/modal/confirm';
|
|
11
11
|
import * as react from 'react';
|
|
12
12
|
import { CSSProperties, ReactNode, ReactElement, LazyExoticComponent, ComponentType } from 'react';
|
|
13
13
|
export { lazy } from 'react';
|
|
14
|
+
import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, InputProps, InputNumberProps, SwitchProps, SelectProps, DatePickerProps, FormInstance, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
|
|
15
|
+
import { BrowserRouterProps, RouteProps } from 'react-router-dom';
|
|
14
16
|
import { Dayjs } from 'dayjs';
|
|
15
17
|
import { RuleObject } from 'rc-field-form/lib/interface';
|
|
16
18
|
import { FilterValue, SorterResult, TableCurrentDataSource } from 'antd/es/table/interface';
|
|
@@ -21,10 +23,16 @@ import * as antd_es_form_hooks_useFormInstance from 'antd/es/form/hooks/useFormI
|
|
|
21
23
|
import * as antd_es_form_Form from 'antd/es/form/Form';
|
|
22
24
|
import { Tab } from 'rc-tabs/es/interface';
|
|
23
25
|
|
|
26
|
+
declare const Modal: react.FC<ModalProps$1> & antd_es_modal_confirm.ModalStaticFunctions & {
|
|
27
|
+
useModal: typeof antd_es_modal_useModal.default;
|
|
28
|
+
destroyAll: () => void;
|
|
29
|
+
config: typeof antd_es_modal_confirm.modalGlobalConfig;
|
|
30
|
+
_InternalPanelDoNotUseOrYouWillBeFired: (props: antd_es_modal_PurePanel.PurePanelProps) => react.JSX.Element;
|
|
31
|
+
};
|
|
24
32
|
interface ModalProps extends ModalProps$1 {
|
|
25
33
|
children?: JSX.Element | JSX.Element[] | string;
|
|
26
34
|
}
|
|
27
|
-
type setModalProps = (changes: Partial<ModalProps>) => void;
|
|
35
|
+
type setModalProps = (changes: Partial<ModalProps> | ((prev: Partial<ModalProps>) => Partial<ModalProps>)) => void;
|
|
28
36
|
/**
|
|
29
37
|
* Hook style modal
|
|
30
38
|
*
|
|
@@ -42,13 +50,16 @@ type setModalProps = (changes: Partial<ModalProps>) => void;
|
|
|
42
50
|
declare function useModal(init?: ModalProps): {
|
|
43
51
|
modal: react_jsx_runtime.JSX.Element;
|
|
44
52
|
modalProps: ModalProps;
|
|
45
|
-
setModalProps
|
|
53
|
+
setModalProps: setModalProps;
|
|
46
54
|
};
|
|
47
55
|
|
|
56
|
+
declare const Drawer: react.FC<DrawerProps> & {
|
|
57
|
+
whyDidYouRender?: boolean;
|
|
58
|
+
};
|
|
48
59
|
interface DrawerProps extends DrawerProps$1 {
|
|
49
60
|
children?: JSX.Element | JSX.Element[];
|
|
50
61
|
}
|
|
51
|
-
type setDrawerProps = (changes: Partial<DrawerProps>) => void;
|
|
62
|
+
type setDrawerProps = (changes: Partial<DrawerProps> | ((prev: Partial<DrawerProps>) => Partial<DrawerProps>)) => void;
|
|
52
63
|
/**
|
|
53
64
|
* Hook style drawer
|
|
54
65
|
*
|
|
@@ -68,13 +79,16 @@ type setDrawerProps = (changes: Partial<DrawerProps>) => void;
|
|
|
68
79
|
declare function useDrawer(init?: DrawerProps): {
|
|
69
80
|
drawer: react_jsx_runtime.JSX.Element;
|
|
70
81
|
drawerProps: DrawerProps;
|
|
71
|
-
setDrawerProps
|
|
82
|
+
setDrawerProps: setDrawerProps;
|
|
72
83
|
};
|
|
73
84
|
|
|
74
85
|
/**
|
|
75
86
|
* Styled error boundary.
|
|
76
87
|
*/
|
|
77
88
|
declare function ErrorBoundary(props: ErrorBoundaryProps): react_jsx_runtime.JSX.Element;
|
|
89
|
+
declare namespace ErrorBoundary {
|
|
90
|
+
var whyDidYouRender: boolean;
|
|
91
|
+
}
|
|
78
92
|
|
|
79
93
|
interface ConfigProviderProps {
|
|
80
94
|
faasClientOptions?: FaasReactClientOptions;
|
|
@@ -144,7 +158,9 @@ interface AppProps {
|
|
|
144
158
|
interface useAppProps {
|
|
145
159
|
message: MessageInstance;
|
|
146
160
|
notification: NotificationInstance;
|
|
161
|
+
modalProps: ModalProps;
|
|
147
162
|
setModalProps: (changes: Partial<ModalProps>) => void;
|
|
163
|
+
drawerProps: DrawerProps;
|
|
148
164
|
setDrawerProps: (changes: Partial<DrawerProps>) => void;
|
|
149
165
|
}
|
|
150
166
|
/**
|
|
@@ -177,6 +193,7 @@ interface useAppProps {
|
|
|
177
193
|
declare function App(props: AppProps): react_jsx_runtime.JSX.Element;
|
|
178
194
|
declare namespace App {
|
|
179
195
|
var useApp: typeof useApp;
|
|
196
|
+
var whyDidYouRender: boolean;
|
|
180
197
|
}
|
|
181
198
|
/**
|
|
182
199
|
* Get app context.
|
|
@@ -187,7 +204,7 @@ declare namespace App {
|
|
|
187
204
|
* const { message, notification, setModalProps, setDrawerProps } = useApp()
|
|
188
205
|
* ```
|
|
189
206
|
*/
|
|
190
|
-
declare function useApp(): useAppProps
|
|
207
|
+
declare function useApp(): Readonly<useAppProps>;
|
|
191
208
|
|
|
192
209
|
interface BlankProps {
|
|
193
210
|
value?: any;
|
|
@@ -206,6 +223,9 @@ interface BlankProps {
|
|
|
206
223
|
* ```
|
|
207
224
|
*/
|
|
208
225
|
declare function Blank(options?: BlankProps): JSX.Element;
|
|
226
|
+
declare namespace Blank {
|
|
227
|
+
var whyDidYouRender: boolean;
|
|
228
|
+
}
|
|
209
229
|
|
|
210
230
|
type ExtendFormTypeProps<T = any> = {
|
|
211
231
|
children?: UnionFaasItemElement<T>;
|
|
@@ -252,6 +272,7 @@ interface FormItemProps<T = any> extends FaasItemProps, Omit<FormItemProps$1<T>,
|
|
|
252
272
|
*/
|
|
253
273
|
declare function FormItem<T = any>(props: FormItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
254
274
|
declare namespace FormItem {
|
|
275
|
+
var whyDidYouRender: boolean;
|
|
255
276
|
var useStatus: () => {
|
|
256
277
|
status?: "" | "success" | "error" | "warning" | "validating";
|
|
257
278
|
errors: react.ReactNode[];
|
|
@@ -278,6 +299,9 @@ type LoadingProps = {
|
|
|
278
299
|
* ```
|
|
279
300
|
*/
|
|
280
301
|
declare function Loading(props: LoadingProps): react_jsx_runtime.JSX.Element;
|
|
302
|
+
declare namespace Loading {
|
|
303
|
+
var whyDidYouRender: boolean;
|
|
304
|
+
}
|
|
281
305
|
|
|
282
306
|
type FaasDataInjection<T = any> = Partial<FaasDataInjection$1<T>>;
|
|
283
307
|
interface FaasDataWrapperProps<T = any> extends FaasDataWrapperProps$1<T> {
|
|
@@ -301,6 +325,9 @@ interface FaasDataWrapperProps<T = any> extends FaasDataWrapperProps$1<T> {
|
|
|
301
325
|
* ```
|
|
302
326
|
*/
|
|
303
327
|
declare function FaasDataWrapper<T = any>(props: FaasDataWrapperProps<T>): JSX.Element;
|
|
328
|
+
declare namespace FaasDataWrapper {
|
|
329
|
+
var whyDidYouRender: boolean;
|
|
330
|
+
}
|
|
304
331
|
|
|
305
332
|
interface ExtendDescriptionTypeProps<T = any> {
|
|
306
333
|
children?: UnionFaasItemElement<T>;
|
|
@@ -355,6 +382,9 @@ interface DescriptionItemContentProps<T = any> {
|
|
|
355
382
|
* ```
|
|
356
383
|
*/
|
|
357
384
|
declare function Description<T = any>(props: DescriptionProps<T>): react_jsx_runtime.JSX.Element;
|
|
385
|
+
declare namespace Description {
|
|
386
|
+
var whyDidYouRender: boolean;
|
|
387
|
+
}
|
|
358
388
|
|
|
359
389
|
interface TableItemProps<T = any> extends FaasItemProps, Omit<TableColumnProps<T>, 'title' | 'children' | 'render'> {
|
|
360
390
|
optionsType?: 'auto';
|
|
@@ -391,6 +421,9 @@ type TableProps<T = any, ExtendTypes = any> = {
|
|
|
391
421
|
* - Auto generate sorter (disable with `sorter: false`).
|
|
392
422
|
*/
|
|
393
423
|
declare function Table<T extends Record<string, any>, ExtendTypes = any>(props: TableProps<T, ExtendTypes>): react_jsx_runtime.JSX.Element;
|
|
424
|
+
declare namespace Table {
|
|
425
|
+
var whyDidYouRender: boolean;
|
|
426
|
+
}
|
|
394
427
|
|
|
395
428
|
type FaasItemType = 'string' | 'string[]' | 'number' | 'number[]' | 'boolean' | 'date' | 'time' | 'object' | 'object[]';
|
|
396
429
|
/** FaasItemType's value type */
|
|
@@ -499,6 +532,7 @@ interface FormProps<Values extends Record<string, any> = any, ExtendItemProps =
|
|
|
499
532
|
*/
|
|
500
533
|
declare function Form<Values = any>(props: FormProps<Values>): react_jsx_runtime.JSX.Element;
|
|
501
534
|
declare namespace Form {
|
|
535
|
+
var whyDidYouRender: boolean;
|
|
502
536
|
var useForm: typeof antd_es_form_Form.useForm;
|
|
503
537
|
var useFormInstance: typeof antd_es_form_hooks_useFormInstance.default;
|
|
504
538
|
var useWatch: typeof rc_field_form_es_useWatch.default;
|
|
@@ -533,6 +567,9 @@ interface LinkProps {
|
|
|
533
567
|
* ```
|
|
534
568
|
*/
|
|
535
569
|
declare function Link(props: LinkProps): react_jsx_runtime.JSX.Element;
|
|
570
|
+
declare namespace Link {
|
|
571
|
+
var whyDidYouRender: boolean;
|
|
572
|
+
}
|
|
536
573
|
|
|
537
574
|
declare function PageNotFound(): react_jsx_runtime.JSX.Element;
|
|
538
575
|
interface RoutesProps {
|
|
@@ -563,6 +600,9 @@ interface RoutesProps {
|
|
|
563
600
|
* ```
|
|
564
601
|
*/
|
|
565
602
|
declare function Routes(props: RoutesProps): react_jsx_runtime.JSX.Element;
|
|
603
|
+
declare namespace Routes {
|
|
604
|
+
var whyDidYouRender: boolean;
|
|
605
|
+
}
|
|
566
606
|
|
|
567
607
|
interface TabProps extends Partial<Tab> {
|
|
568
608
|
id: string;
|
|
@@ -599,6 +639,9 @@ interface TabsProps extends Omit<TabsProps$1, 'items'> {
|
|
|
599
639
|
* ```
|
|
600
640
|
*/
|
|
601
641
|
declare function Tabs(props: TabsProps): react_jsx_runtime.JSX.Element;
|
|
642
|
+
declare namespace Tabs {
|
|
643
|
+
var whyDidYouRender: boolean;
|
|
644
|
+
}
|
|
602
645
|
|
|
603
646
|
interface TitleProps {
|
|
604
647
|
title: string | string[];
|
|
@@ -634,5 +677,8 @@ interface TitleProps {
|
|
|
634
677
|
* ```
|
|
635
678
|
*/
|
|
636
679
|
declare function Title(props: TitleProps): JSX.Element;
|
|
680
|
+
declare namespace Title {
|
|
681
|
+
var whyDidYouRender: boolean;
|
|
682
|
+
}
|
|
637
683
|
|
|
638
|
-
export { App, type AppProps, type BaseItemProps, type BaseOption, Blank, type BlankProps, ConfigContext, ConfigProvider, type ConfigProviderProps, Description, type DescriptionItemContentProps, type DescriptionItemProps, type DescriptionProps, type DrawerProps, ErrorBoundary, type ExtendDescriptionItemProps, type ExtendDescriptionTypeProps, type ExtendFormItemProps, type ExtendFormTypeProps, type ExtendTableItemProps, type ExtendTableTypeProps, type ExtendTypes, type FaasDataInjection, FaasDataWrapper, type FaasDataWrapperProps, type FaasItemProps, type FaasItemType, type FaasItemTypeValue, Form, FormItem, type FormItemProps, type FormProps, type FormSubmitProps, Link, type LinkProps, Loading, type LoadingProps, type ModalProps, PageNotFound, Routes, type RoutesProps, type TabProps, Table, type TableItemProps, type TableProps, Tabs, type TabsProps, Title, type TitleProps, type UnionFaasItemElement, type UnionFaasItemInjection, type UnionFaasItemProps, type UnionFaasItemRender, type UnionScene, type setDrawerProps, type setModalProps, transferOptions, transferValue, useApp, type useAppProps, useConfigContext, useDrawer, useModal };
|
|
684
|
+
export { App, type AppProps, type BaseItemProps, type BaseOption, Blank, type BlankProps, ConfigContext, ConfigProvider, type ConfigProviderProps, Description, type DescriptionItemContentProps, type DescriptionItemProps, type DescriptionProps, Drawer, type DrawerProps, ErrorBoundary, type ExtendDescriptionItemProps, type ExtendDescriptionTypeProps, type ExtendFormItemProps, type ExtendFormTypeProps, type ExtendTableItemProps, type ExtendTableTypeProps, type ExtendTypes, type FaasDataInjection, FaasDataWrapper, type FaasDataWrapperProps, type FaasItemProps, type FaasItemType, type FaasItemTypeValue, Form, FormItem, type FormItemProps, type FormProps, type FormSubmitProps, Link, type LinkProps, Loading, type LoadingProps, Modal, type ModalProps, PageNotFound, Routes, type RoutesProps, type TabProps, Table, type TableItemProps, type TableProps, Tabs, type TabsProps, Title, type TitleProps, type UnionFaasItemElement, type UnionFaasItemInjection, type UnionFaasItemProps, type UnionFaasItemRender, type UnionScene, type setDrawerProps, type setModalProps, transferOptions, transferValue, useApp, type useAppProps, useConfigContext, useDrawer, useModal };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,12 +5,14 @@ import { ConfigProviderProps as ConfigProviderProps$1 } from 'antd/es/config-pro
|
|
|
5
5
|
import { StyleProviderProps } from '@ant-design/cssinjs/lib/StyleContext';
|
|
6
6
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
7
7
|
import { NotificationInstance } from 'antd/es/notification/interface';
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
import
|
|
8
|
+
import * as antd_es_modal_PurePanel from 'antd/es/modal/PurePanel';
|
|
9
|
+
import * as antd_es_modal_useModal from 'antd/es/modal/useModal';
|
|
10
|
+
import * as antd_es_modal_confirm from 'antd/es/modal/confirm';
|
|
11
11
|
import * as react from 'react';
|
|
12
12
|
import { CSSProperties, ReactNode, ReactElement, LazyExoticComponent, ComponentType } from 'react';
|
|
13
13
|
export { lazy } from 'react';
|
|
14
|
+
import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, InputProps, InputNumberProps, SwitchProps, SelectProps, DatePickerProps, FormInstance, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
|
|
15
|
+
import { BrowserRouterProps, RouteProps } from 'react-router-dom';
|
|
14
16
|
import { Dayjs } from 'dayjs';
|
|
15
17
|
import { RuleObject } from 'rc-field-form/lib/interface';
|
|
16
18
|
import { FilterValue, SorterResult, TableCurrentDataSource } from 'antd/es/table/interface';
|
|
@@ -21,10 +23,16 @@ import * as antd_es_form_hooks_useFormInstance from 'antd/es/form/hooks/useFormI
|
|
|
21
23
|
import * as antd_es_form_Form from 'antd/es/form/Form';
|
|
22
24
|
import { Tab } from 'rc-tabs/es/interface';
|
|
23
25
|
|
|
26
|
+
declare const Modal: react.FC<ModalProps$1> & antd_es_modal_confirm.ModalStaticFunctions & {
|
|
27
|
+
useModal: typeof antd_es_modal_useModal.default;
|
|
28
|
+
destroyAll: () => void;
|
|
29
|
+
config: typeof antd_es_modal_confirm.modalGlobalConfig;
|
|
30
|
+
_InternalPanelDoNotUseOrYouWillBeFired: (props: antd_es_modal_PurePanel.PurePanelProps) => react.JSX.Element;
|
|
31
|
+
};
|
|
24
32
|
interface ModalProps extends ModalProps$1 {
|
|
25
33
|
children?: JSX.Element | JSX.Element[] | string;
|
|
26
34
|
}
|
|
27
|
-
type setModalProps = (changes: Partial<ModalProps>) => void;
|
|
35
|
+
type setModalProps = (changes: Partial<ModalProps> | ((prev: Partial<ModalProps>) => Partial<ModalProps>)) => void;
|
|
28
36
|
/**
|
|
29
37
|
* Hook style modal
|
|
30
38
|
*
|
|
@@ -42,13 +50,16 @@ type setModalProps = (changes: Partial<ModalProps>) => void;
|
|
|
42
50
|
declare function useModal(init?: ModalProps): {
|
|
43
51
|
modal: react_jsx_runtime.JSX.Element;
|
|
44
52
|
modalProps: ModalProps;
|
|
45
|
-
setModalProps
|
|
53
|
+
setModalProps: setModalProps;
|
|
46
54
|
};
|
|
47
55
|
|
|
56
|
+
declare const Drawer: react.FC<DrawerProps> & {
|
|
57
|
+
whyDidYouRender?: boolean;
|
|
58
|
+
};
|
|
48
59
|
interface DrawerProps extends DrawerProps$1 {
|
|
49
60
|
children?: JSX.Element | JSX.Element[];
|
|
50
61
|
}
|
|
51
|
-
type setDrawerProps = (changes: Partial<DrawerProps>) => void;
|
|
62
|
+
type setDrawerProps = (changes: Partial<DrawerProps> | ((prev: Partial<DrawerProps>) => Partial<DrawerProps>)) => void;
|
|
52
63
|
/**
|
|
53
64
|
* Hook style drawer
|
|
54
65
|
*
|
|
@@ -68,13 +79,16 @@ type setDrawerProps = (changes: Partial<DrawerProps>) => void;
|
|
|
68
79
|
declare function useDrawer(init?: DrawerProps): {
|
|
69
80
|
drawer: react_jsx_runtime.JSX.Element;
|
|
70
81
|
drawerProps: DrawerProps;
|
|
71
|
-
setDrawerProps
|
|
82
|
+
setDrawerProps: setDrawerProps;
|
|
72
83
|
};
|
|
73
84
|
|
|
74
85
|
/**
|
|
75
86
|
* Styled error boundary.
|
|
76
87
|
*/
|
|
77
88
|
declare function ErrorBoundary(props: ErrorBoundaryProps): react_jsx_runtime.JSX.Element;
|
|
89
|
+
declare namespace ErrorBoundary {
|
|
90
|
+
var whyDidYouRender: boolean;
|
|
91
|
+
}
|
|
78
92
|
|
|
79
93
|
interface ConfigProviderProps {
|
|
80
94
|
faasClientOptions?: FaasReactClientOptions;
|
|
@@ -144,7 +158,9 @@ interface AppProps {
|
|
|
144
158
|
interface useAppProps {
|
|
145
159
|
message: MessageInstance;
|
|
146
160
|
notification: NotificationInstance;
|
|
161
|
+
modalProps: ModalProps;
|
|
147
162
|
setModalProps: (changes: Partial<ModalProps>) => void;
|
|
163
|
+
drawerProps: DrawerProps;
|
|
148
164
|
setDrawerProps: (changes: Partial<DrawerProps>) => void;
|
|
149
165
|
}
|
|
150
166
|
/**
|
|
@@ -177,6 +193,7 @@ interface useAppProps {
|
|
|
177
193
|
declare function App(props: AppProps): react_jsx_runtime.JSX.Element;
|
|
178
194
|
declare namespace App {
|
|
179
195
|
var useApp: typeof useApp;
|
|
196
|
+
var whyDidYouRender: boolean;
|
|
180
197
|
}
|
|
181
198
|
/**
|
|
182
199
|
* Get app context.
|
|
@@ -187,7 +204,7 @@ declare namespace App {
|
|
|
187
204
|
* const { message, notification, setModalProps, setDrawerProps } = useApp()
|
|
188
205
|
* ```
|
|
189
206
|
*/
|
|
190
|
-
declare function useApp(): useAppProps
|
|
207
|
+
declare function useApp(): Readonly<useAppProps>;
|
|
191
208
|
|
|
192
209
|
interface BlankProps {
|
|
193
210
|
value?: any;
|
|
@@ -206,6 +223,9 @@ interface BlankProps {
|
|
|
206
223
|
* ```
|
|
207
224
|
*/
|
|
208
225
|
declare function Blank(options?: BlankProps): JSX.Element;
|
|
226
|
+
declare namespace Blank {
|
|
227
|
+
var whyDidYouRender: boolean;
|
|
228
|
+
}
|
|
209
229
|
|
|
210
230
|
type ExtendFormTypeProps<T = any> = {
|
|
211
231
|
children?: UnionFaasItemElement<T>;
|
|
@@ -252,6 +272,7 @@ interface FormItemProps<T = any> extends FaasItemProps, Omit<FormItemProps$1<T>,
|
|
|
252
272
|
*/
|
|
253
273
|
declare function FormItem<T = any>(props: FormItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
254
274
|
declare namespace FormItem {
|
|
275
|
+
var whyDidYouRender: boolean;
|
|
255
276
|
var useStatus: () => {
|
|
256
277
|
status?: "" | "success" | "error" | "warning" | "validating";
|
|
257
278
|
errors: react.ReactNode[];
|
|
@@ -278,6 +299,9 @@ type LoadingProps = {
|
|
|
278
299
|
* ```
|
|
279
300
|
*/
|
|
280
301
|
declare function Loading(props: LoadingProps): react_jsx_runtime.JSX.Element;
|
|
302
|
+
declare namespace Loading {
|
|
303
|
+
var whyDidYouRender: boolean;
|
|
304
|
+
}
|
|
281
305
|
|
|
282
306
|
type FaasDataInjection<T = any> = Partial<FaasDataInjection$1<T>>;
|
|
283
307
|
interface FaasDataWrapperProps<T = any> extends FaasDataWrapperProps$1<T> {
|
|
@@ -301,6 +325,9 @@ interface FaasDataWrapperProps<T = any> extends FaasDataWrapperProps$1<T> {
|
|
|
301
325
|
* ```
|
|
302
326
|
*/
|
|
303
327
|
declare function FaasDataWrapper<T = any>(props: FaasDataWrapperProps<T>): JSX.Element;
|
|
328
|
+
declare namespace FaasDataWrapper {
|
|
329
|
+
var whyDidYouRender: boolean;
|
|
330
|
+
}
|
|
304
331
|
|
|
305
332
|
interface ExtendDescriptionTypeProps<T = any> {
|
|
306
333
|
children?: UnionFaasItemElement<T>;
|
|
@@ -355,6 +382,9 @@ interface DescriptionItemContentProps<T = any> {
|
|
|
355
382
|
* ```
|
|
356
383
|
*/
|
|
357
384
|
declare function Description<T = any>(props: DescriptionProps<T>): react_jsx_runtime.JSX.Element;
|
|
385
|
+
declare namespace Description {
|
|
386
|
+
var whyDidYouRender: boolean;
|
|
387
|
+
}
|
|
358
388
|
|
|
359
389
|
interface TableItemProps<T = any> extends FaasItemProps, Omit<TableColumnProps<T>, 'title' | 'children' | 'render'> {
|
|
360
390
|
optionsType?: 'auto';
|
|
@@ -391,6 +421,9 @@ type TableProps<T = any, ExtendTypes = any> = {
|
|
|
391
421
|
* - Auto generate sorter (disable with `sorter: false`).
|
|
392
422
|
*/
|
|
393
423
|
declare function Table<T extends Record<string, any>, ExtendTypes = any>(props: TableProps<T, ExtendTypes>): react_jsx_runtime.JSX.Element;
|
|
424
|
+
declare namespace Table {
|
|
425
|
+
var whyDidYouRender: boolean;
|
|
426
|
+
}
|
|
394
427
|
|
|
395
428
|
type FaasItemType = 'string' | 'string[]' | 'number' | 'number[]' | 'boolean' | 'date' | 'time' | 'object' | 'object[]';
|
|
396
429
|
/** FaasItemType's value type */
|
|
@@ -499,6 +532,7 @@ interface FormProps<Values extends Record<string, any> = any, ExtendItemProps =
|
|
|
499
532
|
*/
|
|
500
533
|
declare function Form<Values = any>(props: FormProps<Values>): react_jsx_runtime.JSX.Element;
|
|
501
534
|
declare namespace Form {
|
|
535
|
+
var whyDidYouRender: boolean;
|
|
502
536
|
var useForm: typeof antd_es_form_Form.useForm;
|
|
503
537
|
var useFormInstance: typeof antd_es_form_hooks_useFormInstance.default;
|
|
504
538
|
var useWatch: typeof rc_field_form_es_useWatch.default;
|
|
@@ -533,6 +567,9 @@ interface LinkProps {
|
|
|
533
567
|
* ```
|
|
534
568
|
*/
|
|
535
569
|
declare function Link(props: LinkProps): react_jsx_runtime.JSX.Element;
|
|
570
|
+
declare namespace Link {
|
|
571
|
+
var whyDidYouRender: boolean;
|
|
572
|
+
}
|
|
536
573
|
|
|
537
574
|
declare function PageNotFound(): react_jsx_runtime.JSX.Element;
|
|
538
575
|
interface RoutesProps {
|
|
@@ -563,6 +600,9 @@ interface RoutesProps {
|
|
|
563
600
|
* ```
|
|
564
601
|
*/
|
|
565
602
|
declare function Routes(props: RoutesProps): react_jsx_runtime.JSX.Element;
|
|
603
|
+
declare namespace Routes {
|
|
604
|
+
var whyDidYouRender: boolean;
|
|
605
|
+
}
|
|
566
606
|
|
|
567
607
|
interface TabProps extends Partial<Tab> {
|
|
568
608
|
id: string;
|
|
@@ -599,6 +639,9 @@ interface TabsProps extends Omit<TabsProps$1, 'items'> {
|
|
|
599
639
|
* ```
|
|
600
640
|
*/
|
|
601
641
|
declare function Tabs(props: TabsProps): react_jsx_runtime.JSX.Element;
|
|
642
|
+
declare namespace Tabs {
|
|
643
|
+
var whyDidYouRender: boolean;
|
|
644
|
+
}
|
|
602
645
|
|
|
603
646
|
interface TitleProps {
|
|
604
647
|
title: string | string[];
|
|
@@ -634,5 +677,8 @@ interface TitleProps {
|
|
|
634
677
|
* ```
|
|
635
678
|
*/
|
|
636
679
|
declare function Title(props: TitleProps): JSX.Element;
|
|
680
|
+
declare namespace Title {
|
|
681
|
+
var whyDidYouRender: boolean;
|
|
682
|
+
}
|
|
637
683
|
|
|
638
|
-
export { App, type AppProps, type BaseItemProps, type BaseOption, Blank, type BlankProps, ConfigContext, ConfigProvider, type ConfigProviderProps, Description, type DescriptionItemContentProps, type DescriptionItemProps, type DescriptionProps, type DrawerProps, ErrorBoundary, type ExtendDescriptionItemProps, type ExtendDescriptionTypeProps, type ExtendFormItemProps, type ExtendFormTypeProps, type ExtendTableItemProps, type ExtendTableTypeProps, type ExtendTypes, type FaasDataInjection, FaasDataWrapper, type FaasDataWrapperProps, type FaasItemProps, type FaasItemType, type FaasItemTypeValue, Form, FormItem, type FormItemProps, type FormProps, type FormSubmitProps, Link, type LinkProps, Loading, type LoadingProps, type ModalProps, PageNotFound, Routes, type RoutesProps, type TabProps, Table, type TableItemProps, type TableProps, Tabs, type TabsProps, Title, type TitleProps, type UnionFaasItemElement, type UnionFaasItemInjection, type UnionFaasItemProps, type UnionFaasItemRender, type UnionScene, type setDrawerProps, type setModalProps, transferOptions, transferValue, useApp, type useAppProps, useConfigContext, useDrawer, useModal };
|
|
684
|
+
export { App, type AppProps, type BaseItemProps, type BaseOption, Blank, type BlankProps, ConfigContext, ConfigProvider, type ConfigProviderProps, Description, type DescriptionItemContentProps, type DescriptionItemProps, type DescriptionProps, Drawer, type DrawerProps, ErrorBoundary, type ExtendDescriptionItemProps, type ExtendDescriptionTypeProps, type ExtendFormItemProps, type ExtendFormTypeProps, type ExtendTableItemProps, type ExtendTableTypeProps, type ExtendTypes, type FaasDataInjection, FaasDataWrapper, type FaasDataWrapperProps, type FaasItemProps, type FaasItemType, type FaasItemTypeValue, Form, FormItem, type FormItemProps, type FormProps, type FormSubmitProps, Link, type LinkProps, Loading, type LoadingProps, Modal, type ModalProps, PageNotFound, Routes, type RoutesProps, type TabProps, Table, type TableItemProps, type TableProps, Tabs, type TabsProps, Title, type TitleProps, type UnionFaasItemElement, type UnionFaasItemInjection, type UnionFaasItemProps, type UnionFaasItemRender, type UnionScene, type setDrawerProps, type setModalProps, transferOptions, transferValue, useApp, type useAppProps, useConfigContext, useDrawer, useModal };
|