Table add expandIcon prop

close #10819, #11802
This commit is contained in:
zombiej 2018-10-17 21:22:40 +08:00
parent 54b944e8ee
commit 0e1caae01d
2 changed files with 10 additions and 1 deletions

View File

@ -92,6 +92,14 @@ export interface SorterResult<T> {
columnKey: string;
}
export type TableSize = 'default' | 'middle' | 'small';
export interface ExpandIconProps<T> {
prefixCls: string;
expanded: boolean;
record: T;
needIndentSpaced: boolean;
expandable: boolean;
onExpand: (record: T, event: MouseEvent) => void;
}
export interface TableProps<T> {
prefixCls?: string;
dropdownPrefixCls?: string;
@ -107,6 +115,7 @@ export interface TableProps<T> {
defaultExpandAllRows?: boolean;
defaultExpandedRowKeys?: string[] | number[];
expandedRowKeys?: string[] | number[];
expandIcon?: (props: ExpandIconProps<T>) => React.ReactNode;
expandIconAsCell?: boolean;
expandIconColumnIndex?: number;
expandRowByClick?: boolean;

View File

@ -75,7 +75,7 @@
"rc-slider": "~8.6.3",
"rc-steps": "~3.3.0",
"rc-switch": "~1.8.0",
"rc-table": "~6.3.4",
"rc-table": "~6.4.0",
"rc-tabs": "~9.4.6",
"rc-time-picker": "~3.4.0",
"rc-tooltip": "~3.7.3",