.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;
|
|
>.ant-table-wrapper {
|
position: relative;
|
z-index: 1;
|
}
|
.ant-table {
|
color: inherit;
|
font-size: inherit;
|
}
|
.mk-edit-sign {
|
position: absolute;
|
bottom: 2px;
|
right: 3px;
|
opacity: 0.5;
|
font-size: 10px;
|
}
|
|
table {
|
max-width: 100%;
|
width: 100%;
|
.ant-table-thead {
|
tr {
|
th {
|
position: relative;
|
}
|
}
|
}
|
.ant-table-selection-column {
|
width: 60px;
|
min-width: 60px;
|
max-width: 60px;
|
}
|
.ant-table-tbody > tr.ant-table-row-selected:not(.background) td {
|
background-color: #c4ebfd;
|
}
|
.ant-table-tbody > tr.ant-table-row-selected:not(.background):hover .ant-table-column-sort {
|
background-color: #c4ebfd;
|
}
|
.ant-table-tbody > tr.background td {
|
background-color: unset!important;
|
}
|
// .ant-table-tbody > tr.mk-row-active:not(.background) td {
|
// background-color: #91d5ff;
|
// }
|
// .ant-table-tbody > tr.ant-table-row-selected.mk-row-active:not(.background):hover .ant-table-column-sort {
|
// background-color: #91d5ff;
|
// }
|
.ant-table-tbody > tr td .anticon.font {
|
background-color: unset;
|
}
|
}
|
.ant-table-body {
|
overflow-x: auto!important;
|
table {
|
.ant-table-tbody > tr > td {
|
// vertical-align: top;
|
|
.card-cell-list {
|
color: inherit;
|
}
|
.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;
|
}
|
}
|
}
|
.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 {
|
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;
|
}
|
}
|
}
|
}
|
|
.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;
|
.mk-mask {
|
cursor: pointer;
|
position: absolute;
|
top: 0;
|
left: 0;
|
bottom: 0;
|
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 {
|
.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) {
|
.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);
|
}
|
}
|
.edit-custom-table.fixed-height {
|
.ant-table-body {
|
border-bottom: 1px solid rgba(0, 0, 0, .05);
|
.ant-table-fixed {
|
border-bottom: 0;
|
}
|
}
|
}
|
.edit-custom-table.hidden {
|
thead {
|
display: none;
|
}
|
}
|
.edit-custom-table.ghost {
|
.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;
|
}
|
}
|
}
|
.image-scale-modal {
|
width: 70vw;
|
min-height: 80vh;
|
top: 10vh;
|
.ant-modal-body {
|
min-height: calc(80vh - 110px);
|
line-height: calc(80vh - 160px);
|
text-align: center;
|
}
|
.ant-modal-footer {
|
text-align: center;
|
span {
|
display: inline-block;
|
color: #1890ff;
|
padding: 5px 15px;
|
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;
|
}
|
}
|
}
|