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

<script>
import ThemePicker from "@/components/ThemePicker";
import { initDingH5RemoteDebug } from "dingtalk-h5-remote-debug";
initDingH5RemoteDebug();
export default {
  name: "App",
  components: { ThemePicker },
  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;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 5px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  cursor: pointer;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.15);
  transition: color 0.2s ease;
}
/* 全局设置 element ui dialog水平垂直居中 */
.el-dialog {
  left: 50%;
  /* top: 5%; */
  transform: translate(-50%, -5%);
  margin: 0px !important;
}
.el-dialog {
    border-radius: 8px;
}
.el-dialog__header {
  /* border-bottom: 1px solid #D7D9DC; */
  box-shadow: 0 1px 4px 0 rgba(31, 45, 61, .12);
}
.el-dialog__footer{
  border-top: 1px solid #D7D9DC;
}
/* 自定义Message 消息提示最小宽度 */
.myBox {
  min-width: 30px !important;
}
</style>
