From e1cee96b38805bcccf48e7bcb9d296f2bc54c720 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 24 一月 2025 11:10:32 +0800 Subject: [PATCH] 2025-01-24 --- src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.scss | 99 +++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 78 insertions(+), 21 deletions(-) diff --git a/src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.scss b/src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.scss index 9fb18d8..3784895 100644 --- a/src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.scss +++ b/src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.scss @@ -1,28 +1,79 @@ -.mk-pop-select { - .ant-select-selection__rendered { - margin-right: 30px; +.mk-pop-select-wrap { + position: relative; + box-sizing: border-box; + margin: 0; + padding: 0 30px 0 11px; + color: rgba(0, 0, 0, 0.65); + font-size: 14px; + font-variant: tabular-nums; + list-style: none; + font-feature-settings: 'tnum'; + position: relative; + display: inline-block; + width: 100%; + outline: 0; + border: 1px solid #d9d9d9; + border-top-width: 1.02px; + background: #ffffff; + user-select: none; + height: 32px; + cursor: pointer; + transition: all 0.3s; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + line-height: 30px; + vertical-align: top; + + .anticon-table { + padding: 7px; + color: rgba(0, 0, 0, 0.25); + transition: color 0.3s; + font-size: 14px; + position: absolute; + right: 0px; + top: 0px; } - .ant-select-selection__clear { - right: 35px; + .anticon-close-circle { + color: rgba(0, 0, 0, 0.25); + transition: all 0.3s; + padding: 7px; + opacity: 0; + position: absolute; + right: 25px; } - .ant-select-arrow { - transform: translate(8px, -9px); - .ant-select-arrow-icon { - padding: 7px; - color: rgba(0, 0, 0, 0.25); - transition: color 0.2s; - font-size: 14px; - svg { - transition: none!important; - transform: none!important; - } - } - .ant-select-arrow-icon:hover { - color: var(--mk-sys-color); - } + .anticon-close-circle:hover { + color: rgba(0, 0, 0, 0.45); } } -.mk-pop-select-modal { +.mk-pop-select-wrap:hover, .mk-pop-select-mask:hover + .mk-pop-select-wrap { + border-color: var(--mk-sys-color5); + box-shadow: 0 0 0 2px var(--mk-sys-color2); + + .anticon-table { + color: var(--mk-sys-color); + } + .anticon-close-circle { + opacity: 1; + } +} +.mk-pop-select-mask { + position: absolute; + background: #ffffff; + top: 0px; + left: 0px; + right: 0px; + bottom: 0px; + height: auto; + border: 1px solid #d9d9d9; + cursor: pointer; +} +.mk-pop-select-mask + .mk-pop-select-wrap { + border: none; + box-shadow: none!important; + padding-left: 0px; +} +.mk-table-pop-select-modal { .ant-modal-body { min-height: 200px; max-height: calc(100vh - 210px); @@ -32,7 +83,13 @@ max-width: 300px; margin-bottom: 20px; } + .ant-tabs { + margin-top: -20px; + } table { + td { + padding: 12px 16px; + } tr:not(.ant-table-row-selected):hover > td { background-color: var(--mk-sys-color1); } -- Gitblit v1.8.0