mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-25 11:39:54 +00:00
chore: update frontend build for v1.1.82 [skip ci]
This commit is contained in:
40
web/admin-spa/node_modules/element-plus/es/hooks/use-popper-container/index.mjs
generated
vendored
40
web/admin-spa/node_modules/element-plus/es/hooks/use-popper-container/index.mjs
generated
vendored
@@ -1,40 +0,0 @@
|
||||
import { computed, onBeforeMount } from 'vue';
|
||||
import { useGetDerivedNamespace } from '../use-namespace/index.mjs';
|
||||
import { useIdInjection } from '../use-id/index.mjs';
|
||||
import { isClient } from '@vueuse/core';
|
||||
|
||||
const usePopperContainerId = () => {
|
||||
const namespace = useGetDerivedNamespace();
|
||||
const idInjection = useIdInjection();
|
||||
const id = computed(() => {
|
||||
return `${namespace.value}-popper-container-${idInjection.prefix}`;
|
||||
});
|
||||
const selector = computed(() => `#${id.value}`);
|
||||
return {
|
||||
id,
|
||||
selector
|
||||
};
|
||||
};
|
||||
const createContainer = (id) => {
|
||||
const container = document.createElement("div");
|
||||
container.id = id;
|
||||
document.body.appendChild(container);
|
||||
return container;
|
||||
};
|
||||
const usePopperContainer = () => {
|
||||
const { id, selector } = usePopperContainerId();
|
||||
onBeforeMount(() => {
|
||||
if (!isClient)
|
||||
return;
|
||||
if (process.env.NODE_ENV === "test" || !document.body.querySelector(selector.value)) {
|
||||
createContainer(id.value);
|
||||
}
|
||||
});
|
||||
return {
|
||||
id,
|
||||
selector
|
||||
};
|
||||
};
|
||||
|
||||
export { usePopperContainer, usePopperContainerId };
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
Reference in New Issue
Block a user