.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; } } } }