You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
288 B
JavaScript

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