ckgl/node_modules/vant/es/composables/use-scope-id.mjs
2024-12-21 13:52:42 +08:00

10 lines
239 B
JavaScript

import { getCurrentInstance } from "vue";
const useScopeId = () => {
var _a;
const { scopeId } = ((_a = getCurrentInstance()) == null ? void 0 : _a.vnode) || {};
return scopeId ? { [scopeId]: "" } : null;
};
export {
useScopeId
};