Parcourir la source

Table: update column width before updating height (#10236)

杨奕 il y a 7 ans
Parent
commit
38e9b6eca6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/table/src/table.vue

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

@@ -438,10 +438,10 @@
       },
 
       doLayout() {
+        this.layout.updateColumnsWidth();
         if (this.shouldUpdateHeight) {
           this.layout.updateElsHeight();
         }
-        this.layout.updateColumnsWidth();
       }
     },