Files
aihot/frontend/node_modules/element-plus/es/hooks/use-prop/index.mjs
2026-05-26 12:56:03 +08:00

10 lines
287 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