mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types: remove any in useExpose
This commit is contained in:
parent
dffa6eb083
commit
f28bce200f
@ -2,6 +2,8 @@ import { getCurrentInstance } from 'vue';
|
||||
|
||||
// expose public api
|
||||
export function useExpose(apis: Record<string, any>) {
|
||||
const vm = (getCurrentInstance() as any).ctx;
|
||||
Object.assign(vm, apis);
|
||||
const instance = getCurrentInstance();
|
||||
if (instance) {
|
||||
Object.assign(instance.proxy, apis);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user