use-scope-id-0b5b8615.js 460 B

1234567891011121314151617
  1. import { e as extend } from "./index-487cde8c.js";
  2. import { g as getCurrentInstance } from "./index-5e4623ce.js";
  3. function useExpose(apis) {
  4. const instance = getCurrentInstance();
  5. if (instance) {
  6. extend(instance.proxy, apis);
  7. }
  8. }
  9. const useScopeId = () => {
  10. var _a;
  11. const { scopeId } = ((_a = getCurrentInstance()) == null ? void 0 : _a.vnode) || {};
  12. return scopeId ? { [scopeId]: "" } : null;
  13. };
  14. export {
  15. useScopeId as a,
  16. useExpose as u
  17. };