UNPKG

fastlion-amis

Version:

一种MIS页面生成工具

15 lines (14 loc) 370 B
/** * 修改自 https://github.com/react-bootstrap/dom-helpers/blob/master/src/offset.ts */ /** * Returns the offset of a given element, including top and left positions, width and height. * * @param node the element */ export default function offset(node: HTMLElement): { top: number; left: number; height: number; width: number; };