瀏覽代碼

Table: fix wrapper width of fixed table (#10291)

杨奕 7 年之前
父節點
當前提交
d479ea9789
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      packages/table/src/table.vue

+ 6 - 6
packages/table/src/table.vue

@@ -99,7 +99,7 @@
           :border="border"
           :store="store"
           :style="{
-            width: layout.bodyWidth ? layout.bodyWidth + 'px' : ''
+            width: bodyWidth
           }"></table-header>
       </div>
       <div
@@ -117,7 +117,7 @@
           :row-class-name="rowClassName"
           :row-style="rowStyle"
           :style="{
-            width: layout.bodyWidth ? layout.bodyWidth + 'px' : ''
+            width: bodyWidth
           }">
         </table-body>
         <div
@@ -139,7 +139,7 @@
           :summary-method="summaryMethod"
           :store="store"
           :style="{
-            width: layout.bodyWidth ? layout.bodyWidth + 'px' : ''
+            width: bodyWidth
           }"></table-footer>
       </div>
     </div>
@@ -162,7 +162,7 @@
           :border="border"
           :store="store"
           :style="{
-            width: layout.bodyWidth ? layout.bodyWidth + 'px' : ''
+            width: bodyWidth
           }"></table-header>
       </div>
       <div
@@ -180,7 +180,7 @@
           :row-style="rowStyle"
           :highlight="highlightCurrentRow"
           :style="{
-            width: layout.bodyWidth ? layout.bodyWidth + 'px' : ''
+            width: bodyWidth
           }">
         </table-body>
       </div>
@@ -196,7 +196,7 @@
           :summary-method="summaryMethod"
           :store="store"
           :style="{
-            width: layout.bodyWidth ? layout.bodyWidth + 'px' : ''
+            width: bodyWidth
           }"></table-footer>
       </div>
     </div>