refactor: remove useExpose

This commit is contained in:
Vben
2021-06-11 22:45:02 +08:00
parent 3b2c40bec8
commit bd2039accb
12 changed files with 610 additions and 613 deletions

View File

@@ -1,9 +0,0 @@
import { getCurrentInstance } from 'vue';
// expose public api
export function useExpose<T>(apis: T) {
const instance = getCurrentInstance();
if (instance) {
Object.assign(instance.proxy, apis);
}
}