UNPKG

@fe6/water-pro

Version:

An enterprise-class UI design language and Vue-based implementation

12 lines (9 loc) 226 B
/** @format */ import { getCurrentInstance } from 'vue'; // expose public api export function useExpose<T>(apis: T) { const instance = getCurrentInstance(); if (instance) { Object.assign(instance.proxy, apis); } }