mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
chore: rename composables folder
This commit is contained in:
9
src/composables/use-expose.ts
Normal file
9
src/composables/use-expose.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { getCurrentInstance } from 'vue';
|
||||
|
||||
// expose public api
|
||||
export function useExpose(apis: Record<string, any>) {
|
||||
const instance = getCurrentInstance();
|
||||
if (instance) {
|
||||
Object.assign(instance.proxy, apis);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user