浏览代码

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

lirilsu 7 年之前
父节点
当前提交
fa494b1952
共有 1 个文件被更改,包括 3 次插入0 次删除
  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());
+            }
           }
         });
       }