From cdd5b449130ea4d7223fde4f414a11a7d0c33d6d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 07 三月 2024 17:52:16 +0800
Subject: [PATCH] 2024-03-07
---
src/tabviews/custom/components/table/edit-table/normalTable/index.scss | 373 ++++++++++++++++++++++++++++++-----------------------
1 files changed, 212 insertions(+), 161 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 92c6847..a3362b3 100644
--- a/src/tabviews/custom/components/table/edit-table/normalTable/index.scss
+++ b/src/tabviews/custom/components/table/edit-table/normalTable/index.scss
@@ -1,22 +1,29 @@
.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;
- color: rgba(0, 0, 0, 0.65);
- }
- .normal-table-footer.pagination {
- position: absolute;
- bottom: 10px;
- }
>.ant-table-wrapper {
position: relative;
- z-index: 1;
+ // z-index: 1;
+ }
+ .ant-table-placeholder {
+ border-top-color: var(--mk-table-border-color);
}
.ant-table {
color: inherit;
font-size: inherit;
+ }
+ .mk-edit-sign {
+ position: absolute;
+ bottom: 2px;
+ right: 3px;
+ opacity: 0.5;
+ font-size: 10px;
}
table {
@@ -60,103 +67,41 @@
// 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;
- }
- .action-col {
- .ant-btn > .anticon + span {
- margin-left: 3px;
- }
- button {
- border: 0;
- background-color: transparent;
- color: #1890ff;
- box-shadow: none;
- padding: 0 5px;
- .anticon-loading {
- display: none;
- }
- }
- > div {
- margin: 0 3px;
- }
- > button {
- margin: 0 3px;
- }
- .ant-btn.ant-btn-loading:not(.ant-btn-circle):not(.ant-btn-circle-outline):not(.ant-btn-icon-only) {
- padding-left: 0px;
- }
+ color: inherit;
+ overflow: hidden;
}
}
.ant-table-tbody > tr > td[rowspan] {
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.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;
- top: 0px;
- left: 0px;
- right: 0px;
- bottom: 0px;
- opacity: 0;
- cursor: pointer;
- }
}
- .ant-table-tbody > tr > td .content {
- p {
- margin-bottom: 2px;
- }
- span {
- display: inline-block;
- margin-right: 5px;
- }
- }
- .ant-table-tbody > tr > td .button {
- .ant-btn {
- margin-bottom: 10px;
- }
- }
+ // .ant-table-tbody > tr > td .content {
+ // p {
+ // margin-bottom: 2px;
+ // }
+ // span {
+ // display: inline-block;
+ // margin-right: 5px;
+ // }
+ // }
+ // .ant-table-tbody > tr > td .button {
+ // .ant-btn {
+ // margin-bottom: 10px;
+ // }
+ // }
}
}
- .ant-input {
- border: none;
- box-shadow: none!important;
- height: auto;
- border-radius: 0;
- }
- .ant-input-number {
- border: none;
- box-shadow: none!important;
- height: auto;
- border-radius: 0;
- position: unset;
-
- .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;
@@ -165,7 +110,11 @@
left: 0px;
right: 0px;
bottom: 0px;
- border: 1px solid #1890ff;
+ border: 1px solid var(--mk-sys-color);
+ height: auto;
+ border-radius: 0;
+ box-shadow: none!important;
+ text-align: inherit;
}
.ant-select {
padding: 0px;
@@ -183,27 +132,85 @@
}
}
}
- .ant-input-number-input {
+ .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);
+ background: #ffffff;
+ }
+ }
+ .ant-calendar-picker {
+ display: block;
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
- border: 1px solid #1890ff;
}
- .anticon {
- color: #ff4d4f;
- position: absolute;
- right: 3px;
- top: calc(50% - 8px);
+ .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;
+ }
+ }
+ .ant-calendar-picker {
+ display: block;
+ height: 30px;
+ }
+ .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;
@@ -212,73 +219,75 @@
right: 0;
}
}
- .mk-editable {
- position: absolute;
- display: inline-block;
- top: calc(50% - 13px);
- cursor: pointer;
- padding: 10px 5px;
- opacity: 0;
- // transition: opacity 0.3s 0.1s, left 0.1s;
+
+ .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;
}
- tr:hover {
- .mk-editable {
- opacity: 1;
+ .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 {
+ position: unset!important;
}
- .mk-plus {
- left: -25px;
+ 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;
}
- .mk-del {
- right: -25px;
+ 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;
+ }
}
}
- .mk-plus {
- left: 0px;
- // left: -25px;
- color: rgb(38, 194, 129);
- padding-right: 10px;
+ table tbody tr {
+ color: var(--mk-table-color);
}
- .mk-del {
- right: 0px;
- // right: -25px;
- color: rgb(255, 77, 79);
- padding-left: 10px;
- }
- .mk-add-line {
- display: block;
- width: 100%;
- color: #26C281;
- border: 1px solid #dddddd;
- border-radius: 0;
- font-size: 25px;
- height: 40px;
- }
- .mk-add-line:disabled {
- border-color: #fafafa!important;
+ // .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.buoyMode {
- .ant-table-scroll {
- overflow: unset;
- overflow-x: unset;
-
- .ant-table-body {
- overflow-x: unset!important;
- }
+.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;
- }
- .mk-operation {
- display: none;
- }
.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) {
@@ -354,4 +363,46 @@
cursor: pointer;
}
}
+}
+.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;
+ }
+}
+.mk-user-confirm {
+ top: 30vh;
+
+ .ant-modal-body {
+ font-size: 16px;
+ }
+ .anticon-question-circle {
+ color: orange;
+ font-size: 16px;
+ margin-right: 5px;
+ }
+ .ant-modal-footer {
+ border-top: 0px;
+ padding: 10px 20px 25px 0px;
+ .table-refresh, .table-refresh:hover, .table-refresh:active, .table-refresh:focus {
+ color: #fff!important;
+ background-color: #ff4d4f!important;
+ border-color: #ff4d4f!important;
+ }
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0