Commit 474edc4f authored by cyh's avatar cyh

表格高度调整

parent 0e37df4b
...@@ -809,7 +809,7 @@ $--dialog-padding-primary: 20px !default; ...@@ -809,7 +809,7 @@ $--dialog-padding-primary: 20px !default;
/* Table /* Table
-------------------------- */ -------------------------- */
///table||header|0 ///table||header|0
$--table-border-color-self:#E0E0E0; $--table-border-color-self:#E0E0E0;
$--table-current-row-color:#D1ECFF; $--table-current-row-color:#D1ECFF;
/// color||Color|0 /// color||Color|0
$--table-border-color: $--table-border-color-self !default; $--table-border-color: $--table-border-color-self !default;
......
...@@ -108,8 +108,9 @@ ...@@ -108,8 +108,9 @@
thead { thead {
color: $--table-header-font-color; color: $--table-header-font-color;
font-weight: 500; th{
font-weight: 600;
}
&.is-group { &.is-group {
th { th {
background: $--background-color-base; background: $--background-color-base;
...@@ -118,7 +119,7 @@ ...@@ -118,7 +119,7 @@
} }
th, td { th, td {
padding: 12px 0; // padding: 12px 0;
min-width: 0; min-width: 0;
box-sizing: border-box; box-sizing: border-box;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -185,6 +186,8 @@ ...@@ -185,6 +186,8 @@
} }
th { th {
height:40px;
line-height:40px;
overflow: hidden; overflow: hidden;
user-select: none; user-select: none;
background-color: $--table-header-background-color; background-color: $--table-header-background-color;
...@@ -194,8 +197,8 @@ ...@@ -194,8 +197,8 @@
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
vertical-align: middle; vertical-align: middle;
padding-left: 10px; padding-left: 8px;
padding-right: 10px; padding-right: 8px;
width: 100%; width: 100%;
&.highlight { &.highlight {
...@@ -216,6 +219,8 @@ ...@@ -216,6 +219,8 @@
} }
td { td {
height: 32px;
line-height: 32px;
div { div {
box-sizing: border-box; box-sizing: border-box;
} }
...@@ -232,8 +237,8 @@ ...@@ -232,8 +237,8 @@
white-space: normal; white-space: normal;
word-break: break-all; word-break: break-all;
line-height: 23px; line-height: 23px;
padding-left: 10px; padding-left: 8px;
padding-right: 10px; padding-right: 8px;
&.el-tooltip { &.el-tooltip {
white-space: nowrap; white-space: nowrap;
...@@ -284,7 +289,7 @@ ...@@ -284,7 +289,7 @@
border-right: $--table-border; border-right: $--table-border;
&:first-child .cell { &:first-child .cell {
padding-left: 10px; padding-left: 8px;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment