index.mjs 317 B

123456789101112
  1. import { getCurrentInstance, computed } from 'vue';
  2. const useProp = (name) => {
  3. const vm = getCurrentInstance();
  4. return computed(() => {
  5. var _a, _b;
  6. return (_b = ((_a = vm.proxy) == null ? void 0 : _a.$props)[name]) != null ? _b : void 0;
  7. });
  8. };
  9. export { useProp };
  10. //# sourceMappingURL=index.mjs.map