UNPKG

@vuesax-alpha/nightly

Version:
13 lines (10 loc) 331 B
import { getCurrentInstance, computed, unref } from 'vue'; const useProp = (name) => { const vm = getCurrentInstance(); return computed(() => { var _a, _b; return (_b = unref(((_a = vm.proxy) == null ? void 0 : _a.$props)[name])) != null ? _b : void 0; }); }; export { useProp }; //# sourceMappingURL=index.mjs.map