12 lines
287 B
TypeScript
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)
|
|
}
|