UNPKG

element-plus

Version:

A Component Library for Vue 3

11 lines (9 loc) 288 B
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