use-expose.mjs 237 B

1234567891011
  1. import { getCurrentInstance } from "vue";
  2. import { extend } from "../utils/index.mjs";
  3. function useExpose(apis) {
  4. const instance = getCurrentInstance();
  5. if (instance) {
  6. extend(instance.proxy, apis);
  7. }
  8. }
  9. export {
  10. useExpose
  11. };