浏览代码

table height style add comments

tumao 4 年之前
父节点
当前提交
3abeeb1479
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      client/src/components/grid/Table.tsx

+ 2 - 0
client/src/components/grid/Table.tsx

@@ -141,7 +141,9 @@ const EnhancedTable: FC<TableType> = props => {
       const containerHeight: number = (containerRef.current as any)!
         .offsetHeight;
 
+      // table default row height is 54
       const rowHeight = 54;
+      // table header default height is 57
       const tableHeaderHeight: number = 57;
       if (rowHeight > 0) {
         const pageSize = Math.floor(