<vxe-table ref="table" :key="tableKey" > addRow() { // 滾到最左側 this.tableKey = +new Date() const list = { lngemployeeid: '', } setTimeout(() => { // 定位到新增行 this.$refs.table.setActiveRow(list) const lastRow = this.detailDialog.tableData[this.detailDialog.tableData.length - 1] this.$refs.table.setCurrentRow(lastRow) this.$refs.table.scrollToRow(lastRow) })