2019-04-30 11:11:25 +08:00
|
|
|
|
.#{$ns}Table {
|
2019-12-06 09:58:08 +08:00
|
|
|
|
position: relative;
|
2021-07-07 19:39:17 +08:00
|
|
|
|
|
2020-12-21 10:08:40 +08:00
|
|
|
|
border-radius: var(--Table-borderRadius);
|
|
|
|
|
margin-bottom: var(--gap-md);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
2020-04-08 10:34:16 +08:00
|
|
|
|
.#{$ns}Form-control > & {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
margin-bottom: var(--gap-sm);
|
2020-04-08 10:34:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&-fixedLeft,
|
|
|
|
|
&-fixedRight {
|
|
|
|
|
position: absolute;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--Table-bg);
|
|
|
|
|
z-index: var(--Table-fixed-zIndex);
|
2020-11-20 15:57:36 +08:00
|
|
|
|
top: auto;
|
|
|
|
|
box-shadow: none;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&-fixedLeft {
|
2020-12-07 19:36:23 +08:00
|
|
|
|
// 还是改成默认不显示,footable 展示的时候,配置 固定列还没修复
|
2019-12-06 09:58:08 +08:00
|
|
|
|
left: 0;
|
2020-12-07 19:36:23 +08:00
|
|
|
|
top: -99999px;
|
2020-11-18 15:14:45 +08:00
|
|
|
|
|
2020-11-20 15:57:36 +08:00
|
|
|
|
&.in {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
box-shadow: var(--Table-fixedLeft-boxShadow);
|
2020-12-08 13:04:21 +08:00
|
|
|
|
top: auto;
|
2020-11-20 15:57:36 +08:00
|
|
|
|
}
|
2020-11-18 15:14:45 +08:00
|
|
|
|
|
2020-12-01 15:00:29 +08:00
|
|
|
|
& > .#{$ns}Table-table {
|
|
|
|
|
> thead > tr > th:last-child,
|
|
|
|
|
> tbody > tr > td:last-child {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding-right: var(--TableCell-paddingX);
|
2020-12-01 15:00:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// > thead > tr > th:last-child {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
// border-right: var(--Table-thead-borderWidth) solid var(--Table-thead-borderColor);
|
2020-12-01 15:00:29 +08:00
|
|
|
|
// }
|
2020-11-20 15:57:36 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&-fixedRight {
|
2020-12-07 19:36:23 +08:00
|
|
|
|
// 还是改成默认不显示,footable 展示的时候,配置 固定列还没修复
|
2019-12-06 09:58:08 +08:00
|
|
|
|
right: 0;
|
2020-12-07 19:36:23 +08:00
|
|
|
|
top: -99999px;
|
2019-12-06 21:20:23 +08:00
|
|
|
|
|
2020-11-20 15:57:36 +08:00
|
|
|
|
&.in {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
box-shadow: var(--Table-fixedRight-boxShadow);
|
2020-12-08 13:04:21 +08:00
|
|
|
|
top: auto;
|
2020-11-20 15:57:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-12-01 15:00:29 +08:00
|
|
|
|
& > .#{$ns}Table-table {
|
2020-11-20 15:57:36 +08:00
|
|
|
|
> thead > tr > th:first-child,
|
|
|
|
|
> tbody > tr > td:first-child {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding-left: var(--TableCell-paddingX);
|
2020-11-20 15:57:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-12-01 15:00:29 +08:00
|
|
|
|
// > thead > tr > th:first-child {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
// border-left: var(--Table-thead-borderWidth) solid var(--Table-thead-borderColor);
|
2020-12-01 15:00:29 +08:00
|
|
|
|
// }
|
2020-11-20 15:57:36 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&-fixedTop {
|
|
|
|
|
position: absolute;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--Table-bg);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
z-index: -1;
|
|
|
|
|
opacity: 0;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
box-shadow: var(--Table-fixedTop-boxShadow);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
2021-07-07 19:39:17 +08:00
|
|
|
|
// box-sizing: content-box;
|
|
|
|
|
// padding: var(--gap-base) var(--gap-base) 0 var(--gap-base);
|
|
|
|
|
// margin: calc(var(--gap-base) * -1) calc(var(--gap-base) * -1) 0
|
|
|
|
|
// calc(var(--gap-base) * -1);
|
|
|
|
|
// > * {
|
|
|
|
|
// box-sizing: border-box;
|
|
|
|
|
// }
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&.in {
|
|
|
|
|
position: fixed;
|
|
|
|
|
opacity: 1;
|
|
|
|
|
z-index: $zindex-affix;
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> .#{$ns}Table-fixedLeft,
|
|
|
|
|
> .#{$ns}Table-fixedRight {
|
|
|
|
|
z-index: $zindex-affix + 10;
|
|
|
|
|
// box-shadow: none;
|
|
|
|
|
background: transparent;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-06-22 20:12:01 +08:00
|
|
|
|
&.is-fakeHide {
|
|
|
|
|
> .#{$ns}Table-fixedLeft,
|
|
|
|
|
> .#{$ns}Table-fixedRight,
|
|
|
|
|
> .#{$ns}Table-wrapper {
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
position: absolute;
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-heading {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--Table-heading-bg);
|
|
|
|
|
padding: calc(
|
|
|
|
|
(
|
|
|
|
|
var(--Table-heading-height) - var(--Table-fontSize) *
|
|
|
|
|
var(--lineHeightBase)
|
|
|
|
|
) / 2
|
|
|
|
|
)
|
2021-07-07 19:39:17 +08:00
|
|
|
|
var(--gap-sm);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--unsaved &-heading {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--Table--unsaved-heading-bg);
|
|
|
|
|
color: var(--Table--unsaved-heading-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-wrapper {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-placeholder {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--text--muted-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
text-align: center;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
height: var(--Table-placeholder-height);
|
|
|
|
|
background: transparent !important;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--text--muted-color);
|
|
|
|
|
background: transparent !important;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> td {
|
|
|
|
|
vertical-align: middle !important;
|
|
|
|
|
text-align: center;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&-header {
|
2021-07-07 19:39:17 +08:00
|
|
|
|
padding: var(--Table-toolbar-marginY) var(--Table-toolbar-marginX);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> * + .#{$ns}Button,
|
|
|
|
|
> * + .#{$ns}ButtonGroup,
|
|
|
|
|
> * + .#{$ns}ButtonToolbar {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
margin-left: var(--Crud-toolbar-gap);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&-toolbar {
|
|
|
|
|
@include clearfix();
|
|
|
|
|
display: flex;
|
2021-07-07 19:39:17 +08:00
|
|
|
|
margin: 0 var(--Table-toolbar-marginX) var(--Table-toolbar-marginY);
|
2020-06-08 10:17:28 +08:00
|
|
|
|
flex-wrap: wrap;
|
2019-12-19 15:21:23 +08:00
|
|
|
|
|
|
|
|
|
.#{$ns}DropDown {
|
|
|
|
|
&-menuItem {
|
|
|
|
|
height: auto;
|
|
|
|
|
|
|
|
|
|
.#{$ns}Checkbox {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&-header + &-toolbar {
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&-contentWrap {
|
|
|
|
|
position: relative;
|
2021-07-08 10:49:43 +08:00
|
|
|
|
margin-bottom: var(--Table-toolbar-marginY);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&-actions {
|
|
|
|
|
display: inline-block;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> * {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
margin-right: var(--Crud-toolbar-gap);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&-content {
|
|
|
|
|
min-height: 0.01%;
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
transform: translateZ(0);
|
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&-table {
|
|
|
|
|
width: 100%;
|
2020-11-20 15:57:36 +08:00
|
|
|
|
min-width: 100%;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
margin-bottom: 0;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
font-size: var(--Table-fontSize);
|
|
|
|
|
color: var(--Table-color);
|
|
|
|
|
background: var(--Table-bg);
|
2020-06-11 18:31:02 +08:00
|
|
|
|
border-spacing: 0;
|
|
|
|
|
border-collapse: collapse;
|
2021-07-07 19:39:17 +08:00
|
|
|
|
border: var(--Table-borderWidth) solid var(--Table-borderColor);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
|
|
|
|
&--withCombine {
|
|
|
|
|
> thead > tr > th,
|
|
|
|
|
> tbody > tr > td {
|
|
|
|
|
&:first-child {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding-left: var(--TableCell-paddingX) !important;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&:last-child {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding-right: var(--TableCell-paddingX) !important;
|
2019-08-13 20:06:41 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-08-13 20:06:41 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
// reset
|
|
|
|
|
> tbody > tr {
|
|
|
|
|
@if $Table-strip-bg !=transparent {
|
|
|
|
|
&.#{$ns}Table-tr--odd {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: transparent;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: transparent;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-05-27 17:27:17 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> td {
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> td:not(:last-child) {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
border-right: var(--Table-borderWidth) solid var(--Table-borderColor);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2020-06-23 13:32:21 +08:00
|
|
|
|
> thead > tr {
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> th {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--Table-thead-bg);
|
2020-06-23 13:32:21 +08:00
|
|
|
|
|
2021-02-03 15:34:06 +08:00
|
|
|
|
text-align: left;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&[colspan] {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding: var(--TableCell-paddingY) var(--TableCell-paddingX);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&:first-child {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding-left: var(--TableCell--edge-paddingX);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&:last-child {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding-right: var(--TableCell--edge-paddingX);
|
2019-05-27 17:27:17 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&:not(:last-child) {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
border-right: var(--Table-thead-borderWidth) solid
|
|
|
|
|
var(--Table-thead-borderColor);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2020-12-21 10:08:40 +08:00
|
|
|
|
border-bottom: var(--Table-thead-borderWidth) solid
|
|
|
|
|
var(--Table-thead-borderColor);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2020-12-21 10:08:40 +08:00
|
|
|
|
font-size: var(--Table-thead-fontSize);
|
|
|
|
|
color: var(--Table-thead-color);
|
|
|
|
|
font-weight: var(--fontWeightNormal);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
white-space: nowrap;
|
2019-11-11 19:31:22 +08:00
|
|
|
|
|
2020-08-18 10:50:06 +08:00
|
|
|
|
// .#{$ns}TableCell--title {
|
|
|
|
|
// display: flex;
|
|
|
|
|
// align-items: center;
|
|
|
|
|
// }
|
2019-12-06 09:58:08 +08:00
|
|
|
|
.#{$ns}Remark {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
margin-left: var(--gap-xs);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> thead > tr + tr {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
border-top: var(--Table-borderWidth) solid var(--Table-borderColor);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
|
2020-06-23 13:32:21 +08:00
|
|
|
|
> thead > tr {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
border-bottom: var(--Table-borderWidth) solid var(--Table-borderColor);
|
2020-06-23 13:32:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> tbody > tr {
|
2020-06-23 13:32:21 +08:00
|
|
|
|
& + tr {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
border-top: var(--Table-borderWidth) solid var(--Table-borderColor);
|
2020-06-23 13:32:21 +08:00
|
|
|
|
> th {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
border-top: var(--Table-thead-borderWidth) solid
|
|
|
|
|
var(--Table-thead-borderColor);
|
2020-06-23 13:32:21 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2020-06-22 20:12:01 +08:00
|
|
|
|
> th {
|
2020-08-20 19:52:24 +08:00
|
|
|
|
text-align: left;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--Table-thead-bg);
|
|
|
|
|
// font-size: var(--Table-thead-fontSize);
|
|
|
|
|
color: var(--Table-thead-color);
|
|
|
|
|
font-weight: var(--fontWeightNormal);
|
2020-06-23 13:32:21 +08:00
|
|
|
|
white-space: nowrap;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
border-right: var(--Table-thead-borderWidth) solid
|
|
|
|
|
var(--Table-thead-borderColor);
|
2020-06-22 20:12:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-06-23 13:32:21 +08:00
|
|
|
|
> td,
|
|
|
|
|
> th {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding: var(--TableCell-paddingY) var(--TableCell-paddingX);
|
2019-08-13 20:06:41 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&:first-child {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding-left: var(--TableCell--edge-paddingX);
|
2019-08-14 16:55:12 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&:last-child {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding-right: var(--TableCell--edge-paddingX);
|
2019-08-13 20:06:41 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-08-13 20:06:41 +08:00
|
|
|
|
|
2020-12-21 10:08:40 +08:00
|
|
|
|
@if var(--Table-strip-bg) !=transparent {
|
|
|
|
|
background: transparent;
|
2019-08-13 20:06:41 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&.#{$ns}Table-tr--odd {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--Table-strip-bg);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&:hover,
|
|
|
|
|
&.is-hovered {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--Table-onHover-bg);
|
|
|
|
|
border-color: var(--Table-onHover-borderColor);
|
|
|
|
|
color: var(--Table-onHover-color);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
& + tr {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
border-color: var(--Table-onHover-borderColor);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&.is-checked {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--Table-onChecked-bg);
|
|
|
|
|
border-color: var(--Table-onChecked-borderColor);
|
|
|
|
|
color: var(--Table-onChecked-color);
|
2019-11-11 19:31:22 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
& + tr {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
border-color: var(--Table-onChecked-borderColor);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.is-moved,
|
|
|
|
|
&.is-modified {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--Table-onModified-bg);
|
|
|
|
|
border-color: var(--Table-onModified-borderColor);
|
|
|
|
|
color: var(--Table-onModified-color);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
& + tr {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
border-color: var(--Table-onModified-borderColor);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-12-12 19:30:46 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2020-12-22 16:53:48 +08:00
|
|
|
|
&.is-summary {
|
|
|
|
|
background: var(--Table-thead-bg);
|
|
|
|
|
color: var(--Table-thead-color);
|
|
|
|
|
font-weight: var(--fontWeightNormal);
|
|
|
|
|
}
|
|
|
|
|
|
2019-12-12 19:30:46 +08:00
|
|
|
|
&.bg-light {
|
|
|
|
|
@include color-variant($light, 2%, 3%, 3%, 5%);
|
|
|
|
|
color: $text-color;
|
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
2019-12-12 19:30:46 +08:00
|
|
|
|
&.bg-dark {
|
|
|
|
|
@include color-variant($dark, 5%, 10%, 5%, 10%);
|
|
|
|
|
@include font-variant($dark);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.bg-black {
|
|
|
|
|
@include color-variant($black, 5%, 10%, 5%, 10%);
|
|
|
|
|
@include font-variant($black);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.bg-primary {
|
|
|
|
|
@include color-variant($primary, 5%, 10%, 5%, 10%);
|
|
|
|
|
@include font-variant($primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.bg-success {
|
|
|
|
|
@include color-variant($success, 5%, 10%, 5%, 10%);
|
|
|
|
|
@include font-variant($success);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.bg-info {
|
|
|
|
|
@include color-variant($info, 5%, 10%, 5%, 10%);
|
|
|
|
|
@include font-variant($info);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.bg-warning {
|
|
|
|
|
@include color-variant($warning, 5%, 10%, 5%, 10%);
|
|
|
|
|
@include font-variant($warning);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.bg-danger {
|
|
|
|
|
@include color-variant($danger, 5%, 10%, 5%, 10%);
|
|
|
|
|
@include font-variant($danger);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&.is-dragging {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
opacity: var(--Table-onDragging-opacity);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@for $i from 2 through 10 {
|
|
|
|
|
tr.#{$ns}Table-tr--#{$i}th.is-expanded {
|
|
|
|
|
.#{$ns}Table-expandCell:before {
|
2021-04-08 23:19:23 +08:00
|
|
|
|
right: px2rem(7px) + px2rem(-18px) * ($i - 1);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
tr.#{$ns}Table-tr--#{$i}th {
|
|
|
|
|
.#{$ns}Table-expandBtn {
|
|
|
|
|
position: relative;
|
2021-04-08 23:19:23 +08:00
|
|
|
|
right: -(px2rem(18px)) * ($i - 1);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
.#{$ns}Table-expandCell + td {
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
&::before {
|
2020-04-08 10:34:16 +08:00
|
|
|
|
content: '';
|
2019-04-30 11:11:25 +08:00
|
|
|
|
position: absolute;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
width: px2rem(1px);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
top: 0;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
bottom: 0;
|
2021-04-08 23:19:23 +08:00
|
|
|
|
left: px2rem(-8px) + px2rem(18px) * ($i - 2);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
height: auto;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--Table-tree-borderColor);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::after {
|
2020-04-08 10:34:16 +08:00
|
|
|
|
content: '';
|
2019-12-06 09:58:08 +08:00
|
|
|
|
position: absolute;
|
|
|
|
|
height: px2rem(1px);
|
2021-04-25 17:25:22 +08:00
|
|
|
|
top: 50%;
|
2021-04-08 23:19:23 +08:00
|
|
|
|
left: px2rem(-8px) + px2rem(18px) * ($i - 2);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
width: px2rem(10px);
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--Table-tree-borderColor);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2021-04-08 23:19:23 +08:00
|
|
|
|
padding-left: px2rem(18px) * $i - px2rem(18px);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
tr.#{$ns}Table-tr--#{$i}th.is-expandable {
|
|
|
|
|
.#{$ns}Table-expandCell + td {
|
2021-04-08 23:19:23 +08:00
|
|
|
|
padding-left: px2rem(18px) * ($i - 1);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
tr.#{$ns}Table-tr--#{$i}th.is-last:not(.is-expanded) {
|
|
|
|
|
.#{$ns}Table-expandCell + td {
|
|
|
|
|
&::before {
|
2021-04-25 17:25:22 +08:00
|
|
|
|
height: 50%;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
bottom: auto;
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> thead > tr > th.#{$ns}Table-checkCell,
|
|
|
|
|
> tbody > tr > td.#{$ns}Table-checkCell {
|
|
|
|
|
border-right: 0;
|
|
|
|
|
width: px2rem(1px);
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding-right: var(--TableCell-paddingX);
|
2021-07-08 10:49:43 +08:00
|
|
|
|
white-space: nowrap;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
|
|
|
|
.#{$ns}Checkbox {
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
> thead > tr > th.#{$ns}Table-expandCell,
|
|
|
|
|
> tbody > tr > td.#{$ns}Table-expandCell {
|
|
|
|
|
border-right: 0;
|
|
|
|
|
width: px2rem(1px);
|
|
|
|
|
padding-right: 0;
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> thead > tr > th.#{$ns}Table-dragCell,
|
|
|
|
|
> tbody > tr > td.#{$ns}Table-dragCell {
|
|
|
|
|
border-right: 0;
|
|
|
|
|
width: px2rem(1px);
|
|
|
|
|
padding-right: 0;
|
2020-06-08 10:17:28 +08:00
|
|
|
|
cursor: move;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
> tbody > tr > td.#{$ns}Table-expandCell {
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
@for $i from 1 through 7 {
|
|
|
|
|
.#{$ns}Table-divider-#{$i} {
|
|
|
|
|
position: absolute;
|
|
|
|
|
width: px2rem(1px);
|
|
|
|
|
top: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
height: 100%;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--Table-tree-borderColor);
|
2021-04-08 23:19:23 +08:00
|
|
|
|
right: px2rem(7px) + px2rem(-18px) * ($i - 1);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> tbody > tr.is-expanded > td.#{$ns}Table-expandCell {
|
|
|
|
|
// position: relative;
|
|
|
|
|
|
|
|
|
|
&::before {
|
2020-04-08 10:34:16 +08:00
|
|
|
|
content: '';
|
2019-04-30 11:11:25 +08:00
|
|
|
|
position: absolute;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
width: px2rem(1px);
|
2021-04-25 17:25:22 +08:00
|
|
|
|
top: 50%;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
bottom: 0;
|
2020-05-26 20:28:09 +08:00
|
|
|
|
right: px2rem(7px);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
height: auto;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--Table-tree-borderColor);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> thead > tr > th.#{$ns}TableCell--sortable {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding-right: calc(
|
|
|
|
|
var(--TableCell-paddingX) + var(--TableCell-sortBtn-width)
|
|
|
|
|
);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
position: relative;
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> thead > tr > th.#{$ns}TableCell--searchable {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding-right: calc(
|
|
|
|
|
var(--TableCell-paddingX) + var(--TableCell-searchBtn-width)
|
|
|
|
|
);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
position: relative;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> thead > tr > th.#{$ns}TableCell--filterable {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding-right: calc(
|
|
|
|
|
var(--TableCell-paddingX) + var(--TableCell-filterBtn-width)
|
|
|
|
|
);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&Cell-sortBtn {
|
|
|
|
|
cursor: pointer;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
width: var(--TableCell-sortBtn-width);
|
2021-04-08 23:19:23 +08:00
|
|
|
|
height: var(--gap-md);
|
2020-06-09 14:44:38 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
position: absolute;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
right: calc(var(--TableCell-paddingX) - var(--TableCell-sortBtn-width) / 2);
|
2019-12-19 15:21:23 +08:00
|
|
|
|
top: 50%;
|
|
|
|
|
transform: translateY(-50%);
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--icon-color);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2020-06-09 14:44:38 +08:00
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--icon-onHover-color);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-06-09 14:44:38 +08:00
|
|
|
|
&--up > svg,
|
|
|
|
|
&--down > svg,
|
|
|
|
|
&--default > svg {
|
|
|
|
|
color: inherit;
|
|
|
|
|
width: 12x;
|
|
|
|
|
height: 12px;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&--up,
|
2020-06-09 14:44:38 +08:00
|
|
|
|
&--down,
|
|
|
|
|
&--default {
|
2019-12-06 09:58:08 +08:00
|
|
|
|
display: none;
|
2019-12-19 15:21:23 +08:00
|
|
|
|
position: absolute;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
z-index: 2;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
|
|
|
|
|
&.is-active {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&--default {
|
|
|
|
|
&.is-active {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--text--muted-color);
|
2020-06-09 17:02:30 +08:00
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--text-color);
|
2020-06-09 17:02:30 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-07-31 17:43:44 +08:00
|
|
|
|
&--up,
|
|
|
|
|
&--down {
|
|
|
|
|
&.is-active {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--TableCell-sortBtn--onActive-color);
|
2020-07-31 17:43:44 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&Cell-searchBtn {
|
|
|
|
|
cursor: pointer;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
// width: var(--TableCell-searchBtn-width);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
position: absolute;
|
2021-04-08 23:19:23 +08:00
|
|
|
|
right: var(--gap-xs);
|
2019-12-19 15:21:23 +08:00
|
|
|
|
top: 50%;
|
|
|
|
|
transform: translateY(-50%);
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--text--muted-color);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2020-06-09 17:02:30 +08:00
|
|
|
|
svg.icon {
|
|
|
|
|
width: 12px;
|
|
|
|
|
height: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--text-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2020-07-31 17:43:44 +08:00
|
|
|
|
&.is-active {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--TableCell-searchBtn--onActive-color);
|
2020-07-31 17:43:44 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&Cell-searchPopOver {
|
|
|
|
|
border: none;
|
|
|
|
|
min-width: px2rem(320px);
|
|
|
|
|
max-width: px2rem(640px);
|
|
|
|
|
|
|
|
|
|
.#{$ns}Panel {
|
|
|
|
|
margin: 0;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&Cell-filterBtn {
|
|
|
|
|
cursor: pointer;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
width: var(--TableCell-filterBtn-width);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
position: absolute;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
right: calc(
|
|
|
|
|
var(--TableCell-paddingX) - var(--TableCell-filterBtn-width) / 2
|
|
|
|
|
);
|
2019-12-19 15:21:23 +08:00
|
|
|
|
top: 50%;
|
|
|
|
|
transform: translateY(-50%);
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--text--muted-color);
|
2019-11-11 19:31:22 +08:00
|
|
|
|
|
2020-06-09 17:02:30 +08:00
|
|
|
|
svg.icon {
|
|
|
|
|
width: 12px;
|
|
|
|
|
height: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--text-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2019-08-13 14:55:57 +08:00
|
|
|
|
|
2020-07-31 17:43:44 +08:00
|
|
|
|
&.is-active {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--TableCell-filterBtn--onActive-color);
|
2020-07-31 17:43:44 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
.#{$ns}Remark {
|
|
|
|
|
display: inline;
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-11-11 19:31:22 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&Cell-filterPopOver {
|
|
|
|
|
border: none;
|
|
|
|
|
width: px2rem(160px);
|
2019-08-13 14:55:57 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
.#{$ns}DropDown-menu {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
|
|
|
|
.#{$ns}DropDown-divider {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
height: var(--TableCell-filterPopOver-dropDownItem-height);
|
|
|
|
|
line-height: var(--TableCell-filterPopOver-dropDownItem-height);
|
|
|
|
|
padding: var(--TableCell-filterPopOver-dropDownItem-padding);
|
|
|
|
|
background: var(--white);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--light);
|
|
|
|
|
color: var(--primary);
|
2019-08-13 14:55:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
&.is-selected {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
background: var(--light);
|
|
|
|
|
color: var(--primary);
|
2019-08-13 14:55:57 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
|
|
|
|
.#{$ns}Checkbox {
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-itemActions-wrap {
|
|
|
|
|
position: absolute;
|
|
|
|
|
width: 100%;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
z-index: calc(var(--Table-fixed-zIndex) + 1);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
left: 0;
|
|
|
|
|
top: 0;
|
|
|
|
|
min-height: 30px;
|
|
|
|
|
pointer-events: none;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
box-shadow: var(--Table-onHover-boxShadow);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-itemActions {
|
|
|
|
|
pointer-events: all;
|
|
|
|
|
position: absolute;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
// background: var(--Table-onHover-bg);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
background: linear-gradient(
|
|
|
|
|
90deg,
|
2020-12-21 10:08:40 +08:00
|
|
|
|
rgba(var(--Table-onHover-bg-rgb), 0) 0%,
|
|
|
|
|
rgba(var(--Table-onHover-bg-rgb), 1) 20%,
|
|
|
|
|
rgba(var(--Table-onHover-bg-rgb), 1) 100%
|
2019-12-06 09:58:08 +08:00
|
|
|
|
);
|
2020-12-21 10:08:40 +08:00
|
|
|
|
top: var(--Table-borderWidth);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
bottom: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
padding-left: px2rem(50px);
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding-right: var(--TableCell-paddingX);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
cursor: pointer;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding: var(--gap-xs) var(--gap-sm);
|
|
|
|
|
color: var(--link-color);
|
|
|
|
|
text-decoration: var(--link-decoration);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--link-onHover-color);
|
|
|
|
|
text-decoration: var(--link-onHover-decoration);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.is-disabled {
|
|
|
|
|
pointer-events: none;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
opacity: var(--Button-onDisabled-opacity);
|
|
|
|
|
color: var(--text--muted-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-dragTip {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--text--loud-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
clear: both;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
margin-top: var(--gap-xs);
|
2020-06-08 10:17:28 +08:00
|
|
|
|
width: 100%;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--info);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-footTable {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-spacing: 0;
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
|
|
|
|
> tbody > tr > th {
|
|
|
|
|
width: px2rem(120px);
|
|
|
|
|
text-align: right;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding: var(--TableCell-paddingY) var(--TableCell-paddingX);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
> tbody > tr > td {
|
|
|
|
|
word-break: break-all;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
padding: var(--TableCell-paddingY) var(--TableCell-paddingX);
|
2019-08-13 14:55:57 +08:00
|
|
|
|
}
|
2019-08-14 14:21:21 +08:00
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
|
> tbody > tr:not(:first-child) {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
border-top: var(--Table-borderWidth) solid
|
|
|
|
|
var(--Table-tbody-borderTopColor);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-expandBtn {
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 1;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--Table-expandBtn-color);
|
2020-05-26 20:28:09 +08:00
|
|
|
|
display: inline-flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
width: px2rem(14px);
|
|
|
|
|
line-height: 1;
|
|
|
|
|
height: 16px;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
2020-06-08 18:23:56 +08:00
|
|
|
|
> svg {
|
2019-12-06 09:58:08 +08:00
|
|
|
|
display: inline-block;
|
|
|
|
|
text-align: center;
|
|
|
|
|
cursor: pointer;
|
2021-01-04 16:45:43 +08:00
|
|
|
|
transition: transform ease-in-out var(--animation-duration),
|
|
|
|
|
top ease-in-out var(--animation-duration);
|
2020-05-26 20:28:09 +08:00
|
|
|
|
position: relative;
|
|
|
|
|
transform-origin: 50% 50%;
|
2019-08-14 14:21:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-06-08 18:23:56 +08:00
|
|
|
|
&.is-active > svg {
|
2019-12-06 09:58:08 +08:00
|
|
|
|
transform: rotate(90deg);
|
2019-08-14 14:21:21 +08:00
|
|
|
|
}
|
2020-05-27 13:52:25 +08:00
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-dragBtn {
|
2020-12-21 10:08:40 +08:00
|
|
|
|
margin-right: var(--gap-xs);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
display: inline-block;
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
cursor: move;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--icon-color);
|
2020-06-08 18:23:56 +08:00
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
text-decoration: none;
|
2020-12-21 10:08:40 +08:00
|
|
|
|
color: var(--icon-onHover-color);
|
2020-06-08 18:23:56 +08:00
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-table > tbody > tr:hover .#{$ns}Table-dragBtn,
|
|
|
|
|
&-table > tbody > tr.is-dragging .#{$ns}Table-dragBtn,
|
|
|
|
|
&-table > tbody > tr.is-drop-allowed .#{$ns}Table-dragBtn {
|
|
|
|
|
visibility: visible;
|
|
|
|
|
}
|
2020-06-22 20:12:01 +08:00
|
|
|
|
|
|
|
|
|
.fake-hide {
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
position: absolute;
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.#{$ns}OperationField {
|
2019-12-06 09:58:08 +08:00
|
|
|
|
margin: px2rem(-3px);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2020-05-11 11:54:01 +08:00
|
|
|
|
> .#{$ns}Button,
|
|
|
|
|
> .#{$ns}Button--disabled-wrap > .#{$ns}Button {
|
2019-12-06 09:58:08 +08:00
|
|
|
|
margin: px2rem(3px);
|
2020-08-20 20:16:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-10-23 15:49:17 +08:00
|
|
|
|
> .#{$ns}Button--disabled-wrap > .#{$ns}Button--link {
|
2020-08-20 13:51:47 +08:00
|
|
|
|
padding: 0;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|
2020-06-08 16:53:52 +08:00
|
|
|
|
|
|
|
|
|
> .#{$ns}Button--link {
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin-right: px2rem(10px);
|
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
|
}
|