UNPKG

xdesign-vue-next

Version:

XDesign Component for vue-next

24 lines (19 loc) 625 B
/** * xdesign v1.0.6 * (c) 2023 xdesign * @license MIT */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /* 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; } exports.ANCHOR_SHARP_REGEXP = ANCHOR_SHARP_REGEXP; exports.getOffsetTop = getOffsetTop; //# sourceMappingURL=utils.js.map