//解决方案 <el-table v-loading="loading" ref="table" height="100%" :data="tableData" style=" 100%" border></el-table> let that = this; this.$nextTick(() => { that.$refs.table.doLayout(); // 解决表格错位 });