初始化

This commit is contained in:
李志鹏
2026-04-20 11:21:21 +08:00
commit 8d28482783
58 changed files with 16867 additions and 0 deletions

9
src/directives/index.js Normal file
View File

@@ -0,0 +1,9 @@
export default {
install(app) {
const directivesList = import.meta.glob('./*.js', { eager: true });
// 遍历指令文件实现自动注册
Object.keys(directivesList).forEach(key => {
app.directive(directivesList[key].default.name, directivesList[key].default);
});
}
};