UNPKG

vue-virtualized-table-booway

Version:

The second version of implementation of `vue-virtual-table` component, it was inspired from [rc-table](https://github.com/react-component/table) and [ant-table](https://ant.design/components/table), API design is 60%+ consistent. Or you could think I tran

22 lines (20 loc) 461 B
/** * forceScroll * @param {number} scrollLeft * @param {HTMLDivElement} target */ export function forceScroll(scrollLeft, target) { if (target && target.scrollLeft !== scrollLeft) { target.scrollLeft = scrollLeft } } /** * forceScrollTop * @param {number} scrollTop * @param {HTMLDivElement} target */ export function forceScrollTop(scrollTop, target) { if (target && target.scrollTop !== scrollTop) { target.scrollTop = scrollTop } }