import { arrayBufferSrc } from "./array-buffer-src.mjs"; import { clickOutside } from "./click-outside.mjs"; import { copy } from "./copy.mjs"; import { debounce } from "./debounce.mjs"; import { intoView } from "./into-view.mjs"; import { lazyLoad } from "./lazy-load.mjs"; import { longPress } from "./long-press.mjs"; import { throttle } from "./throttle.mjs"; import { watermark } from "./watermark.mjs"; import { App, Directive } from "vue"; //#region src/index.d.ts /** * 指令集合 */ declare const directives: Record<"arrayBufferSrc" | "clickOutside" | "copy" | "debounce" | "intoView" | "lazyLoad" | "longPress" | "throttle" | "watermark", Directive>; /** * 指令安装对象 * * @example * ```ts * import { createApp } from 'vue' * import { setupDirective } from '@oiij/directives' * import App from './App.vue' * * const app = createApp(App) * app.use(setupDirective) * app.mount('#app') * ``` */ declare const setupDirective: { /** * 安装指令 * * @param app - Vue 应用实例 */ install(app: App): void; }; declare module 'vue' { interface ComponentCustomProperties { vArrayBufferSrc: typeof arrayBufferSrc; vClickOutside: typeof clickOutside; vCopy: typeof copy; vDebounce: typeof debounce; vIntoView: typeof intoView; vLazyLoad: typeof lazyLoad; vLongPress: typeof longPress; vThrottle: typeof throttle; vWatermark: typeof watermark; } } /** * 导出指令 */ //#endregion export { arrayBufferSrc, clickOutside, copy, debounce, directives, intoView, lazyLoad, longPress, setupDirective, throttle, watermark };