Element table component, add a piece of data, scroll bar and display to the corresponding location, and highlight how to achieve?

table component of elementUI used

after adding a piece of data, if you have a scroll bar, you need to scroll to the corresponding position and highlight


document.getElementById('tableBox').getElementsByClassName('el-table__body-wrapper')[0].scrollTop =
        document.getElementById('player'+playId).parentNode.parentNode.parentNode.offsetTop
Menu