chore: rename usePublicApi to useExpose

This commit is contained in:
chenjiahan
2020-09-15 20:19:15 +08:00
parent 02e89a73c5
commit 971c16eb3c
11 changed files with 22 additions and 23 deletions
@@ -1,7 +1,7 @@
import { getCurrentInstance } from 'vue';
// expose public api
export function usePublicApi(apis: Record<string, any>) {
export function useExpose(apis: Record<string, any>) {
const vm = (getCurrentInstance() as any).ctx;
Object.assign(vm, apis);
}