scopeId.mjs 300 B

123456789101112
  1. // Utilities
  2. import { getCurrentInstance } from "../util/index.mjs";
  3. export function useScopeId() {
  4. const vm = getCurrentInstance('useScopeId');
  5. const scopeId = vm.vnode.scopeId;
  6. return {
  7. scopeId: scopeId ? {
  8. [scopeId]: ''
  9. } : undefined
  10. };
  11. }
  12. //# sourceMappingURL=scopeId.mjs.map