campus-errand/admin/node_modules/element-plus/es/utils/dom/element.mjs
2026-03-01 05:01:47 +08:00

18 lines
373 B
JavaScript

import { isClient } from '@vueuse/core';
import { isString } from '@vue/shared';
const getElement = ((target) => {
if (!isClient || target === "") return null;
if (isString(target)) {
try {
return document.querySelector(target);
} catch (e) {
return null;
}
}
return target;
});
export { getElement };
//# sourceMappingURL=element.mjs.map