UNPKG

hongluan-ui

Version:
17 lines (14 loc) 368 B
import '../types.mjs'; import '../browser.mjs'; import { isClient } from '@vueuse/core'; import { isString } from '@vue/shared'; const getElement = (target) => { if (!isClient || target === "") return null; if (isString(target)) { return document.querySelector(target); } return target; }; export { getElement }; //# sourceMappingURL=element.mjs.map