@import "../node_modules/tinper-bee-core/scss/minxin-variables"; @import "../node_modules/tinper-bee-core/scss/minxin-mixins"; @import "../node_modules/bee-loading/src/Loading"; $text-color: #666; $font-size-base: 12px; $line-height: 1.5; $table-border-color: $border-color-base; $table-head-background-color: #f7f7f7; $vertical-padding: 12px; $horizontal-padding: 8px; $table-border-color: #e9e9e9; $table-hover-color: unquote("rgb(#{$palette-blue-50})") !default; $table-move-in-color: $bg-color-base; .u-table { font-size: $font-size-base; color: $text-color; transition: opacity 0.3s ease; position: relative; line-height: $line-height; overflow: hidden; &-body{ // overflow: hidden!important; position: relative; } &-hiden-drag{ position: relative; &-li{ position: absolute; top: 0px; left: 0px; height: 10px; } } table { width: 100%; border-collapse: collapse; text-align: left; } th { // background: $table-head-background-color; font-weight: bold; transition: background 0.3s ease; &[colspan] { text-align: center; } } td { border-bottom: 1px solid $table-border-color; } tr { transition: all 0.3s ease; &:hover { background: $table-hover-color; } } tr.tr-row-hover { background: $table-hover-color; } th, td { padding: $vertical-padding $horizontal-padding; word-break: break-all; } &-row-hover { background: rgb(227, 242, 253); } &-scroll { overflow: auto; } &-bordered { table { border: 1px solid #e9e9e9; box-sizing: border-box; table-layout: fixed; // width:auto; } th { border-bottom: 1px solid #e9e9e9; box-sizing: border-box; } th, td { border-right: 1px solid #e9e9e9; box-sizing: border-box; } } &-header { overflow: hidden; background: $table-head-background-color; } &-fixed-header &-body { background: #fff; position: relative; } &-fixed-left &-body-inner { margin-right: -20px; } &-fixed-header &-body-inner { height: 100%; overflow: scroll; } &-fixed-header &-scroll &-header { overflow-x: scroll; padding-bottom: 20px; margin-bottom: -20px; overflow-y: auto; box-sizing: border-box; } &-title { padding: $vertical-padding $horizontal-padding; border-top: 1px solid $table-border-color; } &-content { position: relative; } &-footer { padding: $vertical-padding $horizontal-padding; border-bottom: 1px solid $table-border-color; .u-table-scroll{ overflow-x: hidden; } } &-footer & { margin: (-$vertical-padding) (-$horizontal-padding); } &-placeholder { padding: $vertical-padding 8px; background: #fff; border-bottom: 1px solid $table-border-color; text-align: center; position: relative; } &-expand-icon-col { width: 10px; } &-row, &-expanded-row { &-expand-icon { cursor: pointer; display: inline-block; margin-right: 10px; width: 16px; height: 16px; text-align: center; line-height: 16px; border: 1px solid $table-border-color; user-select: none; background: #fff; } &-spaced { visibility: hidden; } &-spaced:after { content: "."; } &-expanded:after { content: "-"; } &-collapsed:after { content: "+"; } } tr.u-table-expanded-row { background: #f7f7f7; &:hover { background: #f7f7f7; } .u-table { // padding: 0 40px 0 20px; } } &-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 { content: "<"; } } &-next-columns-page { float: right; &:before { content: ">"; } } &-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); &-body-inner { margin-right: -20px; padding-right: 20px; } &-fixed-header & &-body-inner { 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 &-expanded-row { color: transparent; pointer-events: none; } } &-scroll-position-left &-fixed-left { box-shadow: none; } &-scroll-position-right &-fixed-right { box-shadow: none; } &-thead{ th{ background: $table-head-background-color; } .th-drag{ cursor: move; } .th-drag-hover{ background: #ccc; } &-th{ position: relative; &-drag-gap{ height: 100%; position: absolute; right: 0px; top: 0; background:transparent; width: 2px; cursor: col-resize; box-sizing: border-box; } .th-drag-gap{ background:transparent; } .th-drag-gap-hover{ background: #ccc; } } &-th:last-child { &-drag-gap{ border: none; } } } &-filter-column{ &-pop-cont{ margin: 10px; margin-top: 0px; } &-clear-setting{ border-bottom: 1px solid #ccc; cursor: pointer; } &-cont{ position: relative; } &-pop-column-filter{ position: absolute; top: 10px; right: 3px; width: 30px; height: 30px; } &-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; } } } .u-table.bordered { table { border-collapse: collapse; } th, td { border: 1px solid $table-border-color; } } .move-enter, .move-appear { 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); animation-duration: 0.5s; animation-fill-mode: both; animation-play-state: paused; } .move-enter.move-enter-active, .move-appear.move-enter-active { 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; } 80% { background: $table-move-in-color; } 100% { 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; } } .formItem-style { height: unset; min-height: unset; padding: 0; } .errMessage-style { display: none; border: none; /* margin-top: 5px; */ /* margin-bottom: 5px; */ background: transparent; color: #f22c1d; /* padding-left: 12px; */ /* padding-right: 12px; */ margin: 0; position: absolute; padding: 0; top: 3px; right: 0; } .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; } } .bee-table-column-sorter { position: relative; margin-left: 4px; display: inline-block; width: 14px; height: 1em; vertical-align: middle; text-align: center; & > .bee-table-column-sorter-down, & > .bee-table-column-sorter-up { line-height: 6px; display: block; width: 14px; cursor: pointer; } } .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; -webkit-transition: all 0.3s; transition: all 0.3s; } .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; } } }