mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
Merge pull request #6291 from jch254/ts-fixes
Badge and Table TypeScript fixes
This commit is contained in:
commit
52833f50f5
@ -7,7 +7,7 @@ import warning from '../_util/warning';
|
|||||||
|
|
||||||
export interface BadgeProps {
|
export interface BadgeProps {
|
||||||
/** Number to show in badge */
|
/** Number to show in badge */
|
||||||
count: number | string;
|
count?: number | string;
|
||||||
showZero?: boolean;
|
showZero?: boolean;
|
||||||
/** Max count to show */
|
/** Max count to show */
|
||||||
overflowCount?: number;
|
overflowCount?: number;
|
||||||
|
@ -21,6 +21,7 @@ export interface ColumnProps<T> {
|
|||||||
filteredValue?: any[];
|
filteredValue?: any[];
|
||||||
sortOrder?: boolean | ('ascend' | 'descend');
|
sortOrder?: boolean | ('ascend' | 'descend');
|
||||||
children?: ColumnProps<T>[];
|
children?: ColumnProps<T>[];
|
||||||
|
onCellClick?: (record: T, event: any) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Column<T> extends (RcTable.Column as React.ComponentClass<ColumnProps<T>>) {}
|
export default class Column<T> extends (RcTable.Column as React.ComponentClass<ColumnProps<T>>) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user