@oruga-ui/oruga-next
Version:
UI components for Vue.js and CSS framework agnostic
18 lines (17 loc) • 524 B
JavaScript
/*! Oruga v0.11.0 | MIT License | github.com/oruga-ui/oruga */
import { toValue } from "vue";
function unrefElement(elRef) {
const plain = toValue(elRef);
return (plain == null ? void 0 : plain.$el) ?? plain;
}
function resolveElement(target) {
const targetQuery = toValue(target);
if (typeof targetQuery === "string")
return document.querySelector(targetQuery);
else return unrefElement(targetQuery);
}
export {
resolveElement as r,
unrefElement as u
};
//# sourceMappingURL=unrefElement-cze__WCi.mjs.map