ソースを参照

表格样式优化6799

zhouna 4 年 前
コミット
2d2f01d2e2
2 ファイル変更4 行追加1 行削除
  1. 3 0
      src/css/index.less
  2. 1 1
      src/index.js

+ 3 - 0
src/css/index.less

@@ -44,6 +44,7 @@
   td{
     height: 40px;
     line-height: 40px;
+    white-space: nowrap;
   }
 }
 .box{
@@ -85,11 +86,13 @@
       height: 49px;
       border: 1px #E2E5EF solid;
       font-size: 16px;
+      white-space: nowrap;
       &:last-child{
         border-right: none;
       }
     }
     td{
+      white-space: nowrap;
       padding:10px 5px;
       border: 1px #E2E5EF solid;
       img{

+ 1 - 1
src/index.js

@@ -38,7 +38,7 @@ function renderFlawList(data){
             <tr>
               <th>来源</th>
               <th>缺陷详情</th>
-              <th>扣分</th>
+              <th width="105">扣分</th>
             </tr>
           </thead>
           <tbody></tbody>`;