import { createApp } from "vue";
import App from "./App.vue";
import "default-passive-events";
// reset style sheet
import "@/styles/reset.scss";
// iosn icon
import "@/assets/fonto/iconfont.css";
// svg icons
import "virtual:svg-icons-register";
// iconfont css
import "@/assets/iconfont/iconfont.scss";
// font css
// import "@/assets/fonts/font.scss";

//这个必须引入,解决ElMessageBox失效
import "element-plus/dist/index.css";
//公共样式
import "@/styles/common.scss";
// 重置 element 样式
import "@/styles/element.scss";
// svg icons
import "virtual:svg-icons-register";

// custom directives
import directives from "@/directives/index";
// vue Router
import router from "@/routers";

// pinia store
import pinia from "@/stores";
// errorHandler
import errorHandler from "@/utils/errorHandler";
import VXETable from "vxe-table";
import "vxe-table/lib/style.css";

import mavonEditor from "mavon-editor";
import "mavon-editor/dist/css/index.css";
const app = createApp(App);

app.config.errorHandler = errorHandler;

app.use(directives).use(router).use(pinia).use(VXETable).use(mavonEditor).mount("#app");
