first commit
This commit is contained in:
11
node_modules/vant/es/composables/use-expose.mjs
generated
vendored
Normal file
11
node_modules/vant/es/composables/use-expose.mjs
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { getCurrentInstance } from "vue";
|
||||
import { extend } from "../utils/index.mjs";
|
||||
function useExpose(apis) {
|
||||
const instance = getCurrentInstance();
|
||||
if (instance) {
|
||||
extend(instance.proxy, apis);
|
||||
}
|
||||
}
|
||||
export {
|
||||
useExpose
|
||||
};
|
||||
Reference in New Issue
Block a user