king
2025-05-08 b6c698c8833836971184a0a9c2645a15f8174d37
src/menu/components/search/main-search/index.scss
@@ -2,7 +2,17 @@
  min-height: 50px;
  position: relative;
  background: #ffffff;
  padding-bottom: 15px;
  .ant-form-item-control {
    line-height: 1.5;
  }
  >.ant-switch {
    position: absolute;
    z-index: 3;
    right: 10px;
    bottom: 5px;
  }
  >.anticon-tool {
    position: absolute;
    z-index: 3;
@@ -15,9 +25,14 @@
  }
  > .ant-row {
    min-height: 65px;
    > .ant-col {
      padding: 0 12px!important;
    }
  }
  .ant-row .ant-col-6 {
    padding: 0 12px!important;
  .mk-search-item-wrap {
    display: inline-block;
    float: none;
    vertical-align: top;
  }
  .ant-row.ant-form-item .ant-col {
    padding: 0;
@@ -27,23 +42,13 @@
    border-radius: 2px;
    padding-bottom: 15px;
    .ant-form-item {
      cursor: move;
      display: flex;
      position: relative;
      margin-bottom: 0px;
      .ant-form-item-label {
        height: 40px;
        label {
          width: 100%;
          cursor: move;
          overflow: hidden;
          display: inline-block;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
        float: left;
      }
      .ant-form-item-control-wrapper {
        position: relative;
        flex: 1 1;
        float: left;
        .ant-select {
          width: 100%;
          margin-top: 4px;
@@ -56,55 +61,148 @@
          font-size: 13px;
        }
      }
      .ant-form-item-control-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0;
        z-index: 2;
      }
    }
    .ant-form-item::after {
      display: block;
      content: ' ';
      clear: both;
    }
    >div::after {
      display: block;
      content: ' ';
      position: absolute;
      cursor: move;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      opacity: 0;
      z-index: 2;
    }
  }
  .page-card.false {
  .page-card.label-hide {
    .ant-form-item-label {
      display: none;
    }
    .ant-form-item-control-wrapper {
      width: 100%;
    }
  }
  .page-card:hover {
    .edit {
  label[title=" "]::after, label[title="  "]::after {
    display: none;
  }
  .page-card.advanced {
    .ant-form-item-label label {
      color: orange;
    }
  }
  .page-card.range {
    .ant-form-item-control-wrapper {
      .ant-form-item-control {
        .ant-form-item-children {
          display: flex;
          line-height: 40px;
          .ant-input:first-child {
            margin-right: 5px;
          }
          .ant-input:last-child {
            margin-left: 5px;
          }
        }
      }
    }
  }
  .page-card.no-query {
    .ant-form-explain {
      color: #13c2c2;
    }
  }
  .mk-search-item-wrap.action {
    .ant-form-item {
      white-space: nowrap;
    }
    .ant-form-item-label, .ant-form-item-control-wrapper {
      display: inline-block;
    }
  }
  .mk-search-item-wrap.action.hide-button {
    display: none;
  }
  .ant-calendar-picker {
    min-width: 100px!important;
    width: 100%;
  }
  .check-card-edit-box {
    margin-top: 5px!important;
  }
  .quickly-add {
    position: absolute;
    z-index: 3;
    right: 55px;
    bottom: 3px;
    .ant-btn-block {
      background-color: transparent;
      color: #1890ff;
      border: none;
      box-shadow: none!important;
      height: 18px;
      padding: 0 10px;
    }
  }
}
.main-search-edit-list.right {
  >.ant-row {
    >.ant-col {
      float: right;
    }
    >.ant-col.action {
      display: none;
    text-align: right;
  }
}
.main-search-edit-list.mk-order-small {
  .page-card {
    height: 45px;
  }
  .mk-search-item-wrap.action {
    .ant-form-item {
      height: 45px!important;
    }
  }
}
.main-search-edit-list.false {
  >.ant-row {
    >.ant-col.action {
      display: none;
.main-search-edit-list.mk-order-updown {
  .mk-search-item-wrap {
    .page-card {
      height: auto;
    }
    .ant-form-item {
      display: block;
      .ant-form-item-label {
        display: block;
        width: 100% !important;
        text-align: left;
        float: none;
        line-height: 2;
        height: 24px;
      }
      .ant-form-item-control-wrapper {
        display: block;
        width: 100% !important;
        float: none;
      }
    }
  }
}
.main-search-edit-list:not(.show-field) {
  .ant-form-explain {
    display: none;
  }
}
.main-search-edit-list::after {
  display: block;
  content: ' ';
  clear: both;
}
.main-search-edit-list:hover {
  box-shadow: 0px 0px 2px #e8e8e8;
  z-index: 1;
  box-shadow: 0px 0px 4px #1890ff;
}