This commit is contained in:
wanghu
2026-10-14 17:25:35 +08:00
parent d69ddf2cf1
commit c6b17e50c2
524 changed files with 31333 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import { App } from "vue";
import realImg from "./real-img";
// 自动导入当前文件夹下的所有自定义指令(默认导出项)
export default (app: App<Element>) => {
realImg(app);
};
// const modules = import.meta.glob("../directive/**/**.ts");
// for (const path in modules) {
// // 排除当前文件
// if (path !== "../directive/index.ts") {
// modules[path]().then(mod => {
// mod.default(app);
// });
// }
// }