Browse Source

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

lirilsu 7 years ago
parent
commit
fa494b1952
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/table/src/table.vue

+ 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());
+            }
           }
         });
       }