index.less 5.33 KB
.view-card {
  margin: 10px auto;
  max-width: 1000px;
  height: calc(100vh - 47px - 20px - 1px);
  overflow-y: auto;

  .ant-card-body {
    padding: 0;
  }
}

.fr-container .fr-content {
  .ant-table-body {
    > div {
      min-width: 100%;
      max-width: 100%;
    }
  }
}

.qx-rt-form {
  padding-bottom: 30px;

  .qx-virtualList {
    //margin-bottom: 25px;
    .ant-table-pagination.ant-pagination {
      margin: 16px 0 0;
    }
  }

  &.fr-container .fr-item-wrapper {
    min-height: 0;
  }

  .fr-field-object {
    .fr-item-wrapper {
      // min-height: 0;
    }
  }

  &.fr-container .fr-label-title {
    color: #666;
  }
}

.qx-fr-subform {
  .ant-table-cell-fix-right {
    white-space: nowrap;
  }
  // &.qx-fr-subform--nodragger{
  //   pointer-events: none;
  // }
}

.rel-more {
  &_title {
    width: 400px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; //溢出不换行
  }

  &_modal {
    &_full {
      width: 100vw !important;
      max-width: 100vw; // 覆盖.ant-modal中设置的max-width
      top: 0;
      padding-bottom: 0;

      .ant-modal-content {
        box-shadow: none;
        height: 100vh;
      }

      .ant-table-body {
        max-height: calc(100vh - 270px) !important;
      }
      .rel-more-form {
        max-height: calc(100vh - 120px);
        overflow: scroll;
      }
    }
    .ant-modal-body {
      padding: 0 0 12px 0;
    }

    .child-form {
      padding: 0 24px;

      .ant-table-selection-col {
        width: 42px; // 序号列的宽度  防止序号列被挤压变窄
      }
    }

    .rel-more-form {
      padding: 0 24px;
    }
  }
}

.runtime-single-modal {
  .ant-modal-body {
    max-height: 450px;
    overflow: auto;
    padding: 0; // 为了使分割线占
  }
}

// 最后一个容器的分割线需要铺满
.qx-rt-form-view {
  .fr-content-column .fr-item-wrapper {
    min-height: 0;
    // >.qx-fr-layout{
    //   border-bottom: 1px solid #eee;
    // }
    // &:last-of-type{
    //   >.qx-fr-layout{
    //     border-bottom: none;
    //   }
    // }
  }
  > .fr-field > .fr-content > .fr-item-wrapper > .w-100 > .flex-wrap {
    height: calc(100vh - 58px);
    flex-direction: column;
    flex-wrap: nowrap;
    > .fr-field {
      border-bottom: 1px solid #eee;
      &:last-of-type {
        flex-grow: 1;
        border-bottom: none;
      }
      > .fr-content {
        height: 100%;
        position: relative;
        > .fr-item-wrapper {
          height: 100%;
          align-items: flex-start;
          > .qx-fr-layout {
            height: 100%;
            .ant-tabs-nav {
              margin: 6px 0;
            }
          }
          .ant-tabs-nav {
            margin-top: 10px;
          }
        }
        > .error-message {
          position: absolute; // 为了使分栏布局分割线占整列
          width: 100%;
          bottom: 0;
          left: 0;
          padding: 6px 10px;
        }
      }
    }
  }
}
.qx-rt-form-view--detail {
  > .fr-field > .fr-content > .fr-item-wrapper > .w-100 > .flex-wrap {
    // height: calc(100vh - 44px - 47px - 15px) !important;>.fr-field{
    > .fr-field {
      border-bottom: 1px solid #eee;
      &:last-of-type {
        border-bottom: none;
      }
    }
  }
}

.qx-rt-form-view--page {
  > .fr-field > .fr-content > .fr-item-wrapper > .w-100 > .flex-wrap {
    height: calc(100vh - 48px - 20px) !important;
    > .fr-field {
      border-bottom: 1px solid #eee;
      &:last-of-type {
        border-bottom: none;
      }
    }
  }
}
.qx-rt-form-view--dialog {
  > .fr-field > .fr-content > .fr-item-wrapper > .w-100 > .flex-wrap {
    height: auto;
    //min-height: 450px;
  }
}

.ant-drawer-form {
  .ant-drawer-title {
    color: #000;
  }
}

// label样式
.qx-rt-form-edit,
.qx-rt-form-view {
  &.fr-container {
    .fr-label-title {
      color: #999;
    }
  }
}
.fr-generator-container .dnd-container.edit {
  .fr-label-title {
    color: #999;
  }
}
// 行样式
.qx-rt-form-edit,
.qx-rt-form-add {
  // >.fr-field >.fr-content >.fr-item-wrapper >.w-100 >.flex-wrap >.fr-field{
  //   margin-bottom: 10px;
  // }
  .fr-my-field {
    margin-bottom: 10px;
  }
}
.qx-rt-form-view {
  .fr-my-row {
    .fr-my-field {
      margin-bottom: 15px;
    }
    &:last-child {
      .fr-my-field {
        margin-bottom: 10px;
      }
    }
  }
}
// 表单样式
.qx-rt-form-edit,
.qx-rt-form-add,
.qx-rt-form-view {
  .qx-fr-input--readonly {
    background-color: unset;
    .qx-number_content {
      padding: 5px 0;
      flex: unset;
      width: 100%;
    }
    .qx-number_unit {
      padding: 0;
      background-color: unset;
    }
  }
}

.head-button-wrap {
  .qx-btn {
    max-width: 15em;
    overflow: hidden;
    display: flex;
    align-items: center;
    > span:last-child {
      flex-grow: 1;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
}
.runtime-form-spin {
  position: relative;
  width: 100%;
  height: 410px;
  .ant-spin-spinning {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
  }
}

// .relation-child-view{
//   .ant-drawer-content-wrapper .ant-drawer-body{
//     padding: 22px !important;
//   }
// }
.ant-drawer-form {
  .ant-drawer-content-wrapper {
    transition: 200ms;
  }
}
.qx-form-drawer-right-top-icon {
  font-size: 15px;
  width: 24px;

  &:hover {
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
  }
}