king
2024-03-21 a9b02f6862522b54d0824152017bf2acfec2af7b
src/tabviews/custom/components/card/data-card/index.scss
@@ -4,9 +4,101 @@
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 20px;
  display: flex;
  position: relative;
  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 {
@@ -35,25 +127,8 @@
    display: block;
    clear: both;
  }
  .card-row-list {
    flex: 10;
    .card-item-box {
      transition: all 0.3s;
    }
    >.active >.card-item-box {
      border-color: #1890ff!important;
      box-shadow: 0 0 3px #1890ff;
    }
  }
  .card-item-box {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .ant-empty {
    width: 100%;
    min-height: 100px;
    padding-top: 15px;
@@ -63,9 +138,9 @@
  }
  .loading-mask {
    position: absolute;
    left: 40px;
    left: 0px;
    top: 0;
    right: 40px;
    right: 0px;
    bottom: 0px;
    display: flex;
    align-items: center;
@@ -81,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;