mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-19 05:48:08 +08:00
27 lines
675 B
JavaScript
27 lines
675 B
JavaScript
import * as AntIcon from '@ant-design/icons-vue';
|
|
import Antd from 'ant-design-vue';
|
|
import { createApp } from 'vue';
|
|
import App from './App.vue';
|
|
import './assets/global.less';
|
|
import './assets/theme.less';
|
|
import components from './components/global';
|
|
import Router from './router/index';
|
|
|
|
const app = createApp(App)
|
|
app.config.productionTip = false
|
|
|
|
// components
|
|
for (const i in components) {
|
|
app.component(i, components[i])
|
|
}
|
|
|
|
// icon
|
|
for (const i in AntIcon) {
|
|
const whiteList = ['createFromIconfontCN', 'getTwoToneColor', 'setTwoToneColor', 'default']
|
|
if (!whiteList.includes(i)) {
|
|
app.component(i, AntIcon[i])
|
|
}
|
|
}
|
|
|
|
app.use(Antd).use(Router).mount('#app')
|