Quellcode durchsuchen

chore<table>: fix type (#2528)

luocong2016 vor 2 Jahren
Ursprung
Commit
ce0f528ba8
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      src/components/Table/src/types/table.ts

+ 2 - 1
src/components/Table/src/types/table.ts

@@ -310,7 +310,8 @@ export interface BasicTableProps<T = any> {
    * you need to add style .ant-table td { white-space: nowrap; }.
    * @type object
    */
-  scroll?: { x?: number | true; y?: number };
+  scroll?: { x?: number | string | true; y?: number | string };
+  
 
   /**
    * Whether to show table header