<template>
  <div id="app">
    <div class="loading" v-if="loading">
      <div>
        <div class="title">{{ title }}。。。</div>
        <el-progress :percentage="percentage" color="#1890ff"></el-progress>
      </div>
    </div>
    <router-view />
  </div>
</template>
<script>
import Vue from "vue";
export default {
  data() {
    return {
      fontStyle: null,
      api: process.env.VUE_APP_API_BASE_URL + "/",
      percentage: 0,
      loading: false,
      title: "报告生成中",
    };
  },
  beforeCreate() {
    Vue.prototype.$app = this;
  },
  created() {},

  methods: {},
};
</script>

<style lang="less" scoped>
#app {
  .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 99999;
    .title {
      color: #fff;
      font-size: 12px;
      text-align: center;
    }
    .el-progress {
      width: 300px;
      /deep/ .el-progress__text {
        color: #fff;
      }
    }
  }
}
</style>
