Elements-SY

modify

......@@ -186,8 +186,10 @@ export default {
this.$nextTick(() => {
const trEl =
this.$refs.tableRef.$refs.bodyWrapper.children[0].children[1]
.children[0].clientHeight;
this.trHeight = trEl;
.children[0];
if (trEl) {
this.trHeight = trEl.clientHeight;
}
});
}, 800),
......
......@@ -724,7 +724,7 @@ export default {
},
// 删除
deleBtn(item, $index) {
console.log(item, $index);
console.log("删除:",item, $index);
this.tableData.splice($index, 1);
},
// 类别
......