king
2024-10-02 65da4dae29c621df1764cb5523c64e92be8b180a
src/menu/datasource/verifycard/index.scss
@@ -1,13 +1,85 @@
#model-verify-card-box-tab {
.model-data-source-wrap {
  .ant-spin {
    position: absolute;
    left: calc(50% - 16px);
    top: 220px;
    z-index: 1;
  }
  .verify-card-box {
  .base-table-columns {
    height: 15px;
  }
  .base-table-columns + .modal-edit-table {
    .editable-row > td:last-child {
      padding: 14px 10px;
    }
  }
  .data-source-card-box {
    .ant-tabs-nav-scroll {
      text-align: center;
    }
    .mk-copy-fields {
      position: absolute;
      cursor: pointer;
      z-index: 1;
      top: 19px;
      right: -50px;
      color: rgb(24, 144, 255);
      display: inline-block;
      opacity: 0.4;
      transition: opacity 0.2s;
    }
    .mk-copy-datasource {
      position: absolute;
      cursor: pointer;
      z-index: 1;
      top: 19px;
      right: -50px;
      color: rgb(24, 144, 255);
      display: inline-block;
      opacity: 0.4;
      transition: opacity 0.2s;
    }
    .mk-paste-datasource {
      position: absolute;
      cursor: pointer;
      z-index: 1;
      top: 19px;
      right: -90px;
      color:purple;
      display: inline-block;
      opacity: 0.4;
      transition: opacity 0.2s;
    }
    .mk-copy-fields:hover, .mk-copy-datasource:hover, .mk-paste-datasource:hover {
      opacity: 1;
    }
    .mk-search-fields {
      position: absolute;
      cursor: pointer;
      width: 150px;
      z-index: 1;
      top: 10px;
      right: -240px;
      display: inline-block;
      .ant-input {
        border-radius: 40px;
        height: 30px;
        transition: opacity 0.2s;
      }
      .ant-input:not(:hover):not(:active):not(:focus) {
        opacity: 0.6;
      }
      .ant-input:not(:hover):not(:active):not(:focus) + .ant-input-suffix {
        opacity: 0.6;
      }
    }
    .mk-search-fields:hover {
      .ant-input {
        opacity: 1;
      }
      .ant-input-suffix {
        opacity: 1;
      }
    }
    .count-tip {
      position: absolute;
@@ -15,24 +87,18 @@
      color: #1890ff;
      font-size: 12px;
    }
    .ant-tabs-content {
      min-height: 40vh;
    }
    table tr td {
      word-wrap: break-word;
      word-break: break-word;
    }
    .quickly-add {
      position: relative;
      position: absolute;
      width: 100px;
      float: right;
      top: -5px;
      right: 24px;
      top: 5px;
      z-index: 2;
    }
    .verify-form {
      .ant-input-number {
        width: 100%;
      }
      .sql {
        .ant-col-sm-8 {
          width: 10.5%;
@@ -65,10 +131,6 @@
      .add {
        padding-top: 4px;
      }
      .anticon-question-circle {
        color: #c49f47;
        margin-right: 3px;
      }
    }
    .custom-table .ant-empty {
      margin: 20px 8px!important;
@@ -80,8 +142,151 @@
    .operation-btn {
      display: inline-block;
      font-size: 16px;
      padding: 0 5px;
      padding: 0 3px;
      margin-right: 5px;
      cursor: pointer;
    }
    .columns-lowercase {
      float: right;
      position: relative;
      z-index: 2;
      right: 30px;
      height: 0px;
      top: -15px;
      color: orange;
      cursor: pointer;
    }
    .columns-out {
      float: right;
      position: relative;
      z-index: 2;
      right: 5px;
      height: 0px;
      top: -15px;
      color: rgb(24, 144, 255);
    }
    .columns-out + .modal-edit-table {
      .ant-table-thead {
        .copy-control {
          top: -18px;
          right: 55px;
          .anticon-copy {
            margin-right: 12px;
          }
          .anticon-delete {
            margin-left: 12px;
          }
        }
      }
    }
  }
  .full-scripts {
    position: absolute;
    right: 24px;
    top: 0px;
    font-size: 16px;
    color: #1890ff;
    z-index: 1;
  }
}
.model-custom-view-scripts-modal {
  .ant-modal {
    top: 30px;
    .ant-modal-header {
      padding: 10px 24px;
    }
    .ant-modal-footer {
      display: none;
    }
    .ant-modal-close {
      display: none;
    }
    .ant-modal-body {
      padding: 0;
      height: calc(100vh - 100px);
      overflow: hidden;
      display: flex;
      .script-table-wrap {
        width: 240px;
        overflow-y: auto;
        overflow-x: hidden;
        height: calc(100vh - 100px);
        .operation-btn {
          display: inline-block;
          font-size: 16px;
          padding: 0 5px;
          cursor: pointer;
          margin-left: 5px;
        }
        .script-item {
          border-bottom: 1px solid #eeeeee;
          padding: 15px 10px 5px;
        }
        .script-item.active {
          background-color: #bae7ff;
        }
        .script-item.edited {
          .ant-typography {
            color: #1890ff;
          }
        }
        .ant-typography {
          margin-bottom: 5px;
        }
      }
      .script-table-wrap::-webkit-scrollbar {
        width: 7px;
      }
      .script-table-wrap::-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);
      }
      .script-table-wrap::-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);
      }
      .unfull-scripts {
        position: absolute;
        right: 20px;
        z-index: 2;
        top: 10px;
        color: #1890ff;
        width: 26px;
        cursor: pointer;
        padding: 5px;
      }
      .script-button {
        position: absolute;
        top: 10px;
        z-index: 1;
        left: 240px;
        .ant-btn {
          height: 28px;
        }
        .mk-green {
          margin-left: 0!important;
          margin-right: 10px;
        }
      }
      .code-mirror-wrap {
        .CodeMirror {
          height: calc(100vh - 100px);
          border-radius: 0;
        }
        .code-mirror-area {
          border-radius: 0;
          width: calc(95vw - 240px);
        }
      }
    }
  }
}