-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathmain.js
More file actions
49 lines (47 loc) · 1.11 KB
/
main.js
File metadata and controls
49 lines (47 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import {createApp} from 'vue'
// import './style.css'
import App from './App.vue'
import router from './router' // 引入路由
import ArcoVue from '@arco-design/web-vue'
import ArcoVueIcon from '@arco-design/web-vue/es/icon';
import '@arco-design/web-vue/dist/arco.css'
import '@/assets/icon_font/iconfont.css' // 引入iconfont样式
import {createPinia} from 'pinia'
import 'viewerjs/dist/viewer.css'
import VueViewer from 'v-viewer'
import ECharts from 'vue-echarts'
import ActionComponents from '@/components/actions'
import { use } from 'echarts/core'
import {
CanvasRenderer
} from 'echarts/renderers'
import {
BarChart,
LineChart,
PieChart
} from 'echarts/charts'
import {
GridComponent,
TooltipComponent,
LegendComponent,
TitleComponent
} from 'echarts/components'
use([
CanvasRenderer,
BarChart,
LineChart,
PieChart,
GridComponent,
TooltipComponent,
LegendComponent,
TitleComponent
])
const app = createApp(App)
app.use(router)
app.use(ArcoVue);
app.use(ArcoVueIcon);
app.use(createPinia())
app.use(VueViewer)
app.use(ActionComponents)
app.component('v-chart', ECharts)
app.mount('#app')