123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <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 {
- 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>
|