Commit 43b4b35afd2ebecccc686681e31f10fbd67114b1
1 parent
a68770c4
优化样式;
Showing
3 changed files
with
17 additions
and
74 deletions
src/components/IndexCenter/IndexCenter.js
| @@ -823,7 +823,7 @@ class IndexCenter extends Component { | @@ -823,7 +823,7 @@ class IndexCenter extends Component { | ||
| 823 | size="middle" | 823 | size="middle" |
| 824 | pagination={false} | 824 | pagination={false} |
| 825 | id="kpiTable" | 825 | id="kpiTable" |
| 826 | - scroll={{ x: 'max-content', y: 'calc(100vh - 250px)' }} | 826 | + scroll={{ x: 'max-content', y: 'calc(100vh - 235px)' }} |
| 827 | onRow={(record) => { return { onDoubleClick: () => { this.handleDoubleClick(record); } }; }} | 827 | onRow={(record) => { return { onDoubleClick: () => { this.handleDoubleClick(record); } }; }} |
| 828 | rowClassName={this.getRowClassName} | 828 | rowClassName={this.getRowClassName} |
| 829 | /> | 829 | /> |
src/components/IndexCenter/index.less
| @@ -108,7 +108,7 @@ | @@ -108,7 +108,7 @@ | ||
| 108 | height: 100%; | 108 | height: 100%; |
| 109 | border: 1px solid #d9d9d9; | 109 | border: 1px solid #d9d9d9; |
| 110 | border-top: 0; | 110 | border-top: 0; |
| 111 | - height: calc(100vh - 240px); | 111 | + height: calc(100vh - 235px); |
| 112 | overflow: auto; | 112 | overflow: auto; |
| 113 | // border-right: 0; | 113 | // border-right: 0; |
| 114 | &::-webkit-scrollbar { | 114 | &::-webkit-scrollbar { |
src/global.less
| 1 | -@import "antd-v4/dist/antd.css"; | 1 | +@import "antd-v4/dist/antd.compact.css"; |
| 2 | @import "./index.less"; | 2 | @import "./index.less"; |
| 3 | @import "./default.less"; | 3 | @import "./default.less"; |
| 4 | @import "./variable.less"; | 4 | @import "./variable.less"; |
| 5 | 5 | ||
| 6 | -.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item, | ||
| 7 | -.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu { | ||
| 8 | - padding: 0 12px; | ||
| 9 | -} | ||
| 10 | - | ||
| 11 | -:where(.css-dev-only-do-not-override-240cud).ant-tabs .ant-tabs-tab { | ||
| 12 | - color: inherit; | ||
| 13 | -} | ||
| 14 | - | ||
| 15 | -:where(.css-dev-only-do-not-override-240cud).ant-tabs>.ant-tabs-nav .ant-tabs-nav-more, | ||
| 16 | -:where(.css-dev-only-do-not-override-240cud).ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-more { | ||
| 17 | - color: inherit; | ||
| 18 | -} | ||
| 19 | - | ||
| 20 | -.ant-btn { | ||
| 21 | - padding: 3px 11px; | ||
| 22 | - font-size: 12px; | ||
| 23 | - height: 28px; | ||
| 24 | -} | ||
| 25 | - | ||
| 26 | -.ant-btn>.anticon+span, | ||
| 27 | -.ant-btn>span+.anticon { | ||
| 28 | - margin-left: 4px; | ||
| 29 | -} | ||
| 30 | - | ||
| 31 | -.ant-tabs-card>.ant-tabs-nav .ant-tabs-tab, | ||
| 32 | -.ant-tabs-card>div>.ant-tabs-nav .ant-tabs-tab { | ||
| 33 | - padding: 4px 8px; | ||
| 34 | -} | ||
| 35 | - | ||
| 36 | -.ant-card { | ||
| 37 | - font-size: 12px; | ||
| 38 | -} | ||
| 39 | - | ||
| 40 | .ant-card-head { | 6 | .ant-card-head { |
| 41 | - padding: 0 12px; | ||
| 42 | border-bottom: 1px solid #d9d9d9; | 7 | border-bottom: 1px solid #d9d9d9; |
| 43 | - min-height: 36px; | ||
| 44 | } | 8 | } |
| 45 | 9 | ||
| 46 | -.ant-card-head-title { | ||
| 47 | - padding: 8.5px 0; | ||
| 48 | -} | ||
| 49 | - | ||
| 50 | -.ant-card-body { | ||
| 51 | - padding: 12px; | ||
| 52 | -} | ||
| 53 | - | ||
| 54 | -.ant-tree { | ||
| 55 | - font-size: 12px; | ||
| 56 | - line-height: 1.66667; | ||
| 57 | -} | ||
| 58 | - | ||
| 59 | -.ant-tree .ant-tree-treenode { | ||
| 60 | - padding: 0; | ||
| 61 | - height: 22px; | 10 | +.ant-table .ant-table-thead>tr>th { |
| 11 | + background: #e6e6e6; | ||
| 62 | } | 12 | } |
| 63 | 13 | ||
| 64 | -.ant-menu-vertical>.ant-menu-item, | ||
| 65 | -.ant-menu-vertical-left>.ant-menu-item, | ||
| 66 | -.ant-menu-vertical-right>.ant-menu-item, | ||
| 67 | -.ant-menu-inline>.ant-menu-item, | ||
| 68 | -.ant-menu-vertical>.ant-menu-submenu>.ant-menu-submenu-title, | ||
| 69 | -.ant-menu-vertical-left>.ant-menu-submenu>.ant-menu-submenu-title, | ||
| 70 | -.ant-menu-vertical-right>.ant-menu-submenu>.ant-menu-submenu-title, | ||
| 71 | -.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title { | ||
| 72 | - height: 32px; | ||
| 73 | - line-height: 32px; | 14 | +.ant-table-thead>tr>th, |
| 15 | +.ant-table-tbody>tr>td { | ||
| 16 | + border-bottom: 1px solid #d9d9d9; | ||
| 74 | } | 17 | } |
| 75 | 18 | ||
| 76 | -.ant-layout-footer { | ||
| 77 | - font-size: 12px; | 19 | +.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>th { |
| 20 | + border-right: 1px solid #d9d9d9; | ||
| 78 | } | 21 | } |
| 79 | 22 | ||
| 80 | -.ant-table .ant-table-thead>tr>th { | ||
| 81 | - background: #e6e6e6; | 23 | +.ant-table.ant-table-bordered>.ant-table-container { |
| 24 | + border-left: 1px solid #d9d9d9; | ||
| 82 | } | 25 | } |
| 83 | 26 | ||
| 84 | -.ant-table.ant-table-middle .ant-table-thead>tr>th { | ||
| 85 | - padding: 8px; | ||
| 86 | - font-size: 12px; | 27 | +.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table, |
| 28 | +.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table { | ||
| 29 | + border-top: 1px solid #d9d9d9; | ||
| 87 | } | 30 | } |
| 88 | 31 | ||
| 89 | -.ant-table-tbody>tr>td { | ||
| 90 | - border-bottom: 1px solid #d9d9d9; | 32 | +.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td { |
| 33 | + border-right: 1px solid #d9d9d9 !important; | ||
| 91 | } | 34 | } |
| 92 | \ No newline at end of file | 35 | \ No newline at end of file |