mirror of https://github.com/ElemeFE/element
Table: initial value of height can be 0 (#9660)
parent
5015589753
commit
471b8ff4cf
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue