2017-01-12 08:53:51 +08:00
|
|
|
|
@import "../node_modules/tinper-bee-core/scss/minxin-variables";
|
|
|
|
|
@import "../node_modules/tinper-bee-core/scss/minxin-mixins";
|
2018-01-24 15:10:24 +08:00
|
|
|
|
@import "../node_modules/bee-loading/src/Loading";
|
2017-01-12 08:53:51 +08:00
|
|
|
|
|
2017-12-24 22:54:32 +08:00
|
|
|
|
$text-color: #666;
|
|
|
|
|
$font-size-base: 12px;
|
2016-12-26 22:04:16 +08:00
|
|
|
|
$line-height: 1.5;
|
2019-02-20 15:16:58 +08:00
|
|
|
|
// 主题定制border:
|
|
|
|
|
$table-border-color: unquote("rgb(#{$table-border-color-base})");
|
|
|
|
|
// $table-head-background-color: #f7f7f7;
|
|
|
|
|
// $table-head-text-color: #666;
|
2018-05-14 15:08:39 +08:00
|
|
|
|
$vertical-padding: 12px;
|
2016-12-26 22:04:16 +08:00
|
|
|
|
$horizontal-padding: 8px;
|
2019-02-20 15:16:58 +08:00
|
|
|
|
// $table-border-color: #e9e9e9;
|
2017-01-11 17:01:50 +08:00
|
|
|
|
|
2019-02-18 14:22:20 +08:00
|
|
|
|
$table-hover-color: #E7F2FC;
|
2017-01-11 17:01:50 +08:00
|
|
|
|
$table-move-in-color: $bg-color-base;
|
2018-12-06 13:39:51 +08:00
|
|
|
|
$checkbox-height:16px;
|
2016-12-26 22:04:16 +08:00
|
|
|
|
.u-table {
|
|
|
|
|
font-size: $font-size-base;
|
|
|
|
|
color: $text-color;
|
2018-12-18 18:14:09 +08:00
|
|
|
|
// transition: opacity 0.3s ease;
|
2016-12-26 16:52:39 +08:00
|
|
|
|
position: relative;
|
2016-12-26 22:04:16 +08:00
|
|
|
|
line-height: $line-height;
|
2016-12-26 16:52:39 +08:00
|
|
|
|
overflow: hidden;
|
2017-12-26 13:27:46 +08:00
|
|
|
|
&-body{
|
|
|
|
|
// overflow: hidden!important;
|
2018-05-11 09:29:43 +08:00
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
&-hiden-drag{
|
|
|
|
|
position: relative;
|
|
|
|
|
&-li{
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0px;
|
|
|
|
|
left: 0px;
|
2019-01-07 14:57:58 +08:00
|
|
|
|
// height: 10px;//这个高度先注释掉了,加上后,在火狐浏览器上会站位置。滚动条拉到最右边有错行
|
2018-05-11 09:29:43 +08:00
|
|
|
|
}
|
2017-12-26 13:27:46 +08:00
|
|
|
|
}
|
2017-01-11 17:01:50 +08:00
|
|
|
|
table {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
th {
|
2018-05-09 14:51:01 +08:00
|
|
|
|
// background: $table-head-background-color;
|
2017-01-11 17:01:50 +08:00
|
|
|
|
font-weight: bold;
|
2018-12-18 18:14:09 +08:00
|
|
|
|
// transition: background 0.3s ease;
|
2017-12-24 22:54:32 +08:00
|
|
|
|
&[colspan] {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
2018-12-16 22:22:45 +08:00
|
|
|
|
::last-child{
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
2017-01-11 17:01:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
td {
|
|
|
|
|
border-bottom: 1px solid $table-border-color;
|
2019-02-20 15:16:58 +08:00
|
|
|
|
a{
|
|
|
|
|
color: $brand-primary;
|
|
|
|
|
&:hover{
|
|
|
|
|
color: $brand-primary-hover;
|
|
|
|
|
}
|
|
|
|
|
&:active{
|
|
|
|
|
color: $brand-primary-active;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-01-11 17:01:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tr {
|
2018-12-18 13:59:48 +08:00
|
|
|
|
// transition: all 0.3s ease;
|
2017-01-11 17:01:50 +08:00
|
|
|
|
&:hover {
|
2019-02-25 14:40:28 +08:00
|
|
|
|
// background: $hover-bg-color-base;
|
2018-10-09 19:56:19 +08:00
|
|
|
|
td {
|
|
|
|
|
.uf-eye{
|
|
|
|
|
visibility: visible !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-01-11 17:01:50 +08:00
|
|
|
|
}
|
2019-02-20 15:16:58 +08:00
|
|
|
|
tr a{
|
|
|
|
|
color: $brand-primary;
|
|
|
|
|
&:hover{
|
|
|
|
|
color: $brand-primary-hover;
|
|
|
|
|
}
|
|
|
|
|
&:active{
|
|
|
|
|
color: $brand-primary-active;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-01-11 17:01:50 +08:00
|
|
|
|
}
|
|
|
|
|
tr.tr-row-hover {
|
2019-02-20 15:16:58 +08:00
|
|
|
|
background: $hover-bg-color-base;
|
2017-01-11 17:01:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
2017-12-24 22:54:32 +08:00
|
|
|
|
th,
|
|
|
|
|
td {
|
2017-01-11 17:01:50 +08:00
|
|
|
|
padding: $vertical-padding $horizontal-padding;
|
2017-11-24 10:59:12 +08:00
|
|
|
|
word-break: break-all;
|
2017-01-11 17:01:50 +08:00
|
|
|
|
}
|
2018-11-28 11:52:09 +08:00
|
|
|
|
tr {
|
|
|
|
|
th:last-child{ //拖拽tag影响了表格整体宽度
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
2019-01-10 19:42:30 +08:00
|
|
|
|
&.filterable{
|
|
|
|
|
th{
|
|
|
|
|
padding-top: 4px;
|
|
|
|
|
padding-bottom: 4px;
|
|
|
|
|
.filterContext{
|
|
|
|
|
height: 35px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-11-28 11:52:09 +08:00
|
|
|
|
}
|
2017-12-23 18:16:23 +08:00
|
|
|
|
&-row-hover {
|
2019-02-20 15:16:58 +08:00
|
|
|
|
background: $hover-bg-color-base;
|
2017-12-23 18:16:23 +08:00
|
|
|
|
}
|
2017-01-11 17:01:50 +08:00
|
|
|
|
|
2016-12-26 22:04:16 +08:00
|
|
|
|
&-scroll {
|
2016-12-26 16:52:39 +08:00
|
|
|
|
overflow: auto;
|
|
|
|
|
}
|
2017-12-24 22:54:32 +08:00
|
|
|
|
&-bordered {
|
|
|
|
|
table {
|
2019-02-20 15:16:58 +08:00
|
|
|
|
border: 1px solid $table-border-color;
|
2018-05-09 14:51:01 +08:00
|
|
|
|
box-sizing: border-box;
|
2018-05-11 09:29:43 +08:00
|
|
|
|
table-layout: fixed;
|
2018-05-14 09:58:50 +08:00
|
|
|
|
// width:auto;
|
2017-12-24 22:54:32 +08:00
|
|
|
|
}
|
|
|
|
|
th {
|
2019-02-20 15:16:58 +08:00
|
|
|
|
border-bottom: 1px solid $table-border-color;
|
2018-05-09 14:51:01 +08:00
|
|
|
|
box-sizing: border-box;
|
2017-12-24 22:54:32 +08:00
|
|
|
|
}
|
|
|
|
|
th,
|
|
|
|
|
td {
|
2019-02-20 15:16:58 +08:00
|
|
|
|
border-right: 1px solid $table-border-color;
|
2018-05-09 14:51:01 +08:00
|
|
|
|
box-sizing: border-box;
|
2017-12-24 22:54:32 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-12-26 22:04:16 +08:00
|
|
|
|
&-header {
|
2016-12-26 16:52:39 +08:00
|
|
|
|
overflow: hidden;
|
2016-12-26 22:04:16 +08:00
|
|
|
|
background: $table-head-background-color;
|
2019-02-20 15:16:58 +08:00
|
|
|
|
color: $table-head-text-color;
|
2016-12-26 16:52:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
2018-12-18 13:59:48 +08:00
|
|
|
|
&.fixed-height td {
|
|
|
|
|
padding: 0px 8px;
|
|
|
|
|
}
|
|
|
|
|
|
2016-12-26 16:52:39 +08:00
|
|
|
|
&-fixed-header &-body {
|
|
|
|
|
background: #fff;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
2017-12-26 13:27:46 +08:00
|
|
|
|
&-fixed-left &-body-inner {
|
|
|
|
|
margin-right: -20px;
|
2018-09-13 10:28:28 +08:00
|
|
|
|
padding-right: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-fixed-header &-fixed-left &-body-inner {
|
|
|
|
|
padding-right: 0px;
|
2017-12-26 13:27:46 +08:00
|
|
|
|
}
|
2016-12-26 16:52:39 +08:00
|
|
|
|
|
|
|
|
|
&-fixed-header &-body-inner {
|
|
|
|
|
height: 100%;
|
2018-09-30 11:02:04 +08:00
|
|
|
|
overflow: scroll;
|
2016-12-26 16:52:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
2018-09-13 10:28:28 +08:00
|
|
|
|
|
2016-12-26 16:52:39 +08:00
|
|
|
|
&-fixed-header &-scroll &-header {
|
|
|
|
|
overflow-x: scroll;
|
|
|
|
|
padding-bottom: 20px;
|
|
|
|
|
margin-bottom: -20px;
|
2018-08-30 17:09:21 +08:00
|
|
|
|
overflow-y: scroll;
|
2016-12-26 16:52:39 +08:00
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
2016-12-26 22:04:16 +08:00
|
|
|
|
&-title {
|
|
|
|
|
padding: $vertical-padding $horizontal-padding;
|
|
|
|
|
border-top: 1px solid $table-border-color;
|
2016-12-26 16:52:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
2016-12-26 22:04:16 +08:00
|
|
|
|
&-content {
|
2016-12-26 16:52:39 +08:00
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
2016-12-26 22:04:16 +08:00
|
|
|
|
&-footer {
|
2017-09-28 16:35:24 +08:00
|
|
|
|
padding: $vertical-padding $horizontal-padding;
|
|
|
|
|
border-bottom: 1px solid $table-border-color;
|
2017-12-26 13:27:46 +08:00
|
|
|
|
.u-table-scroll{
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
}
|
2017-09-28 16:35:24 +08:00
|
|
|
|
}
|
2017-12-24 22:54:32 +08:00
|
|
|
|
&-footer & {
|
2017-09-28 16:35:24 +08:00
|
|
|
|
margin: (-$vertical-padding) (-$horizontal-padding);
|
2016-12-26 16:52:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
2016-12-26 22:04:16 +08:00
|
|
|
|
&-placeholder {
|
2018-05-14 15:08:39 +08:00
|
|
|
|
padding: $vertical-padding 8px;
|
2016-12-26 16:52:39 +08:00
|
|
|
|
background: #fff;
|
2016-12-26 22:04:16 +08:00
|
|
|
|
border-bottom: 1px solid $table-border-color;
|
2016-12-26 16:52:39 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-expand-icon-col {
|
|
|
|
|
width: 10px;
|
|
|
|
|
}
|
2017-12-24 22:54:32 +08:00
|
|
|
|
&-row,
|
|
|
|
|
&-expanded-row {
|
2016-12-26 16:52:39 +08:00
|
|
|
|
&-expand-icon {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
display: inline-block;
|
2018-10-22 14:42:44 +08:00
|
|
|
|
margin-right: 0px;
|
2016-12-26 16:52:39 +08:00
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 16px;
|
2016-12-26 22:04:16 +08:00
|
|
|
|
border: 1px solid $table-border-color;
|
2016-12-26 16:52:39 +08:00
|
|
|
|
user-select: none;
|
|
|
|
|
background: #fff;
|
2018-12-29 13:38:04 +08:00
|
|
|
|
margin-right: 10px;
|
2016-12-26 16:52:39 +08:00
|
|
|
|
}
|
|
|
|
|
&-spaced {
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
}
|
|
|
|
|
&-spaced:after {
|
2017-12-24 22:54:32 +08:00
|
|
|
|
content: ".";
|
2016-12-26 16:52:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-expanded:after {
|
2017-12-24 22:54:32 +08:00
|
|
|
|
content: "-";
|
2016-12-26 16:52:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-collapsed:after {
|
2017-12-24 22:54:32 +08:00
|
|
|
|
content: "+";
|
2016-12-26 16:52:39 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-02-20 15:16:58 +08:00
|
|
|
|
&-row{
|
|
|
|
|
&.selected{
|
|
|
|
|
background: $hover-bg-color-base;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-12-26 22:04:16 +08:00
|
|
|
|
tr.u-table-expanded-row {
|
2016-12-26 16:52:39 +08:00
|
|
|
|
background: #f7f7f7;
|
|
|
|
|
&:hover {
|
|
|
|
|
background: #f7f7f7;
|
|
|
|
|
}
|
2017-12-24 22:54:32 +08:00
|
|
|
|
.u-table {
|
2017-11-02 14:01:03 +08:00
|
|
|
|
// padding: 0 40px 0 20px;
|
2018-09-18 10:35:32 +08:00
|
|
|
|
z-index: 1;
|
2017-10-26 16:39:21 +08:00
|
|
|
|
}
|
2016-12-26 16:52:39 +08:00
|
|
|
|
}
|
|
|
|
|
&-column-hidden {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
&-prev-columns-page,
|
|
|
|
|
&-next-columns-page {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
color: #666;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
&:hover {
|
|
|
|
|
color: #2db7f5;
|
|
|
|
|
}
|
|
|
|
|
&-disabled {
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
color: #999;
|
|
|
|
|
&:hover {
|
|
|
|
|
color: #999;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&-prev-columns-page {
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
&:before {
|
2017-12-24 22:54:32 +08:00
|
|
|
|
content: "<";
|
2016-12-26 16:52:39 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&-next-columns-page {
|
|
|
|
|
float: right;
|
|
|
|
|
&:before {
|
2017-12-24 22:54:32 +08:00
|
|
|
|
content: ">";
|
2016-12-26 16:52:39 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-fixed-left,
|
|
|
|
|
&-fixed-right {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
table {
|
|
|
|
|
width: auto;
|
|
|
|
|
background: #fff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-fixed-left {
|
|
|
|
|
left: 0;
|
|
|
|
|
box-shadow: 4px 0 4px rgba(100, 100, 100, 0.1);
|
2017-12-26 13:27:46 +08:00
|
|
|
|
&-body-inner {
|
2016-12-26 16:52:39 +08:00
|
|
|
|
margin-right: -20px;
|
|
|
|
|
padding-right: 20px;
|
|
|
|
|
}
|
2016-12-26 22:04:16 +08:00
|
|
|
|
&-fixed-header & &-body-inner {
|
2016-12-26 16:52:39 +08:00
|
|
|
|
padding-right: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-fixed-right {
|
|
|
|
|
right: 0;
|
|
|
|
|
box-shadow: -4px 0 4px rgba(100, 100, 100, 0.1);
|
|
|
|
|
|
|
|
|
|
// hide expand row content in right fixed Table
|
|
|
|
|
// https://github.com/ant-design/ant-design/issues/1898
|
2016-12-26 22:04:16 +08:00
|
|
|
|
&-expanded-row {
|
2016-12-26 16:52:39 +08:00
|
|
|
|
color: transparent;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
2018-12-18 13:59:48 +08:00
|
|
|
|
|
2016-12-26 16:52:39 +08:00
|
|
|
|
}
|
2018-09-25 14:31:20 +08:00
|
|
|
|
|
2019-02-18 14:22:20 +08:00
|
|
|
|
&-scroll-position-left &-fixed-left {
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2016-12-26 16:52:39 +08:00
|
|
|
|
|
2017-12-26 13:27:46 +08:00
|
|
|
|
&-scroll-position-right &-fixed-right {
|
2016-12-26 16:52:39 +08:00
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2018-05-09 14:51:01 +08:00
|
|
|
|
|
|
|
|
|
&-thead{
|
2018-09-20 16:24:06 +08:00
|
|
|
|
.filter-text,.filter-dropdown,.filter-date {
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
}
|
2018-09-21 15:58:37 +08:00
|
|
|
|
.filter-wrap{
|
|
|
|
|
display: flex;
|
2018-11-13 14:36:12 +08:00
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.filter-btns{
|
|
|
|
|
min-width: 58px;
|
|
|
|
|
}
|
2018-09-21 15:58:37 +08:00
|
|
|
|
}
|
2018-05-09 14:51:01 +08:00
|
|
|
|
th{
|
|
|
|
|
background: $table-head-background-color;
|
2019-02-20 15:16:58 +08:00
|
|
|
|
color: $table-head-text-color;
|
2018-12-06 18:33:01 +08:00
|
|
|
|
background-clip:padding-box;
|
|
|
|
|
//禁止选中文字
|
|
|
|
|
-moz-user-select: -moz-none;
|
|
|
|
|
-khtml-user-select: none;
|
|
|
|
|
-webkit-user-select: none;
|
|
|
|
|
/*
|
|
|
|
|
Introduced in IE 10.
|
|
|
|
|
*/
|
|
|
|
|
-ms-user-select: none;
|
|
|
|
|
user-select: none;
|
|
|
|
|
|
2018-11-26 20:34:43 +08:00
|
|
|
|
// overflow: hidden;
|
|
|
|
|
// white-space: nowrap;
|
|
|
|
|
// text-overflow: ellipsis;
|
2018-09-25 14:31:20 +08:00
|
|
|
|
.bee-table-column-sorter {
|
|
|
|
|
position: relative;
|
|
|
|
|
margin-left: 4px;
|
|
|
|
|
height: 1em;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
text-align: center;
|
|
|
|
|
display: inline-block;
|
2018-09-26 13:43:55 +08:00
|
|
|
|
|
2018-09-25 14:31:20 +08:00
|
|
|
|
& > .bee-table-column-sorter-down,
|
2018-09-26 13:43:55 +08:00
|
|
|
|
& > .bee-table-column-sorter-up, & > .bee-table-column-sorter-flat {
|
2018-09-25 14:31:20 +08:00
|
|
|
|
line-height: 6px;
|
|
|
|
|
display: block;
|
2018-11-27 16:31:15 +08:00
|
|
|
|
width: 34px;
|
2018-09-25 14:31:20 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
2018-09-26 13:43:55 +08:00
|
|
|
|
|
|
|
|
|
}
|
2018-10-16 19:06:18 +08:00
|
|
|
|
|
2018-09-25 14:31:20 +08:00
|
|
|
|
.bee-table-column-sorter-down.on .uf-triangle-down,
|
|
|
|
|
.bee-table-column-sorter-down.on .uf-triangle-up,
|
|
|
|
|
.bee-table-column-sorter-up.on .uf-triangle-down,
|
|
|
|
|
.bee-table-column-sorter-up.on .uf-triangle-up {
|
|
|
|
|
color: #108ee9;
|
|
|
|
|
}
|
|
|
|
|
.bee-table-column-sorter .uf-triangle-down,
|
|
|
|
|
.bee-table-column-sorter .uf-triangle-up {
|
|
|
|
|
-webkit-filter: none;
|
|
|
|
|
filter: none;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
.bee-table-column-sorter .uf-triangle-down,
|
|
|
|
|
.bee-table-column-sorter .uf-triangle-up {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
padding: 0;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
font-size: 8px\9;
|
|
|
|
|
-webkit-transform: scale(0.66666667) rotate(0deg);
|
|
|
|
|
-ms-transform: scale(0.66666667) rotate(0deg);
|
|
|
|
|
transform: scale(0.66666667) rotate(0deg);
|
|
|
|
|
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)";
|
|
|
|
|
zoom: 1;
|
|
|
|
|
line-height: 4px;
|
|
|
|
|
height: 4px;
|
|
|
|
|
color: #999;
|
2019-01-03 16:21:24 +08:00
|
|
|
|
// -webkit-transition: all 0.3s;
|
|
|
|
|
// transition: all 0.3s;
|
2018-09-25 14:31:20 +08:00
|
|
|
|
}
|
|
|
|
|
&:hover{
|
|
|
|
|
.bee-table-column-sorter {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-05-09 14:51:01 +08:00
|
|
|
|
}
|
|
|
|
|
.th-drag{
|
2018-10-09 19:56:19 +08:00
|
|
|
|
cursor: move;
|
2018-05-09 14:51:01 +08:00
|
|
|
|
}
|
2018-11-13 18:58:56 +08:00
|
|
|
|
.th-drag:hover{
|
2019-02-20 15:16:58 +08:00
|
|
|
|
background: $hover-bg-color-base;
|
2018-11-13 18:58:56 +08:00
|
|
|
|
}
|
2018-09-04 18:21:55 +08:00
|
|
|
|
//为了区分是拖拽宽度还是交换列,先注释上面了
|
|
|
|
|
// .th-drag:hover{
|
|
|
|
|
// background:#ccc;
|
|
|
|
|
// }
|
2018-05-09 14:51:01 +08:00
|
|
|
|
.th-drag-hover{
|
|
|
|
|
background: #ccc;
|
|
|
|
|
}
|
2018-05-11 09:29:43 +08:00
|
|
|
|
&-th{
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
&-drag-gap{
|
|
|
|
|
height: 100%;
|
|
|
|
|
position: absolute;
|
2018-11-26 20:34:43 +08:00
|
|
|
|
right: -10px;
|
2018-05-11 09:29:43 +08:00
|
|
|
|
top: 0;
|
2018-11-13 18:58:56 +08:00
|
|
|
|
// background:transparent;
|
|
|
|
|
// width: 1px;
|
2018-11-26 20:34:43 +08:00
|
|
|
|
// background:#ccc;
|
|
|
|
|
width: 20px;
|
2018-09-12 14:14:05 +08:00
|
|
|
|
|
2018-05-11 09:29:43 +08:00
|
|
|
|
box-sizing: border-box;
|
2018-11-13 18:58:56 +08:00
|
|
|
|
z-index: 1;
|
2018-11-26 20:34:43 +08:00
|
|
|
|
|
|
|
|
|
.online{
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 1px;
|
2019-01-29 16:08:24 +08:00
|
|
|
|
background:transparent;//兼容火狐浏览器,如果table设置border,
|
2018-11-26 20:34:43 +08:00
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
|
|
|
|
.online-hover{
|
|
|
|
|
background:#000000;
|
|
|
|
|
}
|
2018-12-01 17:51:01 +08:00
|
|
|
|
|
2018-05-11 09:29:43 +08:00
|
|
|
|
}
|
2018-12-01 17:51:01 +08:00
|
|
|
|
&-drag-gap:hover{
|
2018-09-12 14:14:05 +08:00
|
|
|
|
cursor: col-resize;
|
2018-12-01 17:51:01 +08:00
|
|
|
|
.online{
|
|
|
|
|
background: #000000
|
|
|
|
|
}
|
2018-05-11 09:29:43 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&-th:last-child {
|
|
|
|
|
&-drag-gap{
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-05-09 14:51:01 +08:00
|
|
|
|
}
|
2018-05-14 11:17:06 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&-filter-column{
|
|
|
|
|
|
|
|
|
|
&-pop-cont{
|
|
|
|
|
margin: 10px;
|
|
|
|
|
margin-top: 0px;
|
2018-07-16 17:14:15 +08:00
|
|
|
|
height: 300px;
|
|
|
|
|
overflow-y: scroll;
|
2018-05-14 11:17:06 +08:00
|
|
|
|
}
|
|
|
|
|
&-clear-setting{
|
|
|
|
|
border-bottom: 1px solid #ccc;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
&-cont{
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
2018-06-24 16:22:49 +08:00
|
|
|
|
&-filter-icon{
|
2018-05-14 11:17:06 +08:00
|
|
|
|
position: absolute;
|
2018-10-26 15:03:36 +08:00
|
|
|
|
top: 3px;
|
2018-11-07 17:11:25 +08:00
|
|
|
|
right: 18px;
|
|
|
|
|
width: 22px;
|
2018-11-08 22:46:18 +08:00
|
|
|
|
height: 25px;
|
|
|
|
|
line-height: 25px;
|
2018-06-24 16:22:49 +08:00
|
|
|
|
z-index: 2;
|
2018-10-26 15:03:36 +08:00
|
|
|
|
background: #f7f7f7;
|
|
|
|
|
&i.uf{
|
|
|
|
|
padding: 0px;
|
|
|
|
|
}
|
2018-05-14 11:17:06 +08:00
|
|
|
|
}
|
|
|
|
|
&-pop-cont-item{
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
&-pop-cont-item>span{
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
width: 100px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
&-pop .u-modal-dialog{
|
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
|
background: #fff;
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-09-04 18:21:55 +08:00
|
|
|
|
//拖拽宽度代码
|
2018-09-12 14:14:05 +08:00
|
|
|
|
&-row-fixed-columns-in-body{
|
2018-12-05 15:15:27 +08:00
|
|
|
|
// visibility: hidden;
|
|
|
|
|
display:none;
|
2018-09-12 14:14:05 +08:00
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
2019-01-16 13:57:31 +08:00
|
|
|
|
//固定列含有checkbox 样式复写
|
|
|
|
|
.u-checkbox {
|
|
|
|
|
height: $checkbox-height;
|
|
|
|
|
line-height: $checkbox-height;
|
|
|
|
|
}
|
2016-12-26 16:52:39 +08:00
|
|
|
|
}
|
2018-12-25 15:27:29 +08:00
|
|
|
|
.u-table:focus{
|
|
|
|
|
outline: none;
|
|
|
|
|
// border-color: #9ecaed;
|
|
|
|
|
// box-shadow: 0 0 10px #9ecaed;
|
|
|
|
|
box-shadow: 0 0 0;
|
|
|
|
|
}
|
2017-01-11 17:01:50 +08:00
|
|
|
|
|
2019-01-29 16:08:24 +08:00
|
|
|
|
.u-table-bordered {
|
|
|
|
|
.u-table-drag-gap{
|
|
|
|
|
background:#e9e9e9;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-01-11 17:01:50 +08:00
|
|
|
|
.u-table.bordered {
|
|
|
|
|
table {
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
}
|
2017-12-24 22:54:32 +08:00
|
|
|
|
th,
|
|
|
|
|
td {
|
2017-01-11 17:01:50 +08:00
|
|
|
|
border: 1px solid $table-border-color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-24 22:54:32 +08:00
|
|
|
|
.move-enter,
|
|
|
|
|
.move-appear {
|
2017-01-11 17:01:50 +08:00
|
|
|
|
opacity: 0;
|
|
|
|
|
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
|
|
|
animation-duration: 2.5s;
|
|
|
|
|
animation-fill-mode: both;
|
|
|
|
|
animation-play-state: paused;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.move-leave {
|
|
|
|
|
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
|
2017-12-24 22:54:32 +08:00
|
|
|
|
animation-duration: 0.5s;
|
2017-01-11 17:01:50 +08:00
|
|
|
|
animation-fill-mode: both;
|
|
|
|
|
animation-play-state: paused;
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-24 22:54:32 +08:00
|
|
|
|
.move-enter.move-enter-active,
|
|
|
|
|
.move-appear.move-enter-active {
|
2017-01-11 17:01:50 +08:00
|
|
|
|
animation-name: moveLeftIn;
|
|
|
|
|
animation-play-state: running;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.move-leave.move-leave-active {
|
|
|
|
|
animation-name: moveRightOut;
|
|
|
|
|
animation-play-state: running;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes moveLeftIn {
|
|
|
|
|
0% {
|
|
|
|
|
transform-origin: 0 0;
|
|
|
|
|
transform: translateX(30px);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
background: $table-move-in-color;
|
|
|
|
|
}
|
|
|
|
|
20% {
|
|
|
|
|
transform-origin: 0 0;
|
|
|
|
|
transform: translateX(0);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
2017-12-24 22:54:32 +08:00
|
|
|
|
80% {
|
2017-01-11 17:01:50 +08:00
|
|
|
|
background: $table-move-in-color;
|
|
|
|
|
}
|
2017-12-24 22:54:32 +08:00
|
|
|
|
100% {
|
2017-01-11 17:01:50 +08:00
|
|
|
|
background: transparent;
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes moveRightOut {
|
|
|
|
|
0% {
|
|
|
|
|
transform-origin: 0 0;
|
|
|
|
|
transform: translateX(0);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
100% {
|
|
|
|
|
transform-origin: 0 0;
|
|
|
|
|
transform: translateX(-30px);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-11-01 15:59:26 +08:00
|
|
|
|
|
2017-12-24 22:54:32 +08:00
|
|
|
|
.formItem-style {
|
2017-11-01 15:59:26 +08:00
|
|
|
|
height: unset;
|
2017-11-02 14:01:03 +08:00
|
|
|
|
min-height: unset;
|
2017-11-01 15:59:26 +08:00
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
2017-12-24 22:54:32 +08:00
|
|
|
|
.errMessage-style {
|
2017-11-01 15:59:26 +08:00
|
|
|
|
display: none;
|
|
|
|
|
border: none;
|
|
|
|
|
/* margin-top: 5px; */
|
|
|
|
|
/* margin-bottom: 5px; */
|
|
|
|
|
background: transparent;
|
2017-12-24 22:54:32 +08:00
|
|
|
|
color: #f22c1d;
|
2017-11-01 15:59:26 +08:00
|
|
|
|
/* padding-left: 12px; */
|
|
|
|
|
/* padding-right: 12px; */
|
|
|
|
|
margin: 0;
|
|
|
|
|
position: absolute;
|
|
|
|
|
padding: 0;
|
|
|
|
|
top: 3px;
|
|
|
|
|
right: 0;
|
|
|
|
|
}
|
2017-11-06 16:13:09 +08:00
|
|
|
|
|
|
|
|
|
.editable-cell {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editable-cell-input-wrapper,
|
|
|
|
|
.editable-cell-text-wrapper {
|
|
|
|
|
padding-right: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editable-cell-text-wrapper {
|
|
|
|
|
padding: 5px 24px 5px 5px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editable-cell-icon,
|
|
|
|
|
.editable-cell-icon-check {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
width: 20px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editable-cell-icon {
|
|
|
|
|
line-height: 28px;
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editable-cell-icon-check {
|
|
|
|
|
line-height: 28px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editable-cell:hover .editable-cell-icon {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editable-cell-icon:hover,
|
|
|
|
|
.editable-cell-icon-check:hover {
|
|
|
|
|
color: #2db7f5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editable-add-btn {
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-component {
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
.empty-search {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 45px;
|
|
|
|
|
z-index: 20;
|
|
|
|
|
top: 5px;
|
|
|
|
|
color: #524e4e;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
&.u-input-group.simple {
|
|
|
|
|
float: right;
|
|
|
|
|
}
|
|
|
|
|
&.u-input-group.simple .u-form-control {
|
|
|
|
|
width: 251px;
|
|
|
|
|
background: #f5f5f5;
|
|
|
|
|
border-color: #f5f5f5;
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
}
|
|
|
|
|
&.u-input-group.simple .u-input-group-btn {
|
|
|
|
|
top: 3px;
|
|
|
|
|
right: 20px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-09-25 14:31:20 +08:00
|
|
|
|
|
2018-05-11 09:29:43 +08:00
|
|
|
|
.col-resize-container {
|
|
|
|
|
height: 0px;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
& + .table-col-resizer:first-of-type {
|
|
|
|
|
table-layout: fixed;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.active-drag .icon{
|
|
|
|
|
visibility: visible;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.last-handle {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.drag-handle {
|
|
|
|
|
margin-left: -5px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
z-index: 5;
|
|
|
|
|
width: 10px;
|
|
|
|
|
cursor: col-resize;
|
|
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
color: #40b0dc;
|
|
|
|
|
top: -1px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
|
left: -2px
|
|
|
|
|
}
|
|
|
|
|
&:last-child {
|
|
|
|
|
left: 6px
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover{
|
|
|
|
|
.icon{
|
|
|
|
|
visibility: visible;
|
|
|
|
|
}
|
|
|
|
|
.col-resizer {
|
|
|
|
|
border: 1px solid;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.disabled-drag {
|
|
|
|
|
cursor: default;
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.col-resizer {
|
|
|
|
|
position: absolute;
|
|
|
|
|
width: 1px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
top: 0px;
|
|
|
|
|
left: 3px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-11-29 23:29:26 +08:00
|
|
|
|
|
|
|
|
|
.u-filter-dropdown-menu-wrap {
|
2018-12-10 15:56:01 +08:00
|
|
|
|
z-index: 1800;
|
2018-11-29 23:29:26 +08:00
|
|
|
|
.u-dropdown-menu {
|
|
|
|
|
li.u-dropdown-menu-item {
|
|
|
|
|
line-height: 32px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
padding: 0px 16px 0 16px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-12-06 13:39:51 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-02-18 14:22:20 +08:00
|
|
|
|
.u-row-hover{
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 24px;
|
|
|
|
|
display: none;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
background: $table-hover-color
|
|
|
|
|
}
|
2019-01-16 13:57:31 +08:00
|
|
|
|
|
2019-02-18 14:22:20 +08:00
|
|
|
|
.u-row-hover2{
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 100;
|
|
|
|
|
}
|