From a9b02f6862522b54d0824152017bf2acfec2af7b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 21 三月 2024 10:29:50 +0800 Subject: [PATCH] 2024-03-21 --- src/tabviews/custom/components/card/data-card/index.scss | 315 +++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 239 insertions(+), 76 deletions(-) diff --git a/src/tabviews/custom/components/card/data-card/index.scss b/src/tabviews/custom/components/card/data-card/index.scss index edace1d..e26e385 100644 --- a/src/tabviews/custom/components/card/data-card/index.scss +++ b/src/tabviews/custom/components/card/data-card/index.scss @@ -1,9 +1,104 @@ -.custom-card-box { +.custom-data-card-box { background: #ffffff; - min-height: 100px; - display: flex; - position: relative; + background-position: center center; + background-repeat: no-repeat; + background-size: cover; + min-height: 20px; + overflow-y: auto; + .pickup-wrap { + float: right; + button { + margin-top: 3px; + } + } + .pickup-wrap + div { + clear: both; + } + .button-list + .pickup-wrap { + position: relative; + button { + position: absolute; + bottom: 0; + right: 0; + } + } + .data-zoom { + display: flex; + position: relative; + .mk-disabled { + >.card-item-box { + cursor: not-allowed; + color: #bcbcbc; + .ant-mk-text, .anticon { + color: #bcbcbc!important; + span { + color: #bcbcbc!important; + } + } + } + } + .mk-even-line { + .card-item-box { + background-color: #fafafa; + } + } + } + .data-zoom.mk-hover { + .mk-card { + .card-item-box:hover { + background-color: var(--mk-sys-color1); + } + } + } + .data-zoom.scale { + .card-row-list { + .mk-card:hover { + >.card-item-box { + z-index: 1; + transform: scale(1.05); + } + } + } + } + .card-row-list { + flex: 10; + max-width: 100%; + } + .card-row-list.flex-layout { + display: flex; + width: 100%; + >.ant-col { + width: 5%; + flex: 1; + } + } + .card-row-list.float-center { + text-align: center; + >.ant-col { + display: inline-block; + float: none; + text-align: left; + vertical-align: top; + } + } + .card-row-list.float-right { + text-align: right; + >.ant-col { + display: inline-block; + float: none; + text-align: left; + vertical-align: top; + } + } + .card-item-box { + position: relative; + background-color: #ffffff; + transition: all 0.3s; + background-position: center center; + background-repeat: no-repeat; + background-size: cover; + } .prev-page { width: 20px; div { @@ -16,13 +111,15 @@ } img { width: 15px; - height: 100px; + padding: 0 2px; + height: 70px; cursor: pointer; } } .prev-page.disabled { img { cursor: not-allowed; + opacity: 0.4; } } .card-row-list::after { @@ -30,76 +127,10 @@ display: block; clear: both; } - .card-row-list { - flex: 10; - } - .card-item-box { - border-style: solid; - .card-cell-list::after { - content: ' '; - display: block; - clear: both; - } - } - - .card-cell-list { - position: relative; - - .ant-mk-slider { - box-sizing: border-box; - margin: 0; - color: rgba(0, 0, 0, 0.65); - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5; - list-style: none; - font-feature-settings: 'tnum', "tnum"; - position: relative; - height: 12px; - padding: 3px 0; - cursor: pointer; - touch-action: none; - - .ant-mk-slider-track { - height: 7px; - position: absolute; - background-color: #91d5ff; - border-radius: 4px; - transition: background-color 0.3s; - } - .ant-mk-slider-rail { - height: 7px; - position: absolute; - width: 100%; - background-color: #f5f5f5; - border-radius: 2px; - transition: background-color 0.3s; - } - .ant-mk-slider-handle { - position: absolute; - width: 14px; - height: 14px; - margin-top: -4px; - margin-left: -7px; - background-color: #fff; - border: solid 2px #91d5ff; - border-radius: 50%; - cursor: pointer; - transition: border-color 0.3s, box-shadow 0.6s, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), -webkit-box-shadow 0.6s, -webkit-transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); - } - } - .ant-mk-splitline { - height: 1px; - } - .ant-slider { - margin: 0px; - } - } .ant-empty { - position: absolute; - top: calc(50% - 34px); - left: calc(50% - 92px); + min-height: 100px; + padding-top: 15px; .ant-empty-image { height: 60px; @@ -107,9 +138,9 @@ } .loading-mask { position: absolute; - left: 40px; + left: 0px; top: 0; - right: 40px; + right: 0px; bottom: 0px; display: flex; align-items: center; @@ -125,8 +156,140 @@ background: #ffffff; } } -} + .ant-pagination { + padding: 10px; + text-align: right; + } + .mk-more { + text-align: center; + line-height: 40px; + cursor: pointer; + .anticon-down { + margin-left: 2px; + } + } + .mk-more.disabled { + cursor: not-allowed; + color: #bcbcbc; + } + .mk-disabled { + .circle-select { + border-color: #e8e8e8!important; + cursor: not-allowed; + } + } + .circle-select { + position: relative; + display: none; + width: 16px; + height: 16px; + min-width: 16px; + border: 1px solid #cccccc; + border-radius: 50%; + box-sizing: content-box; + margin: auto; + margin-right: 5px; + background-color: #ffffff; + transition: border-color 0.2s; + cursor: pointer; + } + .circle-select::before { + position: relative; + top: 1px; + left: 6px; + content: ' '; + display: block; + width: 5px; + height: 11px; + border-style: solid; + border-width: 0 2px 2px 0; + border-color: #ffffff; + transform: rotate(45deg); + } + .data-zoom.check.square { + .circle-select { + border-radius: 0!important; + } + .circle-select.half::after { + border-radius: 0px; + } + } + .data-zoom.check { + .mk-card.active, .mk-card.selected { + .circle-select { + border-color: var(--mk-sys-color); + background: var(--mk-sys-color); + } + } + .circle-select.whole { + border-color: var(--mk-sys-color); + background: var(--mk-sys-color); + } + .circle-select.half { + border-color: var(--mk-sys-color); + } + .circle-select.half::before { + display: none; + } + .circle-select.half::after { + position: absolute; + top: 4px; + left: 4px; + content: ' '; + display: block; + border-radius: 8px; + width: 8px; + height: 8px; + background: var(--mk-sys-color); + } + .card-item-box { + // width: 100%; + display: flex; + } + .card-cell-list { + flex: 1; + } + .circle-select { + display: block; + } + .circle-select:hover { + border-color: var(--mk-sys-color); + } + } +} +.custom-data-card-box.shifting { + .normal-header:not(.header-search) + .toolbar-button { + position: absolute; + top: 0px; + right: 0px; + z-index: 1; + button { + margin-bottom: 0px!important; + } + } + .normal-header:not(.header-search) + .toolbar-button + .pickup-wrap{ + position: relative; + button { + position: relative; + } + } +} +.custom-data-card-box::-webkit-scrollbar { + width: 7px; + height: 7px; +} +.custom-data-card-box::-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); +} +.custom-data-card-box::-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); +} .custom-card-box::after { content: ' '; display: block; -- Gitblit v1.8.0