完全跑通1.0版本
This commit is contained in:
16
frontend/node_modules/element-plus/es/utils/dom/element.mjs
generated
vendored
Normal file
16
frontend/node_modules/element-plus/es/utils/dom/element.mjs
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { isClient } from "../browser.mjs";
|
||||
import { isString } from "../types.mjs";
|
||||
//#region ../../packages/utils/dom/element.ts
|
||||
const getElement = ((target) => {
|
||||
if (!isClient || target === "") return null;
|
||||
if (isString(target)) try {
|
||||
return document.querySelector(target);
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
return target;
|
||||
});
|
||||
//#endregion
|
||||
export { getElement };
|
||||
|
||||
//# sourceMappingURL=element.mjs.map
|
||||
Reference in New Issue
Block a user