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';
|
2019-11-15 14:35:25 +08:00
|
|
|
@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown';
|
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%);
|
2019-12-19 17:48:56 +08:00
|
|
|
@table-header-sort-active-filter-bg: lighten(@table-header-sort-active-bg, 2%);
|
2019-11-15 14:35:25 +08:00
|
|
|
|
2017-02-20 11:35:01 +08:00
|
|
|
.@{table-prefix-cls}-wrapper {
|
|
|
|
.clearfix;
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{table-prefix-cls} {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2016-03-24 16:16:37 +08:00
|
|
|
position: relative;
|
2019-12-05 18:16:39 +08:00
|
|
|
z-index: 0;
|
2018-03-02 12:00:28 +08:00
|
|
|
clear: both;
|
2020-01-09 14:22:34 +08:00
|
|
|
background: @table-bg;
|
2020-03-20 10:57:23 +08:00
|
|
|
border-radius: @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
|
|
|
}
|
|
|
|
}
|
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 {
|
|
|
|
color: @table-header-color;
|
|
|
|
font-weight: 500;
|
|
|
|
text-align: left;
|
|
|
|
background: @table-header-bg;
|
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
|
|
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
|
|
|
}
|
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 {
|
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
|
|
transition: background 0.3s;
|
|
|
|
}
|
2019-03-31 14:01:24 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&.@{table-prefix-cls}-row:hover {
|
|
|
|
> td {
|
|
|
|
background: @table-row-hover-bg;
|
2019-06-05 10:17:41 +08:00
|
|
|
}
|
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-04-06 12:56:07 +08:00
|
|
|
}
|
2018-09-17 17:33:02 +08:00
|
|
|
}
|
2019-12-31 15:04:00 +08:00
|
|
|
|
|
|
|
// ========================= Nest Table ===========================
|
2020-04-02 22:22:34 +08:00
|
|
|
.@{table-prefix-cls}-wrapper:only-child {
|
|
|
|
.@{table-prefix-cls} {
|
|
|
|
margin: -@table-padding-vertical -@table-padding-horizontal -@table-padding-vertical (@table-padding-horizontal +
|
|
|
|
ceil(@font-size-sm * 1.4));
|
2019-12-31 15:04:00 +08:00
|
|
|
|
2020-04-02 22:22:34 +08:00
|
|
|
td {
|
|
|
|
background: transparent;
|
|
|
|
}
|
2019-12-31 15:04:00 +08:00
|
|
|
|
2020-04-02 22:22:34 +08:00
|
|
|
&-tbody > tr:last-child > td {
|
|
|
|
border-bottom: 0;
|
2019-12-31 15:04:00 +08:00
|
|
|
|
2020-04-02 22:22:34 +08:00
|
|
|
&:first-child,
|
|
|
|
&:last-child {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
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 ============================
|
|
|
|
tfoot {
|
|
|
|
> tr {
|
|
|
|
> th,
|
|
|
|
> td {
|
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
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 {
|
|
|
|
&-left {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-center {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-right {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
2020-02-29 22:01:13 +08:00
|
|
|
padding: 0;
|
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
|
|
|
|
2019-12-19 17:48:56 +08:00
|
|
|
.@{table-prefix-cls}-filter-trigger-container {
|
|
|
|
background: @table-header-sort-active-filter-bg;
|
2016-11-14 14:37:04 +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;
|
2016-12-27 18:24:30 +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
|
|
|
}
|
|
|
|
|
2020-04-02 18:53:49 +08:00
|
|
|
&-column-sorters-with-tooltip {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-column-sorters {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2020-02-29 22:01:13 +08:00
|
|
|
padding: @table-padding-vertical @table-padding-horizontal;
|
2017-11-18 00:03:30 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-column-sorter {
|
|
|
|
margin-top: 0.15em;
|
|
|
|
margin-bottom: -0.15em;
|
|
|
|
margin-left: @padding-xs;
|
|
|
|
color: @table-header-icon-color;
|
2015-07-15 11:43:00 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-full {
|
|
|
|
margin-top: -0.2em;
|
|
|
|
margin-bottom: 0;
|
2015-10-27 10:34:05 +08:00
|
|
|
}
|
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 {
|
|
|
|
.iconfont-size-under-12px(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
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
// ============================ Filter ============================
|
|
|
|
&-filter-column {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin: -@table-padding-vertical -@table-padding-horizontal;
|
2016-01-24 15:39:34 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-filter-column-title {
|
|
|
|
flex: auto;
|
|
|
|
padding: @table-padding-vertical 2.3em @table-padding-vertical @table-padding-horizontal;
|
2015-07-12 17:10:06 +08:00
|
|
|
}
|
2015-07-12 18:14:17 +08:00
|
|
|
|
2020-04-03 13:42:57 +08:00
|
|
|
// Remove padding when sorter also provided
|
|
|
|
&-thead tr th.@{table-prefix-cls}-column-has-sorters {
|
|
|
|
.@{table-prefix-cls}-filter-column {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{table-prefix-cls}-filter-column-title {
|
|
|
|
padding: 0 2.3em 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-filter-trigger-container {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
display: flex;
|
|
|
|
flex: none;
|
|
|
|
align-items: stretch;
|
|
|
|
align-self: stretch;
|
2019-12-19 17:48:56 +08:00
|
|
|
cursor: pointer;
|
2019-11-15 14:35:25 +08:00
|
|
|
transition: background-color 0.3s;
|
2015-08-11 20:05:52 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-open,
|
2019-12-19 17:48:56 +08:00
|
|
|
&:hover,
|
2020-03-26 23:39:16 +08:00
|
|
|
.@{table-prefix-cls}-thead th.@{table-prefix-cls}-column-has-sorters:hover &:hover {
|
2019-11-15 14:35:25 +08:00
|
|
|
background: @table-header-filter-active-bg;
|
2017-01-19 22:40:30 +08:00
|
|
|
}
|
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 {
|
|
|
|
display: block;
|
|
|
|
width: 2.3em;
|
|
|
|
color: @table-header-icon-color;
|
|
|
|
font-size: @font-size-sm;
|
|
|
|
transition: color 0.3s;
|
2016-10-10 22:38:15 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{iconfont-css-prefix} {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
2016-05-21 18:08:09 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{table-prefix-cls}-filter-trigger-container-open &,
|
|
|
|
&:hover {
|
|
|
|
color: @text-color-secondary;
|
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 {
|
2019-11-15 14:35:25 +08:00
|
|
|
.reset-component;
|
2015-12-10 12:13:13 +08:00
|
|
|
|
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
|
|
|
|
max-height: calc(100vh - 130px);
|
|
|
|
overflow-x: hidden;
|
2016-03-24 16:16:37 +08:00
|
|
|
border: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
box-shadow: none;
|
2016-01-10 21:10:10 +08:00
|
|
|
}
|
2020-02-26 14:53:02 +08:00
|
|
|
|
2020-03-10 18:07:11 +08:00
|
|
|
min-width: 120px;
|
2019-12-25 15:59:16 +08:00
|
|
|
background-color: @table-filter-dropdown-bg;
|
2015-12-10 12:13:13 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
border-radius: @border-radius-base;
|
|
|
|
box-shadow: @box-shadow-base;
|
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;
|
2020-03-10 18:07:11 +08:00
|
|
|
padding: 7px 8px 7px 3px;
|
2019-02-15 10:48:07 +08:00
|
|
|
overflow: hidden;
|
2019-12-07 10:21:05 +08:00
|
|
|
background-color: @table-filter-btns-bg;
|
2017-01-31 16:05:10 +08:00
|
|
|
border-top: @border-width-base @border-style-base @border-color-split;
|
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 ==========================
|
2020-05-06 22:15:29 +08:00
|
|
|
.@{table-prefix-cls}-selection-col {
|
|
|
|
width: @table-selection-column-width;
|
2015-08-23 15:51:45 +08:00
|
|
|
}
|
2015-09-10 11:04:31 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
table tr th&-selection-column,
|
|
|
|
table tr td&-selection-column {
|
|
|
|
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
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-selection {
|
|
|
|
position: relative;
|
2017-02-23 19:29:47 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&-extra {
|
|
|
|
position: absolute;
|
2020-04-01 17:14:53 +08:00
|
|
|
top: 0;
|
2020-04-28 11:16:01 +08:00
|
|
|
right: @table-selection-extra-right;
|
2020-04-01 17:14:53 +08:00
|
|
|
cursor: pointer;
|
2020-04-02 18:53:49 +08:00
|
|
|
transition: all 0.3s;
|
2017-02-23 19:29:47 +08:00
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
.@{iconfont-css-prefix} {
|
|
|
|
.iconfont-size-under-12px(10px);
|
2017-09-27 22:32:49 +08:00
|
|
|
color: @table-header-icon-color;
|
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 {
|
|
|
|
width: 48px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-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-18 22:13:12 +08:00
|
|
|
float: left;
|
2020-03-19 10:06:56 +08:00
|
|
|
box-sizing: border-box;
|
2019-11-15 14:35:25 +08:00
|
|
|
|
|
|
|
width: ceil(@font-size-sm * 1.4);
|
|
|
|
height: ceil(@font-size-sm * 1.4);
|
2020-03-18 13:09:03 +08:00
|
|
|
padding: 0;
|
2019-11-15 14:35:25 +08:00
|
|
|
color: inherit;
|
|
|
|
line-height: @font-size-sm;
|
|
|
|
vertical-align: floor((@font-size-base - ceil(@font-size-sm * 1.4)) / 2);
|
2020-02-24 22:44:29 +08:00
|
|
|
background: @table-expand-icon-bg;
|
2019-11-15 14:35:25 +08:00
|
|
|
border: @border-width-base @border-style-base @border-color-split;
|
2019-11-18 10:20:14 +08:00
|
|
|
border-radius: @border-radius-base;
|
2019-11-15 14:35:25 +08:00
|
|
|
outline: none;
|
|
|
|
transition: all 0.3s;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
|
|
|
border-color: currentColor;
|
2015-09-10 11:04:31 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
position: absolute;
|
|
|
|
background: currentColor;
|
|
|
|
transition: transform 0.3s ease-out;
|
|
|
|
content: '';
|
2015-09-10 11:04:31 +08:00
|
|
|
}
|
|
|
|
|
2019-11-15 14:35:25 +08:00
|
|
|
&::before {
|
|
|
|
top: 7px;
|
|
|
|
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;
|
|
|
|
left: 7px;
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
&-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;
|
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-03-18 22:13:12 +08:00
|
|
|
margin-top: (@font-size-base * @line-height-base - ceil(@font-size-sm * 1.4)) / 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
|
|
|
}
|
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;
|
|
|
|
}
|
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: -webkit-sticky !important;
|
|
|
|
position: sticky !important;
|
2019-11-15 14:35:25 +08:00
|
|
|
z-index: 2;
|
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;
|
|
|
|
}
|
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
|
|
|
}
|
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
|
|
|
}
|
|
|
|
}
|
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
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-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';
|