Files
work-week-plan-front/src/utils/directive/index.ts
T
2026-10-14 17:25:35 +08:00

20 lines
475 B
TypeScript

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);
// });
// }
// }