feat 搭建架构骨架

This commit is contained in:
Ironsp
2026-09-24 09:09:47 +08:00
parent dd9f6b77a4
commit 7a2efa3fea
180 changed files with 18967 additions and 9 deletions

12
src/directives/index.ts Normal file
View File

@@ -0,0 +1,12 @@
import type { App } from 'vue'
import lazy from './lazy'
import debounce from './debounce'
import throttle from './throttle'
/** main.ts 调用:统一注册自定义指令 */
export function setupDirectives(app: App): void {
app
.directive('lazy', lazy)
.directive('debounce', debounce)
.directive('throttle', throttle)
}