Files
cz-web/src/directives/index.ts
2026-10-01 17:24:57 +08:00

12 lines
287 B
TypeScript

import type { App } from 'vue'
import lazy from './lazy'
import debounce from './debounce'
import throttle from './throttle'
export function setupDirectives(app: App): void {
app
.directive('lazy', lazy)
.directive('debounce', debounce)
.directive('throttle', throttle)
}