TreeSelect.less 624 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
.treeSelect {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;

  .dropBox {
    position: absolute;
    top: 40px;
    width: 100%;
    padding: 10px;
    min-height: 50px;
    max-height: 300px;

    background-color: #fff;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    z-index: 10;

    overflow-y: scroll;
    overflow-x: hidden;

    .treeLine {
      display: flex;
      align-items: center;
    }

    :global {
      .ant-tree-treenode {
        width: 100%;
      }

      .ant-tree-node-content-wrapper {
        display: flex;
      }
    }
  }
}