-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.d.ts
34 lines (28 loc) · 931 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React from 'react';
import { TableProps } from 'antd';
import { ColumnType } from "antd/lib/table";
export interface ManageColumnType extends ColumnType<any> {
show?: boolean;
dataIndex: string;
group?: string;
}
export interface IMangeTableProps<RecordType extends object = any> extends TableProps<RecordType> {
name: string;
width?: string;
height?: string;
setTitle?: string | React.ReactNode;
SettingComp?: false | React.ReactNode;
columns: ManageColumnType[];
/** 响应恢复默认设置的 keys */
defaultShowKeys?: string[];
/** 固定显示的 keys */
fixedShowKeys?: string[];
onKeysSelected?: (keys: string[]) => void;
}
export interface IManageTableRefType {
showModal: () => void;
hideModal: () => void;
getShowKeys: () => string[];
}
declare const ManageTable: React.ForwardRefExoticComponent<IMangeTableProps<any> & RefAttributes<unknown>>;
export default ManageTable;