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-11-11 17:17:51 +08:00
|
|
|
@include fade-in-scale-up-transition(table-loading);
|
|
|
|
.n-table {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2019-11-08 12:06:03 +08:00
|
|
|
.n-advance-table__fixed--active {
|
|
|
|
transition: box-shadow 0.2s;
|
|
|
|
&.n-advance-table__fixed--right {
|
2019-11-11 17:17:51 +08:00
|
|
|
box-shadow: -10px 0 16px -5px rgba(0, 0, 0, 0.2);
|
2019-11-12 14:12:45 +08:00
|
|
|
border-left: none;
|
2019-11-08 12:06:03 +08:00
|
|
|
}
|
|
|
|
&.n-advance-table__fixed--left {
|
|
|
|
box-shadow: 10px 0 16px -5px rgba(0, 0, 0, 0.2);
|
2019-11-11 10:38:07 +08:00
|
|
|
border-right: none;
|
2019-11-08 12:06:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.n-advance-table__fixed--left {
|
|
|
|
margin-right: -5px;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
2019-11-11 10:38:07 +08:00
|
|
|
border-right: $--table-td-border-right;
|
|
|
|
|
2019-11-08 12:06:03 +08:00
|
|
|
.n-advance-table__header {
|
|
|
|
border-radius: 0;
|
2019-11-25 15:28:55 +08:00
|
|
|
margin-right: -8px;
|
|
|
|
overflow: hidden;
|
|
|
|
margin-bottom: 0;
|
2019-11-08 12:06:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.n-advance-table__fixed--right {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
2019-11-12 14:12:45 +08:00
|
|
|
// border-left: $--table-td-border-right;
|
2019-11-11 10:38:07 +08:00
|
|
|
|
2019-11-08 12:06:03 +08:00
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
.n-advance-table__header {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
table {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.n-advance-table__td--fixed {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2019-11-11 17:17:51 +08:00
|
|
|
.n-advance-table--no-data {
|
|
|
|
.n-advance-table__fixed--active {
|
|
|
|
&.n-advance-table__fixed--right {
|
|
|
|
.n-advance-table__header {
|
|
|
|
box-shadow: -10px 0 16px -5px rgba(0, 0, 0, 0.2);
|
|
|
|
th {
|
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.n-advance-table__fixed--left {
|
|
|
|
.n-advance-table__header {
|
|
|
|
box-shadow: 10px 0 16px -5px rgba(0, 0, 0, 0.2);
|
|
|
|
th {
|
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
td {
|
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
.n-advance-table__body {
|
|
|
|
td {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.n-advance-table__fixed {
|
|
|
|
box-shadow: none;
|
|
|
|
border: none;
|
2019-11-12 19:40:46 +08:00
|
|
|
overflow: visible;
|
2019-11-11 17:17:51 +08:00
|
|
|
}
|
|
|
|
.n-advance-table__fixed--left {
|
|
|
|
thead {
|
|
|
|
th {
|
|
|
|
border-right: $--table-td-border-right;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-10-24 16:01:11 +08:00
|
|
|
@include b(table) {
|
|
|
|
overflow: auto;
|
2019-11-08 12:06:03 +08:00
|
|
|
padding-bottom: 0;
|
2019-10-24 16:01:11 +08:00
|
|
|
}
|
2019-11-11 17:17:51 +08:00
|
|
|
@include e(loading) {
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
top: 0;
|
2019-11-12 14:12:45 +08:00
|
|
|
background-color: $--table-loading-background;
|
2019-11-11 17:17:51 +08:00
|
|
|
z-index: 200;
|
|
|
|
}
|
2019-09-29 13:56:27 +08:00
|
|
|
@include once {
|
|
|
|
@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-09-29 08:41:49 +08:00
|
|
|
border-radius: 12px;
|
|
|
|
}
|
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
|
|
|
|
|
|
|
@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-09-29 08:41:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// @include b(advance-table){
|
|
|
|
// @include e(wrapper){
|
|
|
|
// width: 100%;
|
|
|
|
// }
|
|
|
|
// @include e(tbody){
|
|
|
|
// overflow: hidden;
|
|
|
|
// border-radius: 12px;
|
|
|
|
// box-shadow: 0 3px 20px 6px rgba(0, 0, 0, 0.2);
|
|
|
|
// }
|
|
|
|
// @include e(td-text){
|
|
|
|
// &-center{
|
|
|
|
// text-align: center;
|
|
|
|
// }
|
|
|
|
// &-left{
|
|
|
|
// text-align: left;
|
|
|
|
// }
|
|
|
|
// &-right{
|
|
|
|
// text-align: right;
|
|
|
|
// }
|
|
|
|
// @include m(ellipsis){
|
|
|
|
// text-overflow: ellipsis;
|
|
|
|
// overflow: hidden;
|
|
|
|
// white-space: nowrap;
|
|
|
|
// &>*{
|
|
|
|
// text-overflow: ellipsis;
|
|
|
|
// overflow: hidden;
|
|
|
|
// white-space: nowrap;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// @include e(no-data-tip){
|
|
|
|
// padding: 5px;
|
|
|
|
// text-align: center;
|
|
|
|
// width: 100%;
|
|
|
|
// display: table-cell;
|
|
|
|
// }
|
|
|
|
// @include e(pagination){
|
|
|
|
// margin-top: 27px;
|
|
|
|
// display: flex;
|
|
|
|
// justify-content: flex-end;
|
|
|
|
// }
|
|
|
|
// @include e(operation){
|
|
|
|
// display: flex;
|
|
|
|
// justify-content:space-between;
|
|
|
|
// &--right,&--left{
|
|
|
|
// display: flex;
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
2019-09-29 13:56:27 +08:00
|
|
|
|
2019-09-29 08:41:49 +08:00
|
|
|
// @include b(table) {
|
|
|
|
// // background-color: #2b3147;
|
|
|
|
// table {
|
|
|
|
// word-wrap: break-word;
|
|
|
|
// word-break: break-all;
|
|
|
|
// table-layout: fixed;
|
|
|
|
// // width: auto;
|
|
|
|
// }
|
|
|
|
// &::-webkit-scrollbar {
|
|
|
|
// width: 5px;
|
|
|
|
// }
|
|
|
|
// &::-webkit-scrollbar-track {
|
|
|
|
// background: transparent;
|
|
|
|
// }
|
|
|
|
// &::-webkit-scrollbar-thumb {
|
|
|
|
// background: rgba(255, 255, 255, 0.2);
|
|
|
|
// border-radius: 2.5px;
|
|
|
|
// }
|
|
|
|
// &::-webkit-scrollbar-thumb:hover {
|
|
|
|
// background: rgba(255, 255, 255, 0.3);
|
|
|
|
// }
|
|
|
|
// &::-webkit-scrollbar-corner {
|
|
|
|
// background: transparent;
|
|
|
|
// }
|
|
|
|
// &::-webkit-scrollbar:horizontal {
|
|
|
|
// height: 5px;
|
|
|
|
// }
|
|
|
|
// table thead tr th:last-of-type {
|
|
|
|
// padding-left: 32px;
|
|
|
|
// }
|
|
|
|
// }
|
2019-09-29 13:56:27 +08:00
|
|
|
// }
|