@zebra-ui/swiper
Version:
专为多端设计的高性能swiper轮播组件库,支持多种复杂的 3D swiper轮播效果。
13 lines (10 loc) • 362 B
text/typescript
import { getCurrentInstance, type ComponentInternalInstance } from 'vue'
import type { UseExpose } from '../../types/components/shared/use-expose'
const useExpose: UseExpose = (apis) => {
const instance = getCurrentInstance() as ComponentInternalInstance
if (instance) {
// @ts-ignore
Object.assign(instance.proxy, apis)
}
}
export { useExpose }