2019-11-25 14:11:18 +08:00
|
|
|
@import "./mixins/mixins.scss";
|
|
|
|
@import "./themes/vars.scss";
|
2019-09-29 08:41:49 +08:00
|
|
|
|
|
|
|
@include themes-mixin {
|
2019-09-29 13:56:27 +08:00
|
|
|
@include b(advance-table--col-border) {
|
|
|
|
table {
|
|
|
|
thead {
|
|
|
|
tr {
|
|
|
|
th {
|
|
|
|
border-right: $--table-td-border-right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tbody {
|
|
|
|
tr {
|
|
|
|
td {
|
|
|
|
border-right: $--table-td-border-right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-09-29 08:41:49 +08:00
|
|
|
@include b(advance-table) {
|
2019-10-24 16:01:11 +08:00
|
|
|
.n-advance-table__fixed {
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 100;
|
2019-11-12 14:12:45 +08:00
|
|
|
overflow: hidden;
|
2019-11-12 19:40:46 +08:00
|
|
|
top: 0px;
|
2019-10-24 16:01:11 +08:00
|
|
|
// box-shadow: 10px 0 16px 3px rgba(0, 0, 0, 0.2);
|
2019-11-08 12:06:03 +08:00
|
|
|
.n-table.n-advance-table__body {
|
2019-10-24 16:01:11 +08:00
|
|
|
width: auto;
|
|
|
|
box-shadow: none;
|
2019-11-08 12:06:03 +08:00
|
|
|
overflow-y: auto;
|
2019-10-24 16:01:11 +08:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
2019-12-13 17:28:58 +08:00
|
|
|
.n-advance-table__base-table-wrapper {
|
|
|
|
overflow: unset;
|
|
|
|
}
|
2019-10-24 16:01:11 +08:00
|
|
|
table {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.n-advance-table__td--fixed {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2019-12-16 15:36:05 +08:00
|
|
|
@include e(fixed) {
|
|
|
|
@include m(left) {
|
|
|
|
border-right: $--table-td-border-right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(loading) {
|
|
|
|
background-color: $--table-loading-background;
|
|
|
|
}
|
|
|
|
@include once {
|
|
|
|
@include e(loading) {
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
top: 0;
|
|
|
|
background-color: $--table-loading-background;
|
|
|
|
z-index: 200;
|
|
|
|
}
|
|
|
|
@include e(fixed) {
|
|
|
|
@include m(left) {
|
|
|
|
margin-right: -5px;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
@include e(header) {
|
|
|
|
border-radius: 0;
|
|
|
|
margin-right: -8px;
|
|
|
|
overflow: hidden;
|
|
|
|
margin-bottom: 0;
|
2019-11-11 17:17:51 +08:00
|
|
|
}
|
|
|
|
}
|
2019-12-16 15:36:05 +08:00
|
|
|
@include m(right) {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
// border-left: $--table-td-border-right;
|
|
|
|
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
@include e(header) {
|
|
|
|
border-radius: 0;
|
2019-11-11 17:17:51 +08:00
|
|
|
}
|
|
|
|
}
|
2019-12-16 15:36:05 +08:00
|
|
|
@include m(active) {
|
|
|
|
transition: box-shadow 0.2s;
|
|
|
|
@include m(right) {
|
|
|
|
border-left: none !important;
|
|
|
|
// box-shadow: inset -15px 0px 10px -15px rgba(0, 0, 0, 0.2);
|
|
|
|
box-shadow: -10px -9px 16px -5px rgba(0, 0, 0, 0.2);
|
|
|
|
}
|
|
|
|
@include m(left) {
|
|
|
|
border-right: none !important;
|
|
|
|
// box-shadow: 10px 0 16px -5px rgba(0, 0, 0, 0.2);
|
|
|
|
box-shadow: 10px -9px 16px -5px rgba(0, 0, 0, 0.2);
|
2019-11-11 17:17:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-12-16 15:36:05 +08:00
|
|
|
@include e(base-table-wrapper) {
|
|
|
|
overflow: auto;
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
border-radius: 2.5px;
|
|
|
|
}
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: 8px;
|
|
|
|
}
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
border-radius: 2.5px;
|
|
|
|
}
|
|
|
|
&::-webkit-scrollbar-corner {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
&::-webkit-scrollbar:horizontal {
|
|
|
|
height: 8px;
|
|
|
|
}
|
2019-12-13 17:28:58 +08:00
|
|
|
}
|
2019-12-16 15:36:05 +08:00
|
|
|
@include b(table) {
|
|
|
|
overflow-y: auto;
|
|
|
|
padding-bottom: 0;
|
|
|
|
box-shadow: none;
|
2019-12-13 17:28:58 +08:00
|
|
|
}
|
2019-09-29 13:56:27 +08:00
|
|
|
@include e(wrapper) {
|
2019-09-29 08:41:49 +08:00
|
|
|
width: 100%;
|
|
|
|
}
|
2019-09-29 13:56:27 +08:00
|
|
|
@include e(tbody) {
|
2019-09-05 19:17:17 +08:00
|
|
|
overflow: hidden;
|
2019-12-16 15:36:05 +08:00
|
|
|
border-radius: 6px;
|
2019-09-29 08:41:49 +08:00
|
|
|
}
|
2019-09-29 13:56:27 +08:00
|
|
|
@include e(td-text) {
|
2019-12-13 15:20:50 +08:00
|
|
|
span {
|
|
|
|
cursor: text;
|
|
|
|
}
|
2019-09-29 13:56:27 +08:00
|
|
|
&-center {
|
2019-09-29 08:41:49 +08:00
|
|
|
text-align: center;
|
|
|
|
}
|
2019-09-29 13:56:27 +08:00
|
|
|
&-left {
|
2019-09-29 08:41:49 +08:00
|
|
|
text-align: left;
|
|
|
|
}
|
2019-09-29 13:56:27 +08:00
|
|
|
&-right {
|
2019-09-29 08:41:49 +08:00
|
|
|
text-align: right;
|
|
|
|
}
|
2019-09-29 13:56:27 +08:00
|
|
|
@include m(ellipsis) {
|
2019-09-29 08:41:49 +08:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
2019-09-29 13:56:27 +08:00
|
|
|
@include e(no-data-tip) {
|
2019-09-29 08:41:49 +08:00
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
2019-11-11 17:17:51 +08:00
|
|
|
position: absolute;
|
2019-12-12 15:30:29 +08:00
|
|
|
bottom: 8px;
|
2019-11-11 17:17:51 +08:00
|
|
|
z-index: 300;
|
2019-09-29 08:41:49 +08:00
|
|
|
}
|
2019-09-29 13:56:27 +08:00
|
|
|
@include e(pagination) {
|
2019-09-29 08:41:49 +08:00
|
|
|
margin-top: 27px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
2019-09-29 13:56:27 +08:00
|
|
|
@include e(operation) {
|
2019-09-29 08:41:49 +08:00
|
|
|
display: flex;
|
2019-09-29 13:56:27 +08:00
|
|
|
justify-content: space-between;
|
|
|
|
&--right,
|
|
|
|
&--left {
|
2019-09-29 08:41:49 +08:00
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include e(sortable-column) {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
@include b(table) {
|
|
|
|
table {
|
|
|
|
word-wrap: break-word;
|
|
|
|
word-break: break-all;
|
|
|
|
table-layout: fixed;
|
2019-10-25 19:28:04 +08:00
|
|
|
tbody tr:hover {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2019-09-29 08:41:49 +08:00
|
|
|
}
|
|
|
|
&::-webkit-scrollbar {
|
2019-11-08 12:06:03 +08:00
|
|
|
width: 8px;
|
2019-09-29 08:41:49 +08:00
|
|
|
}
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
border-radius: 2.5px;
|
|
|
|
}
|
|
|
|
// &::-webkit-scrollbar-thumb:hover {
|
|
|
|
// background: rgba(255, 255, 255, 0.3);
|
|
|
|
// }
|
|
|
|
&::-webkit-scrollbar-corner {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
&::-webkit-scrollbar:horizontal {
|
2019-11-08 12:06:03 +08:00
|
|
|
height: 8px;
|
2019-09-29 08:41:49 +08:00
|
|
|
}
|
2019-09-05 19:17:17 +08:00
|
|
|
}
|
|
|
|
}
|
2019-09-29 13:56:27 +08:00
|
|
|
|
2019-12-16 15:36:05 +08:00
|
|
|
@include e(base-table-wrapper) {
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background: $--table-scrollbar-color;
|
|
|
|
}
|
|
|
|
}
|
2019-09-29 13:56:27 +08:00
|
|
|
@include e(tbody) {
|
2019-10-10 18:14:32 +08:00
|
|
|
box-shadow: $--table-box-shadow;
|
|
|
|
border: $--table-border;
|
2019-10-23 19:04:55 +08:00
|
|
|
position: relative;
|
2019-09-05 19:17:17 +08:00
|
|
|
}
|
2019-09-29 08:41:49 +08:00
|
|
|
@include b(table) {
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
border-radius: 2.5px;
|
|
|
|
background: $--table-scrollbar-color;
|
|
|
|
}
|
2019-12-12 14:27:31 +08:00
|
|
|
@include m(scroll-smooth) {
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
color: red;
|
|
|
|
}
|
2019-12-11 18:45:44 +08:00
|
|
|
|
2019-10-25 19:28:04 +08:00
|
|
|
tr.n-table__tr--hover {
|
|
|
|
background-color: $--table-row-hover;
|
|
|
|
}
|
2019-07-22 18:57:58 +08:00
|
|
|
}
|
2019-09-29 13:56:27 +08:00
|
|
|
@include e(header) {
|
2019-11-25 14:11:18 +08:00
|
|
|
overflow: scroll;
|
|
|
|
margin-bottom: -8px;
|
2019-10-10 22:38:29 +08:00
|
|
|
background-color: $--table-header-background-color;
|
2019-09-29 08:41:49 +08:00
|
|
|
i {
|
2019-11-08 18:01:49 +08:00
|
|
|
fill: $--table-header-icon-color;
|
2019-09-29 08:41:49 +08:00
|
|
|
}
|
2019-10-25 19:28:04 +08:00
|
|
|
th {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2019-07-09 19:45:38 +08:00
|
|
|
}
|
2019-12-16 15:36:05 +08:00
|
|
|
@include m(no-data) {
|
|
|
|
@include e(fixed) {
|
|
|
|
box-shadow: none;
|
|
|
|
border: none;
|
|
|
|
overflow: visible;
|
|
|
|
@include m(active) {
|
|
|
|
@include m(right) {
|
|
|
|
@include e(header) {
|
|
|
|
box-shadow: -10px 0 16px -5px rgba(0, 0, 0, 0.2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include m(left) {
|
|
|
|
@include e(header) {
|
|
|
|
box-shadow: 10px 0 16px -5px rgba(0, 0, 0, 0.2);
|
|
|
|
th:last-of-type {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include m(left) {
|
|
|
|
thead {
|
|
|
|
th {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-right: $--table-td-border-right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
table {
|
|
|
|
td {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-07-09 19:45:38 +08:00
|
|
|
}
|
2019-09-29 08:41:49 +08:00
|
|
|
}
|