Blame view

src/views/demo/echarts/apex/index.vue 818 Bytes
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
<template>
  <div class="apex-demo p-4">
    <div class="demo-box">
      <Line />
    </div>
    <div class="demo-box">
      <Bar />
    </div>
    <div class="demo-box">
      <Area />
    </div>
    <div class="demo-box">
      <Mixed />
    </div>
  </div>
</template>
<script>
  import { defineComponent } from 'vue';

  import Line from './Line.vue';
  import Bar from './Bar.vue';
  import Area from './Area.vue';
  import Mixed from './Mixed.vue';
  export default defineComponent({
    components: { Line, Bar, Area, Mixed },
    setup() {},
  });
</script>
<style lang="less" scoped>
  .apex-demo {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    .demo-box {
      width: 49%;
      margin-bottom: 20px;
      background: #fff;
      border-radius: 10px;
    }
  }
</style>