File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,14 @@ export interface TableProps<RecordType = unknown>
171
171
sticky ?: boolean | TableSticky ;
172
172
}
173
173
174
- function Table < RecordType extends DefaultRecordType > ( props : TableProps < RecordType > ) {
174
+ function Table < RecordType extends DefaultRecordType > ( tableProps : TableProps < RecordType > ) {
175
+ const props = {
176
+ rowKey : 'key' ,
177
+ prefixCls : 'rc-table' ,
178
+ emptyText : ( ) => 'No Data' ,
179
+ ...tableProps ,
180
+ } ;
181
+
175
182
const {
176
183
prefixCls,
177
184
className,
@@ -889,10 +896,4 @@ Table.ColumnGroup = ColumnGroup;
889
896
890
897
Table . Summary = FooterComponents ;
891
898
892
- Table . defaultProps = {
893
- rowKey : 'key' ,
894
- prefixCls : 'rc-table' ,
895
- emptyText : ( ) => 'No Data' ,
896
- } ;
897
-
898
899
export default Table ;
You can’t perform that action at this time.
0 commit comments