index.mjs 337 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 == null ? void 0 : vm.proxy) == null ? void 0 : _a.$props) == null ? void 0 : _b[name];
  7. });
  8. };
  9. export { useProp };
  10. //# sourceMappingURL=index.mjs.map