ant的a-table更改表格的高度

css 复制代码
<style lang="scss">
/* 表格状态筛选 popover 样式 */
.ant-popover.status-filter-popover .ant-popover-inner-content {
  padding: 0 !important;
}


  :deep(.ant-tabs-card > .ant-tabs-nav .ant-tabs-tab) {
    background: #fff;
  }

  :deep(.ant-tabs-card > .ant-tabs-nav .ant-tabs-tab-active) {
    background: #fff;
  }

  .template-table-work-package {
    // height: calc(100vh - 542px);
    height: calc(100vh - 200px);
    background: #fff;
    box-sizing: border-box;
  }

  .template-table-work-package.ant-table-wrapper .ant-table {
    // height: calc(100vh - 598px);
    height: calc(100vh - 200px);
    background: #fff;
    // background: red;
  }

  .ant-table,
  .ant-table-container,
  .ant-table-thead>tr>th,
  .ant-table-tbody>tr>td,
  .ant-table-cell {
    border-color: #B6C3CF !important;
  }

  .ant-empty-normal {
    // height: calc(100vh - 576px);
    height: calc(100vh - 269px);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-block: 0;
  }
.ant-table .ant-table-expanded-row-fixed{
  margin-bottom: 0;
  padding-bottom: 0;
}
  .ant-table-thead>tr>th::before {
    background-color: #B6C3CF !important;
  }

  .ant-table-wrapper .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table {
    border-color: #B6C3CF !important;
  }

  .ant-table-wrapper .ant-table .ant-table-header {
    border-right: 1px solid #B6C3CF !important;
  }

  .ant-table-wrapper .ant-table-thead>tr>th {
    color: #1F1F1F;
  }

  .ant-table-wrapper .ant-table-tbody>tr>td {
    color: #1F1F1F;
  }

  .ant-table-wrapper .ant-table-pagination.ant-pagination {
    margin-right: 20px;
  }
 
</style>
相关推荐
FungLeo2 小时前
成为全栈·Vue 管理后台篇·分类树与标签管理:层级数据如何落到管理界面
前端·javascript·vue.js·分类树·naive ui·标签管理·前端数据结构
总要学点什么2 小时前
第108篇:三维特效-图片轨迹线效果——把贴图滚成一串箭头,想用它的本色反而整条消失
开发语言·javascript·ecmascript·gis·webgl·材质·cesium
Lank_M5 小时前
白底都占八成,PNG 为何只在图表页赢过 JPG
前端
张一凡935 小时前
给 Coding Agent 加一道"架构闸门":Jin 是如何做到"先审架构、再写代码、不漂移"的
前端·后端·agent
Linye5 小时前
AI 写的 HTML 原型全是空壳?聊聊真实 DOM 交互避坑
前端·人工智能
ZANE5 小时前
纯前端实现的 PDF 与图片互相转换工具技术实现
前端
Swot5 小时前
SvelteKit Remote Functions 使用指南
前端·后端
Cooper256 小时前
三源热榜去重加 AI 摘要:URL 唯一键踩出的三个坑
前端·python
Yk酱228406 小时前
A2UI探索随笔-技术选型
前端
前端繁华如梦6 小时前
# 从 73000 行压缩代码到 TypeScript 模块化:我把一个 Three.js FPS 游戏 1:1 复刻了一遍
前端