fix: table表头字体加粗、固定表头border粗问题、过滤列弹出框宽度自适应超出8个字显示省略号、表头下增加border下划线
This commit is contained in:
parent
642a02d0e4
commit
3a6c718b42
|
@ -19,7 +19,7 @@
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
text-align: left; }
|
text-align: left; }
|
||||||
.u-table th {
|
.u-table th {
|
||||||
font-weight: normal;
|
font-weight: bold;
|
||||||
text-align: left; }
|
text-align: left; }
|
||||||
.u-table th[colspan] {
|
.u-table th[colspan] {
|
||||||
text-align: center; }
|
text-align: center; }
|
||||||
|
@ -33,6 +33,8 @@
|
||||||
color: #1565c0; }
|
color: #1565c0; }
|
||||||
.u-table td a:active {
|
.u-table td a:active {
|
||||||
color: #1565c0; }
|
color: #1565c0; }
|
||||||
|
.u-table thead tr:last-child {
|
||||||
|
border-bottom: 1px solid #C1C7D0; }
|
||||||
.u-table tr:hover td .uf-eye {
|
.u-table tr:hover td .uf-eye {
|
||||||
visibility: visible !important; }
|
visibility: visible !important; }
|
||||||
.u-table tr tr a {
|
.u-table tr tr a {
|
||||||
|
@ -48,8 +50,8 @@
|
||||||
padding: 12px 8px;
|
padding: 12px 8px;
|
||||||
word-break: break-all; }
|
word-break: break-all; }
|
||||||
.u-table tr.filterable th {
|
.u-table tr.filterable th {
|
||||||
padding-top: 4px;
|
padding-top: 5px !important;
|
||||||
padding-bottom: 4px; }
|
padding-bottom: 5px !important; }
|
||||||
.u-table tr.filterable th .filterContext {
|
.u-table tr.filterable th .filterContext {
|
||||||
height: 35px; }
|
height: 35px; }
|
||||||
.u-table-row-hover {
|
.u-table-row-hover {
|
||||||
|
@ -60,6 +62,10 @@
|
||||||
border: 1px solid rgb(193, 199, 208);
|
border: 1px solid rgb(193, 199, 208);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
table-layout: fixed; }
|
table-layout: fixed; }
|
||||||
|
.u-table-bordered .u-table-header > table {
|
||||||
|
border-bottom: 0; }
|
||||||
|
.u-table-bordered .u-table-header ~ .u-table-body table, .u-table-bordered .u-table-header ~ .u-table-body-outer table {
|
||||||
|
border-top: 0px; }
|
||||||
.u-table-bordered th {
|
.u-table-bordered th {
|
||||||
border-bottom: 1px solid rgb(193, 199, 208);
|
border-bottom: 1px solid rgb(193, 199, 208);
|
||||||
box-sizing: border-box; }
|
box-sizing: border-box; }
|
||||||
|
@ -283,6 +289,7 @@
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
color: #212121; }
|
color: #212121; }
|
||||||
.u-table-filter-column-clear-setting {
|
.u-table-filter-column-clear-setting {
|
||||||
|
cursor: pointer;
|
||||||
margin-bottom: 4px; }
|
margin-bottom: 4px; }
|
||||||
.u-table-filter-column-cont {
|
.u-table-filter-column-cont {
|
||||||
position: relative; }
|
position: relative; }
|
||||||
|
@ -306,7 +313,9 @@
|
||||||
margin: 0px; }
|
margin: 0px; }
|
||||||
.u-table-filter-column-pop-cont-item > span {
|
.u-table-filter-column-pop-cont-item > span {
|
||||||
margin-left: -3px;
|
margin-left: -3px;
|
||||||
width: 132px;
|
max-width: 132px;
|
||||||
|
width: auto !important;
|
||||||
|
min-width: 56px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
@ -511,11 +520,17 @@
|
||||||
.u-filter-dropdown-menu-wrap {
|
.u-filter-dropdown-menu-wrap {
|
||||||
z-index: 1800; }
|
z-index: 1800; }
|
||||||
.u-filter-dropdown-menu-wrap .u-dropdown-menu li.u-dropdown-menu-item {
|
.u-filter-dropdown-menu-wrap .u-dropdown-menu li.u-dropdown-menu-item {
|
||||||
line-height: 32px;
|
line-height: 28px;
|
||||||
height: 32px;
|
height: 28px;
|
||||||
padding: 0px 16px 0 16px;
|
padding: 0px 16px 0 16px;
|
||||||
cursor: pointer; }
|
cursor: pointer; }
|
||||||
|
|
||||||
|
.filter-wrap .u-form-control {
|
||||||
|
height: 28px; }
|
||||||
|
|
||||||
|
.filter-wrap .u-input-number.u-input-group.simple .u-input-group-btn .icon-group {
|
||||||
|
height: 28px; }
|
||||||
|
|
||||||
.u-row-hover {
|
.u-row-hover {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 24px;
|
right: 24px;
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -16,6 +16,9 @@ $horizontal-padding: 8px;
|
||||||
$table-hover-color: #E7F2FC;
|
$table-hover-color: #E7F2FC;
|
||||||
$table-move-in-color: $bg-color-base;
|
$table-move-in-color: $bg-color-base;
|
||||||
$checkbox-height:16px;
|
$checkbox-height:16px;
|
||||||
|
$table-th-bottom-border:#C1C7D0;
|
||||||
|
|
||||||
|
$filter-form-control-height:28px;
|
||||||
.u-table {
|
.u-table {
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
|
@ -44,7 +47,7 @@ $checkbox-height:16px;
|
||||||
|
|
||||||
th {
|
th {
|
||||||
// background: $table-head-background-color;
|
// background: $table-head-background-color;
|
||||||
font-weight: normal;
|
font-weight: bold;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
// transition: background 0.3s ease;
|
// transition: background 0.3s ease;
|
||||||
&[colspan] {
|
&[colspan] {
|
||||||
|
@ -67,7 +70,12 @@ $checkbox-height:16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
thead{
|
||||||
|
tr:last-child{
|
||||||
|
border-bottom: 1px solid $table-th-bottom-border;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
tr {
|
tr {
|
||||||
// transition: all 0.3s ease;
|
// transition: all 0.3s ease;
|
||||||
&:hover {
|
&:hover {
|
||||||
|
@ -101,8 +109,8 @@ $checkbox-height:16px;
|
||||||
|
|
||||||
&.filterable{
|
&.filterable{
|
||||||
th{
|
th{
|
||||||
padding-top: 4px;
|
padding-top: 5px !important;
|
||||||
padding-bottom: 4px;
|
padding-bottom: 5px !important;
|
||||||
.filterContext{
|
.filterContext{
|
||||||
height: 35px;
|
height: 35px;
|
||||||
}
|
}
|
||||||
|
@ -123,6 +131,16 @@ $checkbox-height:16px;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
// width:auto;
|
// width:auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.u-table-header>table {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
.u-table-header~.u-table-body,.u-table-header~.u-table-body-outer{
|
||||||
|
table{
|
||||||
|
border-top: 0px ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
border-bottom: 1px solid $table-border-color;
|
border-bottom: 1px solid $table-border-color;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
@ -477,7 +495,7 @@ $checkbox-height:16px;
|
||||||
}
|
}
|
||||||
&-clear-setting{
|
&-clear-setting{
|
||||||
// border-bottom: 1px solid #ccc;
|
// border-bottom: 1px solid #ccc;
|
||||||
// cursor: pointer;
|
cursor: pointer;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
&-cont{
|
&-cont{
|
||||||
|
@ -509,7 +527,9 @@ $checkbox-height:16px;
|
||||||
}
|
}
|
||||||
&-pop-cont-item>span{
|
&-pop-cont-item>span{
|
||||||
margin-left: -3px;
|
margin-left: -3px;
|
||||||
width: 132px;
|
max-width: 132px;
|
||||||
|
width: auto !important;
|
||||||
|
min-width: 56px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
@ -784,14 +804,21 @@ $checkbox-height:16px;
|
||||||
z-index: 1800;
|
z-index: 1800;
|
||||||
.u-dropdown-menu {
|
.u-dropdown-menu {
|
||||||
li.u-dropdown-menu-item {
|
li.u-dropdown-menu-item {
|
||||||
line-height: 32px;
|
line-height: $filter-form-control-height;
|
||||||
height: 32px;
|
height: $filter-form-control-height;
|
||||||
padding: 0px 16px 0 16px;
|
padding: 0px 16px 0 16px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.filter-wrap {
|
||||||
|
.u-form-control{
|
||||||
|
height: $filter-form-control-height;
|
||||||
|
}
|
||||||
|
.u-input-number.u-input-group.simple .u-input-group-btn .icon-group {
|
||||||
|
height: $filter-form-control-height;
|
||||||
|
}
|
||||||
|
}
|
||||||
.u-row-hover{
|
.u-row-hover{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 24px;
|
right: 24px;
|
||||||
|
|
Loading…
Reference in New Issue