hlyc-web-pack 2.9.6 → 2.9.7
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/lib/GenerateTable/index.d.ts +25 -23
- package/lib/index.js +3 -3
- package/lib/unrelated/utils/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -20,31 +20,33 @@ export declare type ScrollXYType = {
|
|
|
20
20
|
y?: string | number | undefined;
|
|
21
21
|
};
|
|
22
22
|
interface GenerateTableProp {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
23
|
+
extra: {
|
|
24
|
+
/** 支持antd Table组件官方传参所有类型 */
|
|
25
|
+
tableConfig?: TableProps<any>;
|
|
26
|
+
/** 是否开启表格行选中 checkbox多选 radio单选 */
|
|
27
|
+
rowType?: 'checkbox' | 'radio' | undefined;
|
|
28
|
+
/** 开启固定列参数 */
|
|
29
|
+
scroll?: ScrollXYType;
|
|
30
|
+
/** 列表请求函数 */
|
|
31
|
+
apiMethod?: (data: any) => PromiseAxiosResultType;
|
|
32
|
+
/** 表格头 */
|
|
33
|
+
columns: ColumnType<AnyObjectType>[];
|
|
34
|
+
/** 静态表格数据 */
|
|
35
|
+
data?: AnyObjectType[];
|
|
36
|
+
/** 表格数据编辑是否是受控组件 默认是 */
|
|
37
|
+
controlled?: boolean;
|
|
38
|
+
/** 行选中回调 */
|
|
39
|
+
onSelect?: (selectedRows: AnyObjectType[], selectedRowKeys: any[]) => void;
|
|
40
|
+
/** 控制分页格式 */
|
|
41
|
+
paginationConfig?: false | TablePaginationConfig;
|
|
42
|
+
/** 选择框的默认属性配置 */
|
|
43
|
+
getCheckboxProps?: (record: AnyObjectType) => AnyObjectType;
|
|
44
|
+
/** 数据调用成功回调 */
|
|
45
|
+
getTableSuccessData?: (data: AnyObjectType) => void;
|
|
46
|
+
};
|
|
45
47
|
}
|
|
46
48
|
declare type TablePaginationType = TablePaginationConfig & {
|
|
47
49
|
pages: number;
|
|
48
50
|
};
|
|
49
|
-
declare const _default: React.
|
|
51
|
+
declare const _default: React.NamedExoticComponent<GenerateTableProp & React.RefAttributes<unknown>>;
|
|
50
52
|
export default _default;
|