mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-13 17:05:47 +08:00
94 lines
1.8 KiB
Markdown
94 lines
1.8 KiB
Markdown
|
---
|
||
|
title: TreeSelect
|
||
|
lang: en-US
|
||
|
---
|
||
|
|
||
|
# TreeSelect
|
||
|
|
||
|
The tree selector of the dropdown menu,
|
||
|
it combines the functions of components `el-tree` and `el-select`.
|
||
|
|
||
|
## Basic usage
|
||
|
|
||
|
Selector for tree structures.
|
||
|
|
||
|
:::demo
|
||
|
|
||
|
tree-select/basic
|
||
|
|
||
|
:::
|
||
|
|
||
|
## Select any level
|
||
|
|
||
|
When using the `check-strictly=true` attribute, any node can be checked,
|
||
|
otherwise only leaf nodes are supported.
|
||
|
|
||
|
:::demo
|
||
|
|
||
|
tree-select/check-strictly
|
||
|
|
||
|
:::
|
||
|
|
||
|
## Multiple Selection
|
||
|
|
||
|
Multiple selection using clicks or checkbox.
|
||
|
|
||
|
:::demo
|
||
|
|
||
|
tree-select/multiple
|
||
|
|
||
|
:::
|
||
|
|
||
|
## Disabled Selection
|
||
|
|
||
|
Disable options using the disabled field.
|
||
|
|
||
|
:::demo
|
||
|
|
||
|
tree-select/disabled
|
||
|
|
||
|
:::
|
||
|
|
||
|
## Filterable
|
||
|
|
||
|
Use keyword filtering or custom filtering methods.
|
||
|
`filterMethod` can custom filter method for data,
|
||
|
`filterNodeMethod` can custom filter method for data node.
|
||
|
|
||
|
:::demo
|
||
|
|
||
|
tree-select/filterable
|
||
|
|
||
|
:::
|
||
|
|
||
|
## Custom content
|
||
|
|
||
|
Contents of custom tree nodes.
|
||
|
|
||
|
:::demo
|
||
|
|
||
|
tree-select/slots
|
||
|
|
||
|
:::
|
||
|
|
||
|
## LazyLoad
|
||
|
|
||
|
Lazy loading of tree nodes, suitable for large data lists.
|
||
|
|
||
|
:::demo
|
||
|
|
||
|
tree-select/lazy
|
||
|
|
||
|
:::
|
||
|
|
||
|
## Attributes
|
||
|
|
||
|
Since this component combines the functions of components `el-tree` and `el-select`,
|
||
|
the original properties have not been changed, so no repetition here,
|
||
|
and please go to the original component to view the documentation.
|
||
|
|
||
|
| Attributes | Methods | Events | Slots |
|
||
|
| --------------------------------------- | ----------------------------- | ----------------------------------- | ---------------------------------- |
|
||
|
| [tree](./tree.md#attributes) | [tree](./tree.md#method) | [tree](./tree.md#events) | [tree](./tree.md#slots) |
|
||
|
| [select](./select.md#select-attributes) | [select](./select.md#methods) | [select](./select.md#select-events) | [select](./select.md#select-slots) |
|