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

Table: Trigger `doLayout` when display from `none` to others

lirilsu 7 жил өмнө
parent
commit
fa494b1952

+ 3 - 0
packages/table/src/table.vue

@@ -330,6 +330,9 @@
           }
           if (this.$el) {
             this.isHidden = this.$el.clientWidth === 0;
+            if (this.isHidden && this.layout.bodyWidth) {
+              setTimeout(() => this.doLayout());
+            }
           }
         });
       }