import { createApp } from "vue";
import Antd from "ant-design-vue/es";
import App from "./App.vue";
import Router from "./route";
import Store from "./store";
import Pear from "./component";
import i18n from './locale';
import * as antIcons from '@ant-design/icons-vue';

import "./assets/css/index.less";
import "ant-design-vue/dist/antd.less";
import VueCropper from 'vue-cropper'

const app = createApp(App)
app.use(i18n)
app.use(Antd)
app.use(Pear)
app.use(Store)
app.use(Router)
app.use(VueCropper)
app.mount("#app")

Object.keys(antIcons).forEach(key => {
    app.component(key, antIcons[key])
})

app.config.globalProperties.$antIcons = antIcons

export default app
