diff --git a/components/badge/index.tsx b/components/badge/index.tsx index 0ca96f8b38..124bb0dee0 100644 --- a/components/badge/index.tsx +++ b/components/badge/index.tsx @@ -7,7 +7,7 @@ import warning from '../_util/warning'; export interface BadgeProps { /** Number to show in badge */ - count: number | string; + count?: number | string; showZero?: boolean; /** Max count to show */ overflowCount?: number; diff --git a/components/table/Column.tsx b/components/table/Column.tsx index 38fa2a2d44..177a1d3642 100644 --- a/components/table/Column.tsx +++ b/components/table/Column.tsx @@ -21,6 +21,7 @@ export interface ColumnProps { filteredValue?: any[]; sortOrder?: boolean | ('ascend' | 'descend'); children?: ColumnProps[]; + onCellClick?: (record: T, event: any) => void; } export default class Column extends (RcTable.Column as React.ComponentClass>) {}