mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
10 lines
225 B
TypeScript
10 lines
225 B
TypeScript
import { getCurrentInstance } from 'vue';
|
|
|
|
// expose public api
|
|
export function useExpose(apis: Record<string, any>) {
|
|
const instance = getCurrentInstance();
|
|
if (instance) {
|
|
Object.assign(instance.proxy, apis);
|
|
}
|
|
}
|