Commit 471b8ff4 authored by 杨奕's avatar 杨奕 Committed by GitHub

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

parent 50155897
...@@ -56,7 +56,7 @@ class TableLayout { ...@@ -56,7 +56,7 @@ class TableLayout {
} }
this.height = value; 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') { if (typeof value === 'number') {
el.style[prop] = value + 'px'; el.style[prop] = value + 'px';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment