前端最新版本同步

This commit is contained in:
Zhang.WH
2025-09-25 10:36:07 +08:00
parent a3a06d6f3c
commit 1276dc4adb
117 changed files with 11964 additions and 2466 deletions

View File

@@ -0,0 +1,17 @@
// 动态引入 template 目录下的所有 .vue 文件
const templates = import.meta.glob('./*.vue', { eager: true });
const components = [];
// 遍历所有引入的文件
for (const path in templates) {
const component = templates[path].default;
components.push(component);
}
const registerComponents = (app) => {
components.forEach((component) => {
app.component(component.name, component);
})
}
export { components, registerComponents };