Эх сурвалжийг харах

Table: fix fixed column style on safari (#10130)

FuryBean 7 жил өмнө
parent
commit
9f09bd3b57

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

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