TreeSelect

A Select whose options are a tree: the field opens a hierarchy rather than a flat list, with checkable nodes for multiple values.

Anotomy

Structure of the tree select and how its internal parts are composed. These are its semantic parts, so they are also what the classNames and styles objects accept. The popup's parts go in a nested popup object. The clear button from allowClear has no key of its own.

Single

TreeSelect anotomy in single mode
NameDescription
1rootThe field's box: border, background, radius and padding. variant, size and status change it here.
2prefixThe node from prefix, before the selection.
3placeholderThe placeholder text, shown while nothing is chosen.
4suffixThe arrow at the end. suffixIcon replaces it.
5popup.rootThe dropdown panel holding the tree. It is portalled to <body>, so these keys are how you reach it.
6popup.itemOne row of the tree, from a node in treeData.
7popup.itemSwitcherThe caret that opens and closes a node with children. switcherIcon replaces it.
8popup.itemTitleA row's label, from the node's title.

Multiple

With multiple or treeCheckable set, each chosen node becomes a tag with its own three parts.
TreeSelect anotomy in multiple mode
NameDescription
1rootThe field's box. It grows in height when the tags wrap.
2prefixThe node from prefix, before the tags.
3contentThe area that holds the tags and the search input.
4itemOne tag for a chosen node. maxTagCount folds the rest into a "+N" tag.
5itemContentA tag's label.
6itemRemoveA tag's remove button.
7suffixThe arrow at the end, or a search glyph while the popup is open.
8popup.rootThe dropdown panel.
9popup.itemOne row of the tree. The chosen rows are highlighted. With treeCheckable each row gets a checkbox instead.
10popup.itemTitleA row's label.
11popup.itemSwitcherThe caret that opens and closes a node with children.