2019-05-06 12:04:39 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 20:02:01 +08:00
|
|
|
@import '../../style/mixins/index';
|
2019-11-15 14:35:25 +08:00
|
|
|
@import './size';
|
|
|
|
@import './bordered';
|
2015-09-10 11:04:31 +08:00
|
|
|
|
2018-12-07 20:02:01 +08:00
|
|
|
@table-prefix-cls: ~'@{ant-prefix}-table';
|
2021-09-01 10:49:52 +08:00
|
|
|
@tree-prefix-cls: ~'@{ant-prefix}-tree';
|
2019-11-15 14:35:25 +08:00
|
|
|
@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown';
|
2020-07-13 11:26:15 +08:00
|
|
|
@descriptions-prefix-cls: ~'@{ant-prefix}-descriptions';
|
2018-09-17 15:28:49 +08:00
|
|
|
@table-header-icon-color: #bfbfbf;
|
2019-11-15 14:35:25 +08:00
|
|
|
@table-header-icon-color-hover: darken(@table-header-icon-color, 10%);
|
2021-08-29 15:51:29 +08:00
|
|
|
@table-sticky-zindex: calc(@zindex-table-fixed + 1);
|
2020-08-07 17:53:23 +08:00
|
|
|
@table-sticky-scroll-bar-active-bg: fade(@table-sticky-scroll-bar-bg, 80%);
|
2021-09-01 10:49:52 +08:00
|
|
|
@table-filter-dropdown-max-height: 264px;
|
2022-06-24 10:49:59 +08:00
|
|
|
@table-expand-column-width: 48px;
|
2019-11-15 14:35:25 +08:00
|
|
|
|
2017-02-20 11:35:01 +08:00
|
|
|
.@{table-prefix-cls}-wrapper {
|
2020-09-05 17:24:18 +08:00
|
|
|
clear: both;
|
2020-06-01 20:51:27 +08:00
|
|
|
max-width: 100%;
|
2020-12-22 11:08:12 +08:00
|
|
|
.clearfix();
|
2017-02-20 11:35:01 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{table-prefix-cls} {
|
2020-12-22 11:08:12 +08:00
|
|
|
.reset-component();
|
2016-03-24 16:16:37 +08:00
|
|
|
position: relative;
|
2020-06-04 08:57:58 +08:00
|
|
|
font-size: @table-font-size;
|
2020-01-09 14:22:34 +08:00
|
|
|
background: @table-bg;
|
2021-03-31 15:36:30 +08:00
|
|
|
border-radius: @table-border-radius-base;
|
2015-09-15 11:40:58 +08:00
|
|
|
|
2019-07-15 17:59:29 +08:00
|
|
|
// https://github.com/ant-design/ant-design/issues/17611
|
2015-07-09 14:51:48 +08:00
|
|
|
table {
|
|
|
|
width: 100%;
|
2015-07-15 17:57:19 +08:00
|
|
|
text-align: left;
|
2018-12-21 11:46:52 +08:00
|
|
|
border-radius: @table-border-radius-base @table-border-radius-base 0 0;
|
2019-07-15 17:59:29 +08:00
|
|
|
border-collapse: separate;
|
|
|
|
border-spacing: 0;
|
2015-07-09 14:51:48 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================= Cell =============================
|
2020-03-26 23:39:16 +08:00
|
|
|
&-thead > tr > th,
|
|
|
|
&-tbody > tr > td,
|
2019-11-15 14:35:25 +08:00
|
|
|
tfoot > tr > th,
|
|
|
|
tfoot > tr > td {
|
|
|
|
position: relative;
|
|
|
|
padding: @table-padding-vertical @table-padding-horizontal;
|
|
|
|
overflow-wrap: break-word;
|
2019-06-25 12:36:01 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-cell-ellipsis {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
word-break: keep-all;
|
|
|
|
|
|
|
|
// Fixed first or last should special process
|
|
|
|
&.@{table-prefix-cls}-cell-fix-left-last,
|
|
|
|
&.@{table-prefix-cls}-cell-fix-right-first {
|
|
|
|
overflow: visible;
|
|
|
|
|
|
|
|
.@{table-prefix-cls}-cell-content {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
|
|
|
}
|
2021-06-01 11:36:56 +08:00
|
|
|
|
|
|
|
.@{table-prefix-cls}-column-title {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
word-break: keep-all;
|
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2019-06-05 10:17:41 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================ Title =============================
|
|
|
|
&-title {
|
|
|
|
padding: @table-padding-vertical @table-padding-horizontal;
|
|
|
|
}
|
2019-06-05 10:17:41 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================ Footer ============================
|
|
|
|
&-footer {
|
|
|
|
padding: @table-padding-vertical @table-padding-horizontal;
|
2019-12-31 15:04:00 +08:00
|
|
|
color: @table-footer-color;
|
|
|
|
background: @table-footer-bg;
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2019-03-31 14:01:24 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================ Header ============================
|
2020-03-26 23:39:16 +08:00
|
|
|
&-thead {
|
2019-11-15 14:35:25 +08:00
|
|
|
> tr {
|
|
|
|
> th {
|
2021-05-24 22:16:06 +08:00
|
|
|
position: relative;
|
2019-11-15 14:35:25 +08:00
|
|
|
color: @table-header-color;
|
|
|
|
font-weight: 500;
|
|
|
|
text-align: left;
|
|
|
|
background: @table-header-bg;
|
2021-01-18 09:34:22 +08:00
|
|
|
border-bottom: @border-width-base @border-style-base @table-border-color;
|
2019-11-15 14:35:25 +08:00
|
|
|
transition: background 0.3s ease;
|
2019-03-31 14:01:24 +08:00
|
|
|
|
2019-12-27 12:34:40 +08:00
|
|
|
&[colspan]:not([colspan='1']) {
|
2019-11-15 14:35:25 +08:00
|
|
|
text-align: center;
|
2019-03-31 14:01:24 +08:00
|
|
|
}
|
2021-05-24 22:16:06 +08:00
|
|
|
|
|
|
|
&:not(:last-child):not(.@{table-prefix-cls}-selection-column):not(.@{table-prefix-cls}-row-expand-icon-cell):not([colspan])::before {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
right: 0;
|
|
|
|
width: 1px;
|
|
|
|
height: 1.6em;
|
|
|
|
background-color: @table-header-cell-split-color;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
transition: background-color 0.3s;
|
|
|
|
content: '';
|
|
|
|
}
|
2018-09-17 17:33:02 +08:00
|
|
|
}
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
2018-09-17 17:33:02 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
> tr:not(:last-child) > th {
|
|
|
|
&[colspan] {
|
|
|
|
border-bottom: 0;
|
2018-10-10 13:45:11 +08:00
|
|
|
}
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2018-09-17 17:33:02 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================= Body =============================
|
2020-03-26 23:39:16 +08:00
|
|
|
&-tbody {
|
2019-11-15 14:35:25 +08:00
|
|
|
> tr {
|
|
|
|
> td {
|
2021-01-18 09:34:22 +08:00
|
|
|
border-bottom: @border-width-base @border-style-base @table-border-color;
|
2019-11-15 14:35:25 +08:00
|
|
|
transition: background 0.3s;
|
2020-09-06 13:21:40 +08:00
|
|
|
|
|
|
|
// ========================= Nest Table ===========================
|
2021-05-19 16:18:26 +08:00
|
|
|
> .@{table-prefix-cls}-wrapper:only-child,
|
|
|
|
> .@{table-prefix-cls}-expanded-row-fixed > .@{table-prefix-cls}-wrapper:only-child {
|
2020-09-06 13:21:40 +08:00
|
|
|
.@{table-prefix-cls} {
|
2022-06-24 10:49:59 +08:00
|
|
|
margin: -@table-padding-vertical -@table-padding-horizontal -@table-padding-vertical (@table-expand-column-width -
|
|
|
|
@table-padding-horizontal);
|
2020-09-06 13:21:40 +08:00
|
|
|
|
|
|
|
&-tbody > tr:last-child > td {
|
|
|
|
border-bottom: 0;
|
|
|
|
|
|
|
|
&:first-child,
|
|
|
|
&:last-child {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2019-03-31 14:01:24 +08:00
|
|
|
|
2021-10-19 15:27:37 +08:00
|
|
|
&.@{table-prefix-cls}-row:hover > td,
|
|
|
|
> td.@{table-prefix-cls}-cell-row-hover {
|
|
|
|
background: @table-row-hover-bg;
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2019-04-06 12:56:07 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&.@{table-prefix-cls}-row-selected {
|
|
|
|
> td {
|
|
|
|
background: @table-selected-row-bg;
|
2020-04-21 16:53:06 +08:00
|
|
|
border-color: rgba(0, 0, 0, 0.03);
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
|
2020-04-10 12:08:10 +08:00
|
|
|
&:hover {
|
2019-11-15 14:35:25 +08:00
|
|
|
> td {
|
|
|
|
background: @table-selected-row-hover-bg;
|
|
|
|
}
|
2019-12-31 15:04:00 +08:00
|
|
|
}
|
|
|
|
}
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
2015-07-09 14:51:48 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// =========================== Summary ============================
|
2021-05-24 16:24:00 +08:00
|
|
|
&-summary {
|
2021-07-13 11:47:30 +08:00
|
|
|
position: relative;
|
|
|
|
z-index: @zindex-table-fixed;
|
2021-05-24 16:24:00 +08:00
|
|
|
background: @table-bg;
|
|
|
|
|
|
|
|
div& {
|
|
|
|
box-shadow: 0 -@border-width-base 0 @table-border-color;
|
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
> tr {
|
|
|
|
> th,
|
|
|
|
> td {
|
2021-01-18 09:34:22 +08:00
|
|
|
border-bottom: @border-width-base @border-style-base @table-border-color;
|
2017-02-28 11:31:01 +08:00
|
|
|
}
|
2015-07-09 14:51:48 +08:00
|
|
|
}
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ========================== Pagination ==========================
|
|
|
|
&-pagination.@{ant-prefix}-pagination {
|
|
|
|
margin: 16px 0;
|
2016-05-05 16:21:51 +08:00
|
|
|
}
|
|
|
|
|
2020-03-27 15:48:42 +08:00
|
|
|
&-pagination {
|
2020-09-07 16:52:10 +08:00
|
|
|
display: flex;
|
2021-04-08 20:47:19 +08:00
|
|
|
flex-wrap: wrap;
|
|
|
|
row-gap: @padding-xs;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
flex: none;
|
|
|
|
}
|
2020-09-07 16:52:10 +08:00
|
|
|
|
2020-03-27 15:48:42 +08:00
|
|
|
&-left {
|
2020-09-11 16:49:15 +08:00
|
|
|
justify-content: flex-start;
|
2020-03-27 15:48:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-center {
|
2020-09-07 16:52:10 +08:00
|
|
|
justify-content: center;
|
2020-03-27 15:48:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-right {
|
2020-09-11 16:49:15 +08:00
|
|
|
justify-content: flex-end;
|
2020-03-27 15:48:42 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ================================================================
|
|
|
|
// = Function =
|
|
|
|
// ================================================================
|
2016-07-21 15:14:42 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================ Sorter ============================
|
2020-03-26 23:39:16 +08:00
|
|
|
&-thead th.@{table-prefix-cls}-column-has-sorters {
|
2022-04-27 16:27:13 +08:00
|
|
|
outline: none;
|
2019-11-15 14:35:25 +08:00
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.3s;
|
2016-07-21 15:14:42 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&:hover {
|
|
|
|
background: @table-header-sort-active-bg;
|
2019-06-03 16:46:31 +08:00
|
|
|
|
2021-05-24 22:16:06 +08:00
|
|
|
&::before {
|
|
|
|
background-color: transparent !important;
|
2016-11-14 14:37:04 +08:00
|
|
|
}
|
2016-07-21 15:14:42 +08:00
|
|
|
}
|
2021-06-14 12:39:45 +08:00
|
|
|
|
2022-04-27 16:27:13 +08:00
|
|
|
&:focus-visible {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
|
|
|
|
2021-06-14 12:39:45 +08:00
|
|
|
// https://github.com/ant-design/ant-design/issues/30969
|
2021-06-15 14:52:00 +08:00
|
|
|
&.@{table-prefix-cls}-cell-fix-left:hover,
|
|
|
|
&.@{table-prefix-cls}-cell-fix-right:hover {
|
2021-07-13 12:03:19 +08:00
|
|
|
background: @table-fixed-header-sort-active-bg;
|
2021-06-14 12:39:45 +08:00
|
|
|
}
|
2016-07-21 15:14:42 +08:00
|
|
|
}
|
|
|
|
|
2020-03-26 23:39:16 +08:00
|
|
|
&-thead th.@{table-prefix-cls}-column-sort {
|
2017-06-24 00:37:19 +08:00
|
|
|
background: @table-header-sort-bg;
|
2021-05-24 22:16:06 +08:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: transparent !important;
|
|
|
|
}
|
2016-12-27 18:24:30 +08:00
|
|
|
}
|
2021-05-24 22:16:06 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
td&-column-sort {
|
2018-09-17 18:49:07 +08:00
|
|
|
background: @table-body-sort-bg;
|
2019-02-14 17:47:20 +08:00
|
|
|
}
|
|
|
|
|
2021-05-28 13:27:58 +08:00
|
|
|
&-column-title {
|
2021-06-01 11:36:56 +08:00
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
2021-05-28 13:27:58 +08:00
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-column-sorters {
|
2021-05-24 22:16:06 +08:00
|
|
|
display: flex;
|
|
|
|
flex: auto;
|
2019-11-15 14:35:25 +08:00
|
|
|
align-items: center;
|
2021-05-24 22:16:06 +08:00
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
content: '';
|
|
|
|
}
|
2017-11-18 00:03:30 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-column-sorter {
|
2021-09-15 11:07:59 +08:00
|
|
|
margin-left: 4px;
|
2019-11-15 14:35:25 +08:00
|
|
|
color: @table-header-icon-color;
|
2021-05-24 22:16:06 +08:00
|
|
|
font-size: 0;
|
|
|
|
transition: color 0.3s;
|
2018-09-17 18:49:07 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-inner {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2015-08-19 16:10:08 +08:00
|
|
|
}
|
2015-07-12 17:10:06 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-up,
|
|
|
|
&-down {
|
2020-10-12 15:50:02 +08:00
|
|
|
font-size: 11px;
|
2015-07-15 11:12:17 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&.active {
|
|
|
|
color: @primary-color;
|
2017-01-19 22:40:30 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-up + &-down {
|
2020-01-08 16:31:25 +08:00
|
|
|
margin-top: -0.3em;
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
}
|
|
|
|
|
2021-05-24 22:16:06 +08:00
|
|
|
&-column-sorters:hover &-column-sorter {
|
|
|
|
color: darken(@table-header-icon-color, 10%);
|
2015-07-12 17:10:06 +08:00
|
|
|
}
|
2015-07-12 18:14:17 +08:00
|
|
|
|
2021-05-24 22:16:06 +08:00
|
|
|
// ============================ Filter ============================
|
|
|
|
&-filter-column {
|
2019-11-15 14:35:25 +08:00
|
|
|
display: flex;
|
2021-05-24 22:16:06 +08:00
|
|
|
justify-content: space-between;
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2017-01-19 22:40:30 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-filter-trigger {
|
2021-05-24 22:16:06 +08:00
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin: -4px (-@table-padding-horizontal / 2) -4px 4px;
|
|
|
|
padding: 0 4px;
|
2019-11-15 14:35:25 +08:00
|
|
|
color: @table-header-icon-color;
|
|
|
|
font-size: @font-size-sm;
|
2021-05-24 22:16:06 +08:00
|
|
|
border-radius: @border-radius-base;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.3s;
|
2016-05-21 18:08:09 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&:hover {
|
|
|
|
color: @text-color-secondary;
|
2021-05-24 22:16:06 +08:00
|
|
|
background: @table-header-filter-active-bg;
|
2015-08-11 20:05:52 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&.active {
|
|
|
|
color: @primary-color;
|
2016-09-09 13:55:41 +08:00
|
|
|
}
|
2015-08-11 20:05:52 +08:00
|
|
|
}
|
2015-08-28 17:20:02 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// Dropdown
|
2016-03-24 16:16:37 +08:00
|
|
|
&-filter-dropdown {
|
2020-12-22 11:08:12 +08:00
|
|
|
.reset-component();
|
2015-12-10 12:13:13 +08:00
|
|
|
|
2021-09-01 10:49:52 +08:00
|
|
|
min-width: 120px;
|
|
|
|
background-color: @table-filter-dropdown-bg;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
box-shadow: @box-shadow-base;
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// Reset menu
|
|
|
|
.@{dropdown-prefix-cls}-menu {
|
2020-02-26 14:53:02 +08:00
|
|
|
// https://github.com/ant-design/ant-design/issues/4916
|
|
|
|
// https://github.com/ant-design/ant-design/issues/19542
|
2021-09-01 10:49:52 +08:00
|
|
|
max-height: @table-filter-dropdown-max-height;
|
2020-02-26 14:53:02 +08:00
|
|
|
overflow-x: hidden;
|
2016-03-24 16:16:37 +08:00
|
|
|
border: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
box-shadow: none;
|
2021-09-01 10:49:52 +08:00
|
|
|
|
|
|
|
&:empty::after {
|
|
|
|
display: block;
|
|
|
|
padding: 8px 0;
|
|
|
|
color: @disabled-color;
|
|
|
|
font-size: @font-size-sm;
|
|
|
|
text-align: center;
|
|
|
|
content: 'Not Found';
|
|
|
|
}
|
2016-01-10 21:10:10 +08:00
|
|
|
}
|
2020-02-26 14:53:02 +08:00
|
|
|
|
2021-09-01 10:49:52 +08:00
|
|
|
&-tree {
|
2021-10-22 13:35:36 +08:00
|
|
|
padding: 8px 8px 0;
|
2015-12-10 12:13:13 +08:00
|
|
|
|
2021-09-01 10:49:52 +08:00
|
|
|
.@{tree-prefix-cls}-treenode .@{tree-prefix-cls}-node-content-wrapper:hover {
|
|
|
|
background-color: @tree-node-hover-bg;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{tree-prefix-cls}-treenode-checkbox-checked .@{tree-prefix-cls}-node-content-wrapper {
|
|
|
|
&,
|
|
|
|
&:hover {
|
|
|
|
background-color: @tree-node-selected-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-search {
|
|
|
|
padding: 8px;
|
|
|
|
border-bottom: @border-width-base @border-color-split @border-style-base;
|
|
|
|
|
|
|
|
&-input {
|
|
|
|
input {
|
|
|
|
min-width: 140px;
|
|
|
|
}
|
|
|
|
.@{iconfont-css-prefix} {
|
|
|
|
color: @disabled-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-checkall {
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
|
2020-03-15 20:50:02 +08:00
|
|
|
&-submenu > ul {
|
|
|
|
max-height: calc(100vh - 130px);
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// Checkbox
|
|
|
|
&,
|
|
|
|
&-submenu {
|
|
|
|
.@{ant-prefix}-checkbox-wrapper + span {
|
|
|
|
padding-left: 8px;
|
|
|
|
}
|
2015-08-23 15:51:45 +08:00
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// Operation
|
2016-03-24 16:16:37 +08:00
|
|
|
&-btns {
|
2019-11-15 14:35:25 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2021-09-01 10:49:52 +08:00
|
|
|
padding: 7px 8px;
|
2019-02-15 10:48:07 +08:00
|
|
|
overflow: hidden;
|
2019-12-07 10:21:05 +08:00
|
|
|
background-color: @table-filter-btns-bg;
|
2021-01-18 09:34:22 +08:00
|
|
|
border-top: @border-width-base @border-style-base @table-border-color;
|
2015-08-23 15:51:45 +08:00
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ========================== Selections ==========================
|
2021-04-26 10:35:05 +08:00
|
|
|
&-selection-col {
|
2020-05-06 22:15:29 +08:00
|
|
|
width: @table-selection-column-width;
|
2015-08-23 15:51:45 +08:00
|
|
|
}
|
2015-09-10 11:04:31 +08:00
|
|
|
|
2021-04-26 10:35:05 +08:00
|
|
|
&-bordered &-selection-col {
|
|
|
|
width: @table-selection-column-width + 18px;
|
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
table tr th&-selection-column,
|
|
|
|
table tr td&-selection-column {
|
2020-05-22 15:20:11 +08:00
|
|
|
padding-right: @padding-xs;
|
|
|
|
padding-left: @padding-xs;
|
2019-11-15 14:35:25 +08:00
|
|
|
text-align: center;
|
2019-01-29 14:02:22 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{ant-prefix}-radio-wrapper {
|
|
|
|
margin-right: 0;
|
2017-03-06 17:14:34 +08:00
|
|
|
}
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
2017-02-23 19:29:47 +08:00
|
|
|
|
2021-09-28 18:36:55 +08:00
|
|
|
table tr th&-selection-column&-cell-fix-left {
|
|
|
|
z-index: 3;
|
|
|
|
}
|
|
|
|
|
2021-05-24 22:16:06 +08:00
|
|
|
table tr th&-selection-column::after {
|
|
|
|
background-color: transparent !important;
|
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-selection {
|
2020-12-03 17:52:47 +08:00
|
|
|
position: relative;
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: column;
|
2017-02-23 19:29:47 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-extra {
|
2020-12-03 17:52:47 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
z-index: 1;
|
2020-04-01 17:14:53 +08:00
|
|
|
cursor: pointer;
|
2020-04-02 18:53:49 +08:00
|
|
|
transition: all 0.3s;
|
2020-12-03 17:52:47 +08:00
|
|
|
margin-inline-start: 100%;
|
2022-04-22 16:01:20 +08:00
|
|
|
padding-inline-start: (@table-padding-horizontal / 4);
|
2017-02-23 19:29:47 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{iconfont-css-prefix} {
|
2017-09-27 22:32:49 +08:00
|
|
|
color: @table-header-icon-color;
|
2020-10-12 15:50:02 +08:00
|
|
|
font-size: 10px;
|
2017-02-23 19:29:47 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&:hover {
|
|
|
|
color: @table-header-icon-color-hover;
|
|
|
|
}
|
2017-05-03 16:23:08 +08:00
|
|
|
}
|
2017-02-23 19:29:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ========================== Expandable ==========================
|
|
|
|
&-expand-icon-col {
|
2022-06-24 10:49:59 +08:00
|
|
|
width: @table-expand-column-width;
|
2019-11-15 14:35:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-row-expand-icon-cell {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2020-03-18 22:13:12 +08:00
|
|
|
&-row-indent {
|
|
|
|
float: left;
|
|
|
|
height: 1px;
|
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-row-expand-icon {
|
|
|
|
.operation-unit();
|
|
|
|
position: relative;
|
|
|
|
display: inline-flex;
|
2020-03-19 10:06:56 +08:00
|
|
|
box-sizing: border-box;
|
2021-02-03 22:36:44 +08:00
|
|
|
width: @expand-icon-size;
|
|
|
|
height: @expand-icon-size;
|
2020-03-18 13:09:03 +08:00
|
|
|
padding: 0;
|
2019-11-15 14:35:25 +08:00
|
|
|
color: inherit;
|
2020-12-25 14:31:44 +08:00
|
|
|
line-height: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 + @border-width-base *
|
2020-08-26 13:43:48 +08:00
|
|
|
3;
|
2022-06-24 12:04:28 +08:00
|
|
|
vertical-align: -3px;
|
2020-02-24 22:44:29 +08:00
|
|
|
background: @table-expand-icon-bg;
|
2021-01-18 09:34:22 +08:00
|
|
|
border: @border-width-base @border-style-base @table-border-color;
|
2019-11-18 10:20:14 +08:00
|
|
|
border-radius: @border-radius-base;
|
2019-11-15 14:35:25 +08:00
|
|
|
outline: none;
|
2021-02-03 22:36:44 +08:00
|
|
|
transform: scale((unit(@checkbox-size) / unit(@expand-icon-size)));
|
2019-11-15 14:35:25 +08:00
|
|
|
transition: all 0.3s;
|
|
|
|
user-select: none;
|
2021-02-03 22:36:44 +08:00
|
|
|
@expand-icon-size: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 +
|
|
|
|
@border-width-base * 3;
|
2019-11-15 14:35:25 +08:00
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
2022-01-24 11:26:26 +08:00
|
|
|
border-color: currentcolor;
|
2015-09-10 11:04:31 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
position: absolute;
|
2022-01-24 11:26:26 +08:00
|
|
|
background: currentcolor;
|
2019-11-15 14:35:25 +08:00
|
|
|
transition: transform 0.3s ease-out;
|
|
|
|
content: '';
|
2015-09-10 11:04:31 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::before {
|
2020-12-25 14:31:44 +08:00
|
|
|
top: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2));
|
2019-11-15 14:35:25 +08:00
|
|
|
right: 3px;
|
|
|
|
left: 3px;
|
|
|
|
height: @border-width-base;
|
2015-09-10 11:04:31 +08:00
|
|
|
}
|
2015-12-28 21:41:42 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::after {
|
|
|
|
top: 3px;
|
|
|
|
bottom: 3px;
|
2020-12-25 14:31:44 +08:00
|
|
|
left: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2));
|
2019-11-15 14:35:25 +08:00
|
|
|
width: @border-width-base;
|
|
|
|
transform: rotate(90deg);
|
2015-12-28 21:41:42 +08:00
|
|
|
}
|
2019-09-03 18:47:17 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// Motion effect
|
|
|
|
&-collapsed::before {
|
|
|
|
transform: rotate(-180deg);
|
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-collapsed::after {
|
|
|
|
transform: rotate(0deg);
|
2019-09-03 18:47:17 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-spaced {
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
display: none;
|
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
2020-06-28 22:41:59 +08:00
|
|
|
visibility: hidden;
|
2019-09-03 18:47:17 +08:00
|
|
|
}
|
2019-09-12 22:54:44 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{table-prefix-cls}-row-indent + & {
|
2020-12-25 14:31:44 +08:00
|
|
|
margin-top: ((@font-size-base * @line-height-base - @border-width-base * 3) / 2) -
|
|
|
|
ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2));
|
2020-03-19 10:06:56 +08:00
|
|
|
margin-right: @padding-xs;
|
2019-09-12 22:54:44 +08:00
|
|
|
}
|
2015-09-10 11:04:31 +08:00
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
|
2015-09-10 12:21:41 +08:00
|
|
|
tr&-expanded-row {
|
2015-11-26 19:32:55 +08:00
|
|
|
&,
|
|
|
|
&:hover {
|
2019-11-15 14:35:25 +08:00
|
|
|
> td {
|
|
|
|
background: @table-expanded-row-bg;
|
|
|
|
}
|
2018-11-02 18:23:26 +08:00
|
|
|
}
|
2020-07-13 11:26:15 +08:00
|
|
|
|
|
|
|
// https://github.com/ant-design/ant-design/issues/25573
|
2021-03-05 17:25:27 +08:00
|
|
|
.@{descriptions-prefix-cls}-view {
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
table {
|
|
|
|
flex: auto;
|
|
|
|
width: auto;
|
|
|
|
}
|
2020-07-13 11:26:15 +08:00
|
|
|
}
|
2015-09-10 12:21:41 +08:00
|
|
|
}
|
2015-12-25 15:45:44 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// With fixed
|
|
|
|
.@{table-prefix-cls}-expanded-row-fixed {
|
|
|
|
position: relative;
|
|
|
|
margin: -@table-padding-vertical -@table-padding-horizontal;
|
|
|
|
padding: @table-padding-vertical @table-padding-horizontal;
|
2015-12-25 15:45:44 +08:00
|
|
|
}
|
2016-01-20 17:14:34 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ========================= Placeholder ==========================
|
2020-03-26 23:39:16 +08:00
|
|
|
&-tbody > tr&-placeholder {
|
2020-03-24 19:51:34 +08:00
|
|
|
text-align: center;
|
2020-05-19 14:45:57 +08:00
|
|
|
.@{table-prefix-cls}-empty & {
|
|
|
|
color: @disabled-color;
|
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&:hover {
|
|
|
|
> td {
|
|
|
|
background: @component-background;
|
2019-01-25 15:35:48 +08:00
|
|
|
}
|
2016-06-02 17:35:25 +08:00
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================ Fixed =============================
|
|
|
|
&-cell-fix-left,
|
|
|
|
&-cell-fix-right {
|
2020-04-13 19:32:50 +08:00
|
|
|
position: sticky !important;
|
2020-08-07 17:53:23 +08:00
|
|
|
z-index: @zindex-table-fixed;
|
2020-01-09 14:22:34 +08:00
|
|
|
background: @table-bg;
|
2016-03-24 16:16:37 +08:00
|
|
|
}
|
|
|
|
|
2020-03-10 20:30:31 +08:00
|
|
|
&-cell-fix-left-first::after,
|
2019-11-15 14:35:25 +08:00
|
|
|
&-cell-fix-left-last::after {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: -1px;
|
2020-03-27 22:36:27 +08:00
|
|
|
width: 30px;
|
2019-11-15 14:35:25 +08:00
|
|
|
transform: translateX(100%);
|
|
|
|
transition: box-shadow 0.3s;
|
|
|
|
content: '';
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2021-05-24 22:16:06 +08:00
|
|
|
|
2020-03-10 20:30:31 +08:00
|
|
|
&-cell-fix-right-first::after,
|
|
|
|
&-cell-fix-right-last::after {
|
2019-11-15 14:35:25 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: -1px;
|
|
|
|
left: 0;
|
2020-03-27 22:36:27 +08:00
|
|
|
width: 30px;
|
2019-11-15 14:35:25 +08:00
|
|
|
transform: translateX(-100%);
|
|
|
|
transition: box-shadow 0.3s;
|
|
|
|
content: '';
|
|
|
|
pointer-events: none;
|
2016-03-24 17:01:41 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{table-prefix-cls}-container {
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 1;
|
2020-03-31 22:04:03 +08:00
|
|
|
width: 30px;
|
2019-11-15 14:35:25 +08:00
|
|
|
transition: box-shadow 0.3s;
|
|
|
|
content: '';
|
|
|
|
pointer-events: none;
|
2019-06-04 14:20:18 +08:00
|
|
|
}
|
2019-06-04 16:18:25 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::before {
|
|
|
|
left: 0;
|
2019-06-12 19:39:28 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::after {
|
|
|
|
right: 0;
|
2019-06-04 16:18:25 +08:00
|
|
|
}
|
2016-06-16 21:56:13 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-ping-left {
|
|
|
|
&:not(.@{table-prefix-cls}-has-fix-left) .@{table-prefix-cls}-container {
|
|
|
|
position: relative;
|
2019-12-05 10:55:45 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::before {
|
|
|
|
box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);
|
|
|
|
}
|
2019-06-04 14:20:18 +08:00
|
|
|
}
|
|
|
|
|
2020-03-10 20:30:31 +08:00
|
|
|
.@{table-prefix-cls}-cell-fix-left-first::after,
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{table-prefix-cls}-cell-fix-left-last::after {
|
2019-12-04 11:58:48 +08:00
|
|
|
box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);
|
2019-06-12 19:39:28 +08:00
|
|
|
}
|
2021-05-24 22:16:06 +08:00
|
|
|
|
|
|
|
.@{table-prefix-cls}-cell-fix-left-last::before {
|
|
|
|
background-color: transparent !important;
|
|
|
|
}
|
2019-06-12 19:39:28 +08:00
|
|
|
}
|
2019-12-31 15:04:00 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-ping-right {
|
|
|
|
&:not(.@{table-prefix-cls}-has-fix-right) .@{table-prefix-cls}-container {
|
|
|
|
position: relative;
|
2019-06-12 19:39:28 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::after {
|
|
|
|
box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);
|
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
}
|
|
|
|
|
2020-03-10 20:30:31 +08:00
|
|
|
.@{table-prefix-cls}-cell-fix-right-first::after,
|
|
|
|
.@{table-prefix-cls}-cell-fix-right-last::after {
|
2019-11-15 14:35:25 +08:00
|
|
|
box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);
|
2018-03-03 16:42:31 +08:00
|
|
|
}
|
2016-03-24 16:16:37 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-08-07 17:53:23 +08:00
|
|
|
&-sticky {
|
2021-05-24 16:24:00 +08:00
|
|
|
&-holder {
|
2020-08-07 17:53:23 +08:00
|
|
|
position: sticky;
|
|
|
|
z-index: @table-sticky-zindex;
|
2021-07-13 12:03:19 +08:00
|
|
|
background: @component-background;
|
2020-08-07 17:53:23 +08:00
|
|
|
}
|
2021-07-13 12:03:19 +08:00
|
|
|
|
2020-08-07 17:53:23 +08:00
|
|
|
&-scroll {
|
2020-09-30 20:41:34 +08:00
|
|
|
position: sticky;
|
2020-08-07 17:53:23 +08:00
|
|
|
bottom: 0;
|
|
|
|
z-index: @table-sticky-zindex;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-01-18 09:34:22 +08:00
|
|
|
background: lighten(@table-border-color, 80%);
|
|
|
|
border-top: 1px solid @table-border-color;
|
2020-08-07 17:53:23 +08:00
|
|
|
opacity: 0.6;
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-08-07 17:53:23 +08:00
|
|
|
&:hover {
|
|
|
|
transform-origin: center bottom;
|
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-08-07 17:53:23 +08:00
|
|
|
&-bar {
|
|
|
|
height: 8px;
|
|
|
|
background-color: @table-sticky-scroll-bar-bg;
|
|
|
|
border-radius: @table-sticky-scroll-bar-radius;
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-08-07 17:53:23 +08:00
|
|
|
&:hover {
|
|
|
|
background-color: @table-sticky-scroll-bar-active-bg;
|
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-08-07 17:53:23 +08:00
|
|
|
&-active {
|
|
|
|
background-color: @table-sticky-scroll-bar-active-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
2019-12-31 15:04:00 +08:00
|
|
|
|
2020-01-03 16:17:28 +08:00
|
|
|
@media all and (-ms-high-contrast: none) {
|
|
|
|
.@{table-prefix-cls} {
|
|
|
|
&-ping-left {
|
|
|
|
.@{table-prefix-cls}-cell-fix-left-last::after {
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-01-03 16:17:28 +08:00
|
|
|
&-ping-right {
|
|
|
|
.@{table-prefix-cls}-cell-fix-right-first::after {
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-23 10:57:37 +08:00
|
|
|
@import './radius';
|
2020-03-19 17:21:41 +08:00
|
|
|
@import './rtl';
|