瀏覽代碼

fix(table): fix TableAction row height error close #350

Vben 4 年之前
父節點
當前提交
a759e44c6e
共有 3 個文件被更改,包括 8 次插入8 次删除
  1. 1 1
      CHANGELOG.zh_CN.md
  2. 6 6
      src/components/Table/src/style/index.less
  3. 1 1
      src/views/demo/system/account/account.data.ts

+ 1 - 1
CHANGELOG.zh_CN.md

@@ -14,7 +14,7 @@
 - 确保 `table action` 的值被正确更新
 - 修复页面切换的动画无法关闭
 - 修复`PageWrapper`title 不显示
-- 修复表格数据为空时高度计算错误
+- 修复表格已知问题
 
 ## 2.0.3 (2021-03-07)
 

+ 6 - 6
src/components/Table/src/style/index.less

@@ -73,12 +73,12 @@
     }
   }
 
-  .ant-table-tbody > tr > td,
-  .ant-table-tbody > tr > th,
-  .ant-table-thead > tr > td,
-  .ant-table-thead > tr > th {
-    white-space: pre;
-  }
+  // .ant-table-tbody > tr > td,
+  // .ant-table-tbody > tr > th,
+  // .ant-table-thead > tr > td,
+  // .ant-table-thead > tr > th {
+  //   white-space: pre;
+  // }
 
   .ant-pagination {
     margin: 10px 0 0 0;

+ 1 - 1
src/views/demo/system/account/account.data.ts

@@ -16,7 +16,7 @@ export const columns: BasicColumn[] = [
   {
     title: '邮箱',
     dataIndex: 'email',
-    width: 200,
+    width: 120,
   },
   {
     title: '创建时间',