index.less 4.35 KB
@import '~antd/es/style/themes/default.less';

.qx-list_asides {
  position: relative;
  display: flex;
  flex-direction: column;
  //width: 240px;
  min-height: 100%;
  max-height: 100%;
  //margin-right: 10px;
  background-color: #fff;
  border-right: 1px solid rgb(238, 238, 238);
  transition: width 0.3s;
  .ant-tree-node-selected {
    color: #1890ff !important;
    background-color: #e6f7ff !important;
  }
  .ant-tree-node-content-wrapper {
    &:hover {
      background-color: #e6f7ff !important;
    }
  }
  .show-relation-title {
    height: 100%;
    margin: 0 auto;
    padding-top: 10px;
    overflow: hidden;
    letter-spacing: 7px;
    writing-mode: vertical-rl; //从右往左排 vertical-lr是从左往右排//设置间距
  }
  .anticon {
    box-sizing: content-box;
    &:hover {
      color: @primary-color;
    }
  }
  .ant-btn-icon-only {
    width: 40px;
  }

  .ant-tree-treenode {
    .ant-tree-title {
      display: flex;
      align-items: center;
      // width: 176px;
      width: 200px;
      height: 40px;
    }
    .node-btn {
      width: 18px;
      text-align: right;
      .relation-drop-down {
        opacity: 0;
        &.ant-dropdown-open {
          opacity: 1;
          .relation-drop-down {
            opacity: 1;
          }
        }
      }
    }
    .node-dataset {
      width: calc(100% - 25px);
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    // .ant-tree-checkbox{
    //   width: 16px;
    //   display:inline-block;
    // }
    // .ant-tree-checkbox-inner{
    //   width: 16px;
    //   display: none;
    // }
    &:hover {
      .relation-drop-down {
        color: #1890ff;
        opacity: 1;
      }
      // .ant-tree-checkbox-inner{
      //   display: block;
      // }
      // .ant-tree-checkbox{
      //   display: block;
      // }
    }
    .ant-tree-node-selected {
      .relation-drop-down {
        color: #1890ff;
      }
    }
    // .ant-tree-checkbox-checked{
    //   .ant-tree-checkbox-inner{
    //     width: 16px;
    //     display: block;
    //   }
    // }
  }
  .ant-tree-switcher {
    width: 0;
  }
  // .no-data{
  //   margin:257px auto 0;
  //   text-align: center;
  //   button{
  //     width: 72px;
  //     height: 32px;
  //     text-align: center;
  //     padding: 4px 5px;
  //     margin-bottom: 9px;
  //   }
  //   .none{
  //     font-size: 14px;
  //     color: #999;
  //     letter-spacing: 0;
  //   }
  // }
  .relation-add-data {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    text-align: center;
    background-color: #fff;
    button {
      box-sizing: border-box;
      width: 70px;
      height: 28px;
      padding: 0;
      color: #3499ff;
      font-size: 14px;
      text-align: center;
      border: 1px solid #3499ff;
      border-radius: 14px;
    }
    .none {
      color: #999;
      font-size: 14px;
      letter-spacing: 0;
    }
  }
  .ant-empty {
    margin-top: 257px;
  }
}

.list-drop-down-item {
  // min-width: 82px !important;
  //padding: 0 10px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
  .ant-menu-item {
    height: 30px;
    margin: 0;
    padding: 0;
    line-height: 30px;
    text-align: center;
    svg {
      width: 13px;
      height: 13px;
    }
    button {
      width: 100%;
      height: 100%;
    }
  }
  .ant-menu-vertical {
    border: none;
  }
  .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
    background: #f9f7f7;
  }
  .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-active {
    background-color: #f9f7f7;
  }
  .ant-menu-vertical .ant-menu-item:not(:last-child) {
    margin-bottom: 1px;
  }
  .ant-dropdown-menu-item {
    padding: 2px 10px;
  }
}
.list-drop-down-menu {
  .ant-btn-link {
    color: #333 !important;
  }
}

.qx-list_aside_title {
  padding: 18px;
}

.qx-list_aside_body {
  flex: 1;
  min-height: 0;
  padding: 5px 12px 5px 16px;
  overflow: auto;

  .ant-tree {
    color: #555;
  }
}
.qx-list_aside_pad {
  padding-bottom: 52px;
}

.qx-org-tree__title {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
  background-color: rgb(243, 249, 255);
}

.ant-tree .ant-tree-node-content-wrapper:hover {
  background-color: rgb(243, 249, 255);
}