@luoluoyu/fluentui-plus 2.4.4 → 2.4.6
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/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/hooks/usePagination.d.ts +3 -2
- package/dist/components/Table/hooks/usePagination.d.ts.map +1 -1
- package/dist/index.esm.js +3000 -2990
- package/dist/index.esm.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,cAAc,CAAC;AAItB;;;;GAIG;AACH,QAAA,MAAM,KAAK,GAAI,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAG,uHAYnD,UAAU,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,cAAc,CAAC;AAItB;;;;GAIG;AACH,QAAA,MAAM,KAAK,GAAI,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAG,uHAYnD,UAAU,CAAC,UAAU,CAAC,4CA+LxB,CAAC;AAEF,eAAe,KAAK,CAAC;AACrB,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -5,7 +5,7 @@ interface UsePaginationOptions<RecordType> {
|
|
|
5
5
|
}
|
|
6
6
|
interface UsePaginationResult<RecordType> {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* 当前页数据(服务端分页模式下直接返回 dataSource)
|
|
9
9
|
*/
|
|
10
10
|
paginatedData: RecordType[];
|
|
11
11
|
/**
|
|
@@ -27,7 +27,8 @@ interface UsePaginationResult<RecordType> {
|
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* 表格分页 Hook
|
|
30
|
-
*
|
|
30
|
+
* 仅支持服务端分页模式,dataSource 应该是当前页的数据
|
|
31
|
+
* 封装分页状态管理逻辑
|
|
31
32
|
*/
|
|
32
33
|
export declare const usePagination: <RecordType = Record<string, unknown>>({ dataSource, pagination, }: UsePaginationOptions<RecordType>) => UsePaginationResult<RecordType>;
|
|
33
34
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/hooks/usePagination.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,UAAU,oBAAoB,CAAC,UAAU;IACvC,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,KAAK,GAAG,eAAe,CAAC;CACtC;AAED,UAAU,mBAAmB,CAAC,UAAU;IACtC;;OAEG;IACH,aAAa,EAAE,UAAU,EAAE,CAAC;IAC5B;;OAEG;IACH,gBAAgB,EAAE,KAAK,GAAG,eAAe,CAAC;IAC1C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,sBAAsB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE;AAED
|
|
1
|
+
{"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/hooks/usePagination.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,UAAU,oBAAoB,CAAC,UAAU;IACvC,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,KAAK,GAAG,eAAe,CAAC;CACtC;AAED,UAAU,mBAAmB,CAAC,UAAU;IACtC;;OAEG;IACH,aAAa,EAAE,UAAU,EAAE,CAAC;IAC5B;;OAEG;IACH,gBAAgB,EAAE,KAAK,GAAG,eAAe,CAAC;IAC1C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,sBAAsB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,6BAGjE,oBAAoB,CAAC,UAAU,CAAC,KAAG,mBAAmB,CAAC,UAAU,CAiDnE,CAAC"}
|