index.less 1.47 KB
.commonPartsInfo {
  width: 100%;
  height: 65vh;
  display: flex;
  background-color: #f9f9f9;

  :global {
    .leftTree {
      flex: 0 0 250px;
      background-color: #f5f5f5;

      .ant-tree {
        width: 100%;
        height: 100%;
        background-color: transparent;
        overflow: auto;
      }

      .ant-tree-show-line .ant-tree-switcher {
        background-color: transparent;
      }
    }

    .rightContent {
      flex: 1;
      padding-left: 10px;

      @media print {
        overflow: auto;
      }

      .ant-divider {
        margin-top: 0;
        margin-bottom: 0;
        color: #000000;
        display: none;

        &::before,
        &::after {
          border-color: rgba(0, 0, 0, 0.2);
        }
      }

      >div {
        height: 100%;

        @media print {
          height: auto;
        }
      }

      .ant-tabs {
        height: 100%;
      }

      .ant-tabs-tabpane {
        width: 100%;
        height: 100%;
        overflow: auto;
        overflow-x: hidden;

        .tabPaneComponent {

          >div {
            overflow-y: hidden !important;
          }
        }
      }
    }
  }
}

.xlyPrintHide {
  display: block;

  @media print {
    display: none;
  }
}

.xlyPrintShow {
  display: none;

  @media print {
    display: block;
  }
}

@media print {

  html,
  body {
    height: initial !important;
    overflow: initial !important;
    -webkit-print-color-adjust: exact;
  }

  @page {
    margin: 0mm 10mm 0mm 10mm;
  }
}