import type { ComponentPublicInstance } from 'vue' import { getCurrentInstance } from 'vue' export function useExpose(apis: Record) { const instance = getCurrentInstance() if (instance) Object.assign(instance.proxy as ComponentPublicInstance, apis) }