@faasjs/ant-design 7.0.0-beta.0 → 7.0.0-beta.2
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 +2 -0
- package/dist/index.d.ts +23 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -109,6 +109,8 @@ type FaasItemProps = {
|
|
|
109
109
|
- [LoadingProps](type-aliases/LoadingProps.md)
|
|
110
110
|
- [setDrawerProps](type-aliases/setDrawerProps.md)
|
|
111
111
|
- [setModalProps](type-aliases/setModalProps.md)
|
|
112
|
+
- [TableFaasDataParams](type-aliases/TableFaasDataParams.md)
|
|
113
|
+
- [TableFaasDataResponse](type-aliases/TableFaasDataResponse.md)
|
|
112
114
|
- [TableProps](type-aliases/TableProps.md)
|
|
113
115
|
- [UnionFaasItemElement](type-aliases/UnionFaasItemElement.md)
|
|
114
116
|
- [UnionFaasItemInjection](type-aliases/UnionFaasItemInjection.md)
|
package/dist/index.d.ts
CHANGED
|
@@ -481,6 +481,28 @@ type TableProps<T = any, ExtendTypes = any> = {
|
|
|
481
481
|
extra: TableCurrentDataSource<T>;
|
|
482
482
|
};
|
|
483
483
|
} & TableProps$1<T>;
|
|
484
|
+
type TableFaasDataParams = {
|
|
485
|
+
filters?: Record<string, any[]>;
|
|
486
|
+
pagination?: {
|
|
487
|
+
current?: number;
|
|
488
|
+
pageSize?: number;
|
|
489
|
+
};
|
|
490
|
+
sorter?: {
|
|
491
|
+
field: string;
|
|
492
|
+
order: 'ascend' | 'descend';
|
|
493
|
+
} | {
|
|
494
|
+
field: string;
|
|
495
|
+
order?: 'ascend' | 'descend';
|
|
496
|
+
}[];
|
|
497
|
+
};
|
|
498
|
+
type TableFaasDataResponse<T = any> = {
|
|
499
|
+
rows: T[];
|
|
500
|
+
pagination: {
|
|
501
|
+
current: number;
|
|
502
|
+
pageSize: number;
|
|
503
|
+
total: number;
|
|
504
|
+
};
|
|
505
|
+
};
|
|
484
506
|
/**
|
|
485
507
|
* Table component with Ant Design & FaasJS
|
|
486
508
|
*
|
|
@@ -929,4 +951,4 @@ declare namespace Title {
|
|
|
929
951
|
*/
|
|
930
952
|
declare function useThemeToken(): GlobalToken;
|
|
931
953
|
|
|
932
|
-
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, cloneUnionFaasItemElement, idToTitle, type setDrawerProps, type setModalProps, transferOptions, transferValue, useApp, type useAppProps, useConfigContext, useDrawer, useModal, useThemeToken, withFaasData };
|
|
954
|
+
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 TableFaasDataParams, type TableFaasDataResponse, type TableItemProps, type TableProps, Tabs, type TabsProps, Title, type TitleProps, type UnionFaasItemElement, type UnionFaasItemInjection, type UnionFaasItemProps, type UnionFaasItemRender, type UnionScene, cloneUnionFaasItemElement, idToTitle, type setDrawerProps, type setModalProps, transferOptions, transferValue, useApp, type useAppProps, useConfigContext, useDrawer, useModal, useThemeToken, withFaasData };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@faasjs/react": ">=7.0.0-beta.
|
|
33
|
+
"@faasjs/react": ">=7.0.0-beta.2",
|
|
34
34
|
"antd": "*",
|
|
35
35
|
"@ant-design/icons": "*",
|
|
36
36
|
"lodash-es": "*",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/lodash-es": "*",
|
|
43
|
-
"@faasjs/react": ">=7.0.0-beta.
|
|
43
|
+
"@faasjs/react": ">=7.0.0-beta.2",
|
|
44
44
|
"antd": "*",
|
|
45
45
|
"@ant-design/icons": "*",
|
|
46
46
|
"lodash-es": "*",
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=22.0.0",
|
|
53
|
-
"npm": ">=
|
|
53
|
+
"npm": ">=11.0.0"
|
|
54
54
|
}
|
|
55
55
|
}
|