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

<script>
import ThemePicker from "@/components/ThemePicker";

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 scoped lang="scss">
#app .theme-picker {
  display: none;
}
// 滚动条样式
::v-deep .el-table__body-wrapper::-webkit-scrollbar {
  width: 15px !important;
  height: 15px !important;
}
// ::v-deep .el-table__body-wrapper::-webkit-scrollbar-track {
//   background-color: #063570;
// }
::v-deep .el-table__body-wrapper::-webkit-scrollbar {
  width: 15px;
  height: 15px;
  opacity: 0.5;
}
::v-deep .el-table__body-wrapper::-webkit-scrollbar-thumb {
  border-radius: 15px;
  //background-color: #0257aa;
}
// 表格高度不一致，将高度撑开
// ::v-deep .el-table__fixed,.el-table__fixed-left, .el-table__fixed-right {
//         pointer-events: none;
//         td {
//             pointer-events: auto;
//         }
// }
</style>
<style lang="scss">
  .app-container-scheduling {
    padding: 20px 20px 10px !important;
    .app-container_flex_auto {
      display: flex;
      flex-direction: column;
      width: 100%;
      height: calc( 100vh - 150px );
      // 查询条件
      .app-container_form {
        flex-shrink: 0;
      }
      .app-container_table {
        flex: auto !important;
        display: flex;
        flex-direction: column;
        .app-container_table_main {
          //height: calc( 100% - 40px ) !important;
          flex: auto;
        }
      }
      .app-container_table_page {
        width: 100%;
        flex-shrink: 0;
        padding: 10px 20px 0 0;
        text-align: end;
        ::v-deep .pagination-container {
          padding: 10px 16px !important;
          margin-bottom: 0px !important; 
          margin-top: 0px !important;
        }
      }
      // 让固定列的高自适应，且设置!important覆盖ele-ui的默认样式
      // 15px 为滚动条的高度
      .el-table__fixed{
        height: calc(100% - 15px) !important; 
      }
      //fixed-right 的话，需要设置
      .el-table__fixed-right{
        height: calc(100% - 15px) !important; 
      }
      .el-table__fixed-body-wrapper .el-table__body {
        padding-bottom: 15px !important; // 滚动条高度
      }
    }
  }

  
</style>