<template>
  <div id="app">
    <router-view />
    <theme-picker />
  </div>
</template>

<script>
import ThemePicker from "@/components/ThemePicker";
import autofit from 'autofit.js';


export default {
  name: "App",
  components: { ThemePicker },
  mounted() {
    autofit.init({
      dh: 850, // 设计稿的高度
      dw: 1900, // 设计稿的宽度
      el: "body", // 渲染的DOM元素
      resize: true // 是否监听resize事件
    })
  },
  metaInfo() {
    return {
      title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
      titleTemplate: title => {
        return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
      }
    }
  }
};
</script>
<style>
#app .theme-picker {
  display: none;
}

/* 项目详情中的表单label */
.el-descriptions-item__label.is-bordered-label {
  background: #F4F7FE !important;
  width: 13.13rem;
  font-size: 0.5rem;
}

.el-descriptions__body .el-descriptions__table .el-descriptions-item__cell {
  width: 13.13rem;
  font-size: 0.88rem;
}
</style>
