@oruga-ui/oruga-next
Version:
UI components for Vue.js and CSS framework agnostic
18 lines (17 loc) • 498 B
JavaScript
/*! Oruga v0.11.4 | MIT License | github.com/oruga-ui/oruga */
import { toValue } from "vue";
function unrefElement(elRef) {
const plain = toValue(elRef);
return 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-D7RSwowH.mjs.map