@base-stone/hooks 0.1.0 → 0.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.
|
@@ -5,15 +5,15 @@ import { TableProps as TableProps_2 } from 'antd';
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* 配置全局表格参数
|
|
8
|
-
* @param config
|
|
9
|
-
* @example
|
|
10
|
-
* configureTable(new Map([
|
|
11
|
-
* ['sortField', ['sort', 'sortBy']],
|
|
12
|
-
* ['sortOrder', ['asc', 'desc']],
|
|
13
|
-
* ['pageSize', 20]
|
|
14
|
-
* ]))
|
|
8
|
+
* @param config
|
|
15
9
|
*/
|
|
16
|
-
export declare function configureTableOption(config:
|
|
10
|
+
export declare function configureTableOption(config: GlobalTableConfig): void;
|
|
11
|
+
|
|
12
|
+
declare interface GlobalTableConfig {
|
|
13
|
+
sortField: string[];
|
|
14
|
+
sortOrder: ['ASC', 'DESC'];
|
|
15
|
+
pageSize: number;
|
|
16
|
+
}
|
|
17
17
|
|
|
18
18
|
declare interface QueryParamsData {
|
|
19
19
|
pageNo: number;
|
|
@@ -28,6 +28,7 @@ declare interface TableListResult<T> {
|
|
|
28
28
|
queryParams: QueryParamsData;
|
|
29
29
|
/** 执行查询方法 */
|
|
30
30
|
reload: (params?: Record<string, any>) => void;
|
|
31
|
+
reset: (params?: Record<string, any>) => void;
|
|
31
32
|
/** 选中的行 keys */
|
|
32
33
|
selectedRowKeys: Key[];
|
|
33
34
|
/** 表格属性 */
|