一个困扰几小时的低级错误!
iview table 高度设置一直无效,一直找不到原因
<Table size="small" :heigth="tableHeight" :columns="minuteColumns" :data="minuteData" ref="table"></Table>
mounted(){
var that=this;
setTimeout(function () {
that.tableHeight = window.innerHeight - 48;
console.log('that.tableHeight',that.tableHeight)
},400);
},
后来让同事帮忙,惊讶的发现 height 拼写错误!
树立目标,保持活力,gogogo!