@oruga-ui/oruga-next
Version:
UI components for Vue.js and CSS framework agnostic
17 lines (16 loc) • 566 B
JavaScript
;
/*! Oruga v0.11.0 | MIT License | github.com/oruga-ui/oruga */
const vue = require("vue");
function unrefElement(elRef) {
const plain = vue.toValue(elRef);
return (plain == null ? void 0 : plain.$el) ?? plain;
}
function resolveElement(target) {
const targetQuery = vue.toValue(target);
if (typeof targetQuery === "string")
return document.querySelector(targetQuery);
else return unrefElement(targetQuery);
}
exports.resolveElement = resolveElement;
exports.unrefElement = unrefElement;
//# sourceMappingURL=unrefElement-BozOaxdL.cjs.map