Files
chuanggao-website/client/node_modules/element-plus/es/hooks/use-prop/index.mjs

10 lines
287 B
JavaScript
Raw Normal View History

2026-05-12 16:53:18 +08:00
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