use-scope-id.mjs 239 B

123456789
  1. import { getCurrentInstance } from "vue";
  2. const useScopeId = () => {
  3. var _a;
  4. const { scopeId } = ((_a = getCurrentInstance()) == null ? void 0 : _a.vnode) || {};
  5. return scopeId ? { [scopeId]: "" } : null;
  6. };
  7. export {
  8. useScopeId
  9. };