初始版本,目前线上可用

This commit is contained in:
2025-11-19 12:49:16 +08:00
commit cb7f1c45e8
178 changed files with 30336 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { App, defineAsyncComponent, defineComponent } from "vue"
const modulesComponent = import.meta.glob('../components/**/**.vue');
const install = (app: App) => {
for(const [key , value] of Object.entries(modulesComponent)) {
const name = key.slice(key.lastIndexOf('/') + 1, key.lastIndexOf('.'));
app.component(name, defineAsyncComponent(value))
}
}
export default install