| | |
| | | import App from "./App.vue"; |
| | | import router from "./router"; |
| | | import store from "./store"; |
| | | import ElementPlus from "element-plus"; |
| | | import "element-plus/dist/index.css"; |
| | | import "./assets/css/global.css"; |
| | | // import "amfe-flexible"; |
| | | import "dayjs/locale/zh-cn"; |
| | | import locale from "element-plus/lib/locale/lang/zh-cn"; |
| | | import vue3SeamlessScroll from "vue3-seamless-scroll"; |
| | | |
| | | createApp(App).use(store).use(router).mount("#app"); |
| | | // 将自动注册所有组件为全局组件 |
| | | import dataV from "@jiaminghi/data-view"; |
| | | // import { scrollBoard } from '@jiaminghi/data-view' |
| | | import * as ElIconModules from "@element-plus/icons-vue"; |
| | | import "amfe-flexible/index"; |
| | | |
| | | var app = createApp(App); |
| | | |
| | | Object.keys(ElIconModules).forEach(function (key) { |
| | | app.component(ElIconModules[key].name, ElIconModules[key]); |
| | | }); |
| | | |
| | | app |
| | | .use(store) |
| | | .use(router) |
| | | .use(dataV) |
| | | .use(ElementPlus, { locale }) |
| | | .use(vue3SeamlessScroll) |
| | | // .use(dataV) |
| | | .mount("#app"); |