소스 검색

Table: equal behaviour for height and max-height (#14660)

Arthur Denner 6 년 전
부모
커밋
9c620409fc
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      packages/table/src/table.vue

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

@@ -585,9 +585,7 @@
           };
         } else if (this.maxHeight) {
           return {
-            'max-height': (this.showHeader
-              ? this.maxHeight - this.layout.headerHeight - this.layout.footerHeight
-              : this.maxHeight - this.layout.footerHeight) + 'px'
+            'max-height': this.layout.bodyHeight ? this.layout.bodyHeight + 'px' : ''
           };
         }
         return {};