[Vuejs]-How to Pragmatically scroll in el-table as the current selected row changes? Element.io

0👍

Turns out it was more of a HTML DOM manipulation.
The code to select the current row and ask it to come into view was:

            var ScrollTable = document.querySelector('.SearchTable');
            var innerTable = ScrollTable.querySelector('.el-table__body');
            var innerTbody = innerTable.querySelector('tbody');
            var currentRow = innerTbody.querySelector('.current-row');
            currentRow.scrollIntoView();

Leave a comment