-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.vue
76 lines (72 loc) · 1.78 KB
/
App.vue
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<template>
<div id="app">
<h1>p-charts</h1>
<div class="doc"><a href="https://juejin.im/post/6866330015970099208/" target="_blank">文档(Document)</a></div>
<div class="doc"><a href="http://silianpan.cn/index.php/2020/08/29/p-charts/" target="_blank">博客(Blog)</a></div>
<h2>地图(map)</h2>
<demo-map1 />
<h2>饼图(pie)</h2>
<div class="container">
<demo-pie1 />
<demo-pie2 />
</div>
<h2>条形图(bar)</h2>
<div class="container">
<demo-bar1 />
<demo-bar2 />
</div>
<h2>柱状图(column)</h2>
<demo-column1 />
<demo-column2 />
<demo-column3 />
<h2>折线图(line)</h2>
<demo-line-chart1 />
<demo-line-chart2 />
</div>
</template>
<script>
import DemoPie1 from '@/demo/demo-pie1'
import DemoPie2 from '@/demo/demo-pie2'
import DemoBar1 from '@/demo/demo-bar1'
import DemoBar2 from '@/demo/demo-bar2'
import DemoColumn1 from '@/demo/demo-column1'
import DemoColumn2 from '@/demo/demo-column2'
import DemoColumn3 from '@/demo/demo-column3'
import DemoLineChart1 from '@/demo/demo-line-chart1'
import DemoLineChart2 from '@/demo/demo-line-chart2'
import DemoMap1 from '@/demo/demo-map1'
export default {
name: 'app',
components: {
DemoPie1,
DemoPie2,
DemoBar1,
DemoBar2,
DemoColumn1,
DemoColumn2,
DemoColumn3,
DemoLineChart1,
DemoLineChart2,
DemoMap1
}
}
</script>
<style>
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
.container {
display: grid;
grid-template-columns: repeat(2, 50%);
grid-template-rows: repeat(2, 50%);
}
.doc {
font-size: 18px;
margin-bottom: 10px;
}
</style>