king
2021-05-26 f66e19dd13af07ee466306632ad43c72f1f16ae7
src/tabviews/custom/components/card/data-card/index.scss
@@ -1,15 +1,101 @@
.custom-card-box {
.custom-data-card-box {
  background: #ffffff;
  min-height: 100px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 20px;
  .card-item {
    border-style: solid;
  >.button-list.toolbar-button {
    padding: 0;
    line-height: 55px;
    button {
      margin-right: 0px;
      margin-bottom: 0px;
    }
  }
  .data-zoom {
    display: flex;
    position: relative;
  }
  .data-zoom.radio, .data-zoom.checkbox {
    .card-row-list {
      >.ant-col:not(.active):not(.selected):hover {
        >.card-item-box {
          border-color: #69c0ff!important;
          box-shadow: 0 0 4px #69c0ff!important;
        }
      }
    }
  }
  .data-zoom.true {
    .card-row-list {
      >.ant-col:hover {
        >.card-item-box {
          z-index: 1;
          transform: scale(1.05);
        }
      }
    }
  }
  .prev-page {
    width: 20px;
    div {
      height: 100%;
      display: table;
      div {
        display: table-cell;
        vertical-align: middle;
      }
    }
    img {
      width: 15px;
      padding: 0 2px;
      height: 70px;
      cursor: pointer;
    }
  }
  .prev-page.disabled {
    img {
      cursor: not-allowed;
      opacity: 0.4;
    }
  }
  .card-row-list::after {
    content: ' ';
    display: block;
    clear: both;
  }
  .card-row-list {
    flex: 10;
    .card-item-box {
      position: relative;
      background-color: #ffffff;
      transition: all 0.3s;
    }
    >.pointer {
      cursor: pointer;
    }
    >.active >.card-item-box {
      border-color: #1890ff!important;
      box-shadow: 0 0 4px #1890ff;
    }
    >.selected >.card-item-box {
      border-color: #69c0ff!important;
      box-shadow: 0 0 4px #69c0ff;
    }
  }
  .card-item-box {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .ant-empty {
    position: absolute;
    top: calc(50% - 34px);
    left: calc(50% - 92px);
    width: 100%;
    min-height: 100px;
    padding-top: 15px;
    .ant-empty-image {
      height: 60px;
@@ -17,10 +103,10 @@
  }
  .loading-mask {
    position: absolute;
    left: 20px;
    left: 0px;
    top: 0;
    right: 20px;
    bottom: 30px;
    right: 0px;
    bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
@@ -35,4 +121,36 @@
      background: #ffffff;
    }
  }
  .ant-pagination {
    margin: 10px;
    text-align: right;
  }
  .trigger-button {
    .card-item-box {
      .card-cell-list {
        position: unset;
        .mk-cell-btn {
          position: unset;
          .ant-btn {
            position: unset;
          }
          .ant-btn::after {
            content: ' ';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            cursor: pointer;
          }
        }
      }
    }
  }
}
.custom-card-box::after {
  content: ' ';
  display: block;
  clear: both;
}