// 滚动到指定位置
function scrollToAnchor(_ref) {
  var scrollerDOM = _ref.scrollerDOM,
    anchor = _ref.anchor;
  var currentAnchorDOM = scrollerDOM.querySelector("[data-indexbar-anchor=\"".concat(anchor, "\"]"));
  if (currentAnchorDOM) scrollerDOM.scrollTop = currentAnchorDOM.offsetTop;
}
export default scrollToAnchor;