From 7b0dbecd1d6155d26ec67be0a47a16264c738c85 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 09 五月 2023 14:48:10 +0800 Subject: [PATCH] 2023-05-09 --- src/tabviews/custom/components/table/edit-table/normalTable/index.scss | 260 +++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 187 insertions(+), 73 deletions(-) diff --git a/src/tabviews/custom/components/table/edit-table/normalTable/index.scss b/src/tabviews/custom/components/table/edit-table/normalTable/index.scss index 0cbfb78..84cb88f 100644 --- a/src/tabviews/custom/components/table/edit-table/normalTable/index.scss +++ b/src/tabviews/custom/components/table/edit-table/normalTable/index.scss @@ -1,6 +1,11 @@ .edit-custom-table { position: relative; + min-height: 150px; padding: 0px; + --mk-table-border-color: #e8e8e8; + --mk-table-color: rgba(0, 0, 0, 0.65); + --mk-table-font-size: 14px; + --mk-table-font-weight: normal; .normal-table-footer { padding: 10px 0px; @@ -17,6 +22,13 @@ .ant-table { color: inherit; font-size: inherit; + } + .mk-edit-sign { + position: absolute; + bottom: 2px; + right: 3px; + opacity: 0.5; + font-size: 10px; } table { @@ -60,16 +72,7 @@ // vertical-align: top; .card-cell-list { - color: rgba(0, 0, 0, 0.85); - } - .ant-mk-picture { - position: relative; - background-position: center center; - background-size: cover; - margin: 2px; - } - .ant-mk-picture.scale { - cursor: zoom-in; + color: inherit; } .action-col { .ant-btn > .anticon + span { @@ -135,66 +138,103 @@ } } } - // .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-input { - border: none; - box-shadow: none!important; - height: auto; - border-radius: 0; - } - .ant-input-number { - border: none; - width: 100%; - box-shadow: none!important; - height: auto; - .ant-input-number-handler-wrap { - display: none; - } - .ant-input-number-input { - border-radius: 0; - padding: 0; - height: auto; - } - } + .editing_table_cell { .ant-input { padding: 0px; + position: absolute; + top: 0px; + left: 0px; + right: 0px; + bottom: 0px; + border: 1px solid var(--mk-sys-color); + height: auto; + border-radius: 0; + box-shadow: none!important; + text-align: inherit; + } + .ant-select { + padding: 0px; + position: absolute; + top: 0px; + left: 0px; + right: 0px; + bottom: 0px; + .ant-select-selection { + height: 100%; + border-radius: 0; + + .ant-select-arrow { + display: none; + } + } + } + .ant-input-number { + height: auto; + border-radius: 0; + position: unset; + border: none; + box-shadow: none!important; + text-align: inherit; + + .ant-input-number-handler-wrap { + display: none; + } + .ant-input-number-input-wrap { + text-align: inherit; + } + .ant-input-number-input { + border-radius: 0; + padding: 0; + height: auto; + position: absolute; + text-align: inherit; + top: 0px; + left: 0px; + right: 0px; + bottom: 0px; + border: 1px solid var(--mk-sys-color); + } + } + .has-error, .has-error .ant-input-number-input { + border-color: #ff4d4f!important; + } + } + .editing_all_table_cell { + .ant-input { + border-radius: 0; + padding: 4px 5px; + text-align: inherit; + } + .ant-select { + width: 100%; + .ant-select-selection { + border-radius: 0; + } + } + .ant-input-number { + border-radius: 0; + text-align: inherit; + + .ant-input-number-handler-wrap { + display: none; + } + .ant-input-number-input-wrap { + text-align: inherit; + } + .ant-input-number-input { + border-radius: 0; + padding: 4px 5px; + text-align: inherit; + } + } + .has-error, .has-error .ant-input-number-input { + border-color: #ff4d4f!important; } } td.pointer { position: relative; - } - td.pointer { .mk-mask { - display: none; cursor: pointer; position: absolute; top: 0; @@ -203,16 +243,72 @@ right: 0; } } + + .submit-footer-table { + float: right; + min-height: 28px; + min-width: 65px; + height: auto; + color: #ffffff; + background-color: #1890ff; + border-width: 0; + margin-top: 10px!important; + margin-right: 10px!important; + } + .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, th .ant-table-column-title span:not(.anticon) { + 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); + } + .ant-table-bordered { + table { + tbody { + tr:last-child { + td { + border-bottom: none; + } + } + } + } + } +} +.edit-custom-table.mk-edit-simple { + table tbody tr td { + min-height: 32px; + height: 32px; + } +} +.edit-custom-table.mk-edit-multi { + th .ant-table-column-title .anticon-edit { + display: none; + } } .edit-custom-table.editable { - td { - background-color: #ffffff!important; - } - td.pointer .mk-mask { - display: block; - } - .ant-pagination { + .ant-table-placeholder { display: none; + } +} +.edit-custom-table:not(.ghost) { + .ant-table-small > .ant-table-content .ant-table-thead > tr > th { + background-color: #fafafa!important; } } .edit-custom-table:not(.fixed-height) { @@ -246,9 +342,6 @@ } } .edit-custom-table.ghost { - .main-pickup { - display: none; - } .ant-table-thead > tr { > th { color: inherit; @@ -291,4 +384,25 @@ cursor: pointer; } } -} \ No newline at end of file +} +.edit-table-dropdown { + .ant-select-dropdown-menu-item { + white-space: unset; + text-overflow: unset; + } +} +.edit-custom-table-btn-wrap { + float: right; + .submit-table { + position: relative; + z-index: 2; + min-width: 65px; + margin-right: 15px; + min-height: 28px; + height: auto; + color: #ffffff; + background-color: #1890ff; + border-width: 0; + margin-bottom: 10px!important; + } +} -- Gitblit v1.8.0