UNPKG

@vuesax-alpha/nightly

Version:
23 lines (20 loc) 747 B
import { computed } from 'vue'; import '../../../hooks/index.mjs'; import { useGlobalConfig } from '../../../hooks/use-global-config/index.mjs'; import { defaultNamespace } from '../../../hooks/use-namespace/index.mjs'; import { useIdInjection } from '../../../hooks/use-id/index.mjs'; let cachedContainer; const useLoadingContainerId = () => { const namespace = useGlobalConfig("namespace", defaultNamespace); const idInjection = useIdInjection(); const id = computed(() => { return `${namespace.value}-loading-container-${idInjection.prefix}`; }); const selector = computed(() => `#${id.value}`); return { id, selector }; }; export { cachedContainer, useLoadingContainerId }; //# sourceMappingURL=use-loading.mjs.map