소스 검색

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