index.mjs 288 B

1234567891011
  1. import { computed, getCurrentInstance } from "vue";
  2. //#region ../../packages/hooks/use-prop/index.ts
  3. const useProp = (name) => {
  4. const vm = getCurrentInstance();
  5. return computed(() => (vm?.proxy?.$props)?.[name]);
  6. };
  7. //#endregion
  8. export { useProp };
  9. //# sourceMappingURL=index.mjs.map