23 lines
610 B
TypeScript
23 lines
610 B
TypeScript
import { createApp } from "vue";
|
|
import "@sy/web-vitals";
|
|
import { IconsPlugin } from "@vtj/icons";
|
|
import { VueQueryPlugin } from "@tanstack/vue-query";
|
|
import * as VtjUI from "@vtj/ui";
|
|
import App from "./App.vue";
|
|
import ElementPlus from "element-plus";
|
|
import "element-plus/dist/index.css";
|
|
import "@vtj/ui/dist/style.css";
|
|
|
|
const app = createApp(App);
|
|
|
|
// 批量注册组件
|
|
Object.entries(VtjUI).forEach(([name, component]) => {
|
|
console.log("name", name, component);
|
|
app.component(name, component);
|
|
});
|
|
app
|
|
.use(ElementPlus)
|
|
.use(IconsPlugin)
|
|
.use(VueQueryPlugin)
|
|
.mount("#y-code-renderer");
|