Blame view

src/views/home/dataView/screencontent.vue 1.12 KB
xiaomiao committed
1
<template>
xiaomiao committed
2 3 4 5
  <div class="content" id="box">
         <leftcard />
         <centercard />
         <rightcard />
xiaomiao committed
6 7 8
  </div>
</template>
<script>
xiaomiao committed
9 10
import "@/utils/flexible.js";
import ScaleBox from "./box.vue";
任超 committed
11
import drawMixin from "@/utils/drawMixin";
xiaomiao committed
12 13 14 15 16
import leftcard from "./leftcard";
import centercard from "./centercard";
import rightcard from "./rightcard";
export default {
  mixins: [drawMixin],
任超 committed
17
  data () {
xiaomiao committed
18 19 20 21 22 23 24 25
    return {
      decorationColor: ["#568aea", "#568aea"],
    };
  },
  components: {
    leftcard,
    centercard,
    rightcard,
xiaomiao committed
26
    ScaleBox,
xiaomiao committed
27
  },
任超 committed
28
  mounted () {
xiaomiao committed
29 30 31
    // this.timeFn();
    this.cancelLoading();
  },
任超 committed
32
  beforeDestroy () {
xiaomiao committed
33 34 35
    clearInterval(this.timing);
  },
  methods: {
任超 committed
36
    cancelLoading () {
xiaomiao committed
37 38 39 40 41 42 43 44 45
      setTimeout(() => {
        this.loading = false;
      }, 500);
    },
  },
};
</script>

<style scoped lang="scss">
任超 committed
46
.content {
任超 committed
47
  width: 100%;
任超 committed
48
  height: calc(100% -94px);
任超 committed
49 50
  margin: auto;
  display: flex;
任超 committed
51
  justify-content: space-between;
xiaomiao committed
52
  margin-top: 15px;
xiaomiao committed
53

任超 committed
54
}
xiaomiao committed
55 56 57 58 59 60 61
  // #box{
  // width: 1620px;
  // height: 680px;
  // position: absolute;
  // transform-origin: left top;
  // overflow: hidden;
  // }
xiaomiao committed
62
</style>