From a5f41b5d98f23d618dc7519c605ce943b114dfd5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 13 十一月 2023 18:07:51 +0800 Subject: [PATCH] 2023-11-13 --- src/tabviews/custom/components/share/normalTable/index.scss | 244 ++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 222 insertions(+), 22 deletions(-) diff --git a/src/tabviews/custom/components/share/normalTable/index.scss b/src/tabviews/custom/components/share/normalTable/index.scss index e98044f..3bf6756 100644 --- a/src/tabviews/custom/components/share/normalTable/index.scss +++ b/src/tabviews/custom/components/share/normalTable/index.scss @@ -1,18 +1,64 @@ .normal-custom-table { position: relative; - padding: 0 0px 30px; + padding: 0px; + min-height: 40px; + --mk-table-border-color: #e8e8e8; + --mk-table-color: rgba(0, 0, 0, 0.65); + --mk-table-font-size: 14px; + --mk-table-font-weight: normal; + .main-pickup { + position: absolute; + right: 5px; + top: -22px; + z-index: 2; + } + .normal-table-footer { padding: 10px 0px; color: rgba(0, 0, 0, 0.65); } .normal-table-footer.pagination { position: absolute; - bottom: 40px; + bottom: 10px; } >.ant-table-wrapper { position: relative; z-index: 1; + } + .ant-table { + color: inherit; + font-size: inherit; + } + + .mk-disabled { + color: #bcbcbc; + cursor: not-allowed; + --mk-table-color: #bcbcbc; + + span, div { + color: #bcbcbc!important; + } + + .ant-btn { + cursor: not-allowed; + } + .ant-table-selection-column { + > span::after { + content: ' '; + display: block; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 1; + } + } + .ant-checkbox-checked .ant-checkbox-inner { + background-color: #fff!important; + border-color: #d9d9d9!important; + } } table { @@ -53,12 +99,19 @@ overflow-x: auto!important; table { .ant-table-tbody > tr > td { - vertical-align: top; + // vertical-align: top; + .card-cell-list { + color: inherit; + } .ant-mk-picture { - background-position: center center; - background-size: cover; - margin: 2px; + position: relative; + margin: 2px; + } + .video-wrap { + .video-react-playback-rate { + display: none; + } } .action-col { .ant-btn > .anticon + span { @@ -89,6 +142,14 @@ vertical-align: middle; } .ant-table-tbody > tr > td.ant-table-column-has-actions { + .content { + position: relative; + z-index: 1; + word-wrap: break-word; + word-break: break-word; + } + } + .ant-table-tbody > tr > td { position: relative; .link-menu { position: absolute; @@ -98,13 +159,6 @@ bottom: 0px; opacity: 0; cursor: pointer; - } - - .content { - position: relative; - z-index: 1; - word-wrap: break-word; - word-break: break-word; } } .ant-table-tbody > tr > td .content { @@ -123,6 +177,66 @@ } } } + // .ant-table-body::-webkit-scrollbar { + // width: 8px; + // height: 10px; + // } + // ::-webkit-scrollbar-thumb { + // border-radius: 5px; + // box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13); + // background: rgba(0, 0, 0, 0.13); + // } + // ::-webkit-scrollbar-track {/*婊氬姩鏉¢噷闈㈣建閬�*/ + // box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + // border-radius: 3px; + // border: 1px solid rgba(0, 0, 0, 0.07); + // background: rgba(0, 0, 0, 0); + // } + .fix-header { + .ant-table-body { + min-height: unset + } + .ant-table-placeholder { + display: none; + } + .ant-table-wrapper { + display: none; + } + .ant-affix .ant-table-wrapper { + display: block; + } + } + .ant-table-small.ant-table-bordered { + border-right: 1px solid #e8e8e8; + } + + table, tr, th, td, .ant-table-small { + border-color: var(--mk-table-border-color)!important; + } + table tr { + th .ant-table-column-title { + font-size: var(--mk-table-font-size)!important; + font-weight: var(--mk-table-font-weight)!important; + } + td { + font-size: var(--mk-table-font-size)!important; + font-weight: var(--mk-table-font-weight)!important; + + >span, >div:not(.card-cell-list) div, >div:not(.card-cell-list) span { + font-weight: var(--mk-table-font-weight)!important; + } + } + } + table tbody tr { + color: var(--mk-table-color); + } +} +.normal-custom-table:not(.ghost) { + .ant-table-small > .ant-table-content .ant-table-thead > tr > th { + background-color: #fafafa!important; + } +} +.normal-custom-table:not(.fixed-height) { .ant-table-body::-webkit-scrollbar { width: 8px; height: 10px; @@ -138,18 +252,104 @@ border: 1px solid rgba(0, 0, 0, 0.07); background: rgba(0, 0, 0, 0); } - .fix-header { - .ant-table-body { - min-height: unset +} +.normal-custom-table.fixed-height { + .ant-table-body { + border-bottom: 1px solid rgba(0, 0, 0, .05); + .ant-table-fixed { + border-bottom: 0; } - .ant-table-placeholder { - display: none; + } +} +.normal-custom-table.hidden { + thead { + display: none; + } +} +.normal-custom-table.mk-fixed-last-col { + table { + .ant-table-thead { + tr:first-child { + th:last-child { + position: sticky !important; + z-index: 2; + right: 0px; + box-shadow: 0 1px 1px #bcbcbc; + } + } } - .ant-table-wrapper { - display: none; + .ant-table-tbody { + tr { + td:last-child { + position: sticky !important; + z-index: 2; + right: 0px; + background: #ffffff; + box-shadow: 0 1px 1px #bcbcbc; + } + } } - .ant-affix .ant-table-wrapper { - display: block; + } +} +.normal-custom-table.mk-fixed-first-col { + table { + .ant-table-thead { + tr:first-child { + th:first-child { + position: sticky !important; + z-index: 2; + left: 0px; + } + th.ant-table-selection-column + th { + position: sticky !important; + z-index: 2; + left: 60px; + } + } + } + .ant-table-tbody { + tr { + td:first-child { + position: sticky !important; + z-index: 2; + left: 0px; + background: #ffffff; + } + td.ant-table-selection-column + td{ + position: sticky !important; + z-index: 2; + left: 60px; + background: #ffffff; + } + } + } + } +} +.normal-custom-table.ghost { + .main-pickup { + display: none; + } + .ant-table-thead > tr { + > th { + color: inherit; + background: transparent; + .ant-table-column-sorter .ant-table-column-sorter-inner { + color: inherit; + } + } + > th:hover { + background: transparent; + } + } + .ant-table-body { + overflow-x: auto; + tr { + td { + background: transparent!important; + } + } + tr:hover td { + background: transparent!important; } } } -- Gitblit v1.8.0