Elements-SY

modify

...@@ -186,8 +186,10 @@ export default { ...@@ -186,8 +186,10 @@ export default {
186 this.$nextTick(() => { 186 this.$nextTick(() => {
187 const trEl = 187 const trEl =
188 this.$refs.tableRef.$refs.bodyWrapper.children[0].children[1] 188 this.$refs.tableRef.$refs.bodyWrapper.children[0].children[1]
189 - .children[0].clientHeight; 189 + .children[0];
190 - this.trHeight = trEl; 190 + if (trEl) {
191 + this.trHeight = trEl.clientHeight;
192 + }
191 }); 193 });
192 }, 800), 194 }, 800),
193 195
......
...@@ -724,7 +724,7 @@ export default { ...@@ -724,7 +724,7 @@ export default {
724 }, 724 },
725 // 删除 725 // 删除
726 deleBtn(item, $index) { 726 deleBtn(item, $index) {
727 - console.log(item, $index); 727 + console.log("删除:",item, $index);
728 this.tableData.splice($index, 1); 728 this.tableData.splice($index, 1);
729 }, 729 },
730 // 类别 730 // 类别
......