xdesign-vue-next
Version:
XDesign Component for vue-next
19 lines (16 loc) • 504 B
JavaScript
/**
* xdesign v1.0.6
* (c) 2023 xdesign
* @license MIT
*/
/* unplugin-vue-components disabled */var ANCHOR_SHARP_REGEXP = /#(\S+)$/;
function getOffsetTop(target, container) {
var _target$getBoundingCl = target.getBoundingClientRect(),
top = _target$getBoundingCl.top;
if (container === window) {
return top - document.documentElement.clientTop;
}
return top - container.getBoundingClientRect().top;
}
export { ANCHOR_SHARP_REGEXP, getOffsetTop };
//# sourceMappingURL=utils.js.map