Skip to content

Commit

Permalink
docs(components): [tree-select] use new display tag
Browse files Browse the repository at this point in the history
  • Loading branch information
wzc520pyfm committed Apr 29, 2023
1 parent fb1117a commit e1d5500
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/en-US/component/tree-select.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ tree-select/lazy

:::

## Attributes
## API

### 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,
Expand All @@ -106,8 +108,8 @@ and please go to the original component to view the documentation.
| [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) |

### Own Attributes
#### Own Attributes

| Name | Description | Type | Accepted Values | Default |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------- | ----- | --------------- | ------- |
| cacheData **(\> 2.2.26)** | The cached data of the lazy node, the structure is the same as the data, used to get the label of the unloaded data | array | | |
| Name | Description | Type | Default |
| ------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------ | ------- |
| cacheData ^(2.2.26) | The cached data of the lazy node, the structure is the same as the data, used to get the label of the unloaded data | ^[object]`CacheOption[]` | [] |
3 changes: 3 additions & 0 deletions packages/components/tree-select/src/tree-select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export default defineComponent({
props: {
...ElSelect.props,
...ElTree.props,
/**
* @description The cached data of the lazy node, the structure is the same as the data, used to get the label of the unloaded data
*/
cacheData: {
type: Array,
default: () => [],
Expand Down

0 comments on commit e1d5500

Please sign in to comment.