Files
todo-frontend/node_modules/licia/$offset.js
Agent d12eea7693
Some checks failed
continuous-integration/drone/push Build is failing
fix: 微信登录补充保存username和role
2026-04-04 07:35:21 +00:00

15 lines
402 B
JavaScript

var $safeEls = require('./$safeEls');
exports = function(els) {
els = $safeEls(els);
var el = els[0];
var clientRect = el.getBoundingClientRect();
return {
left: clientRect.left + window.pageXOffset,
top: clientRect.top + window.pageYOffset,
width: Math.round(clientRect.width),
height: Math.round(clientRect.height)
};
};
module.exports = exports;