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

12 lines
337 B

1 month ago
  1. import { getCurrentInstance, computed } from 'vue';
  2. const useProp = (name) => {
  3. const vm = getCurrentInstance();
  4. return computed(() => {
  5. var _a, _b;
  6. return (_b = (_a = vm == null ? void 0 : vm.proxy) == null ? void 0 : _a.$props) == null ? void 0 : _b[name];
  7. });
  8. };
  9. export { useProp };
  10. //# sourceMappingURL=index.mjs.map