Table: initial value of height can be 0 (#9660)

pull/9666/head
杨奕 2018-02-05 11:31:08 +08:00 committed by GitHub
parent 5015589753
commit 471b8ff4cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class TableLayout {
}
this.height = value;
if (!el && value) return Vue.nextTick(() => this.setHeight(value, prop));
if (!el && (value || value === 0)) return Vue.nextTick(() => this.setHeight(value, prop));
if (typeof value === 'number') {
el.style[prop] = value + 'px';