diff --git a/components/tree-select/demo/async.vue b/components/tree-select/demo/async.vue index 9f9e311d0..c3bba6ec3 100644 --- a/components/tree-select/demo/async.vue +++ b/components/tree-select/demo/async.vue @@ -58,7 +58,11 @@ export default defineComponent({ return new Promise(resolve => { const { id } = treeNode.dataRef; setTimeout(() => { - treeData.value = treeData.value.concat([genTreeNode(id, false), genTreeNode(id, true)]); + treeData.value = treeData.value.concat([ + genTreeNode(id, false), + genTreeNode(id, true), + genTreeNode(id, true), + ]); console.log(treeData.value); resolve(true); }, 300); diff --git a/components/tree-select/index.en-US.md b/components/tree-select/index.en-US.md index 9b7961410..67bf2ffb4 100644 --- a/components/tree-select/index.en-US.md +++ b/components/tree-select/index.en-US.md @@ -54,6 +54,8 @@ Tree selection control. | value(v-model) | To set the current selected treeNode(s). | string\|string\[] | - | | | virtual | Disable virtual scroll when set to false | boolean | true | 3.0 | | title | custom title | slot | | 3.0.0 | +| notFoundContent | Specify content to show when no result matches | slot | `Not Found` | | +| tagRender | Customize tag render when `multiple` | (props) => slot | - | 3.0 | ### Events diff --git a/components/tree-select/index.tsx b/components/tree-select/index.tsx index 3605b4e87..abeaa82de 100644 --- a/components/tree-select/index.tsx +++ b/components/tree-select/index.tsx @@ -97,7 +97,7 @@ const TreeSelect = defineComponent({ devWarning( props.multiple !== false || !props.treeCheckable, 'TreeSelect', - '`multiple` will alway be `true` when `treeCheckable` is true', + '`multiple` will always be `true` when `treeCheckable` is true', ); devWarning( props.replaceFields === undefined, @@ -234,6 +234,7 @@ const TreeSelect = defineComponent({ class={mergedClassName} listHeight={listHeight} listItemHeight={listItemHeight} + treeLine={!!treeLine} inputIcon={suffixIcon} multiple={multiple} removeIcon={removeIcon} diff --git a/components/tree-select/index.zh-CN.md b/components/tree-select/index.zh-CN.md index 7c8b929b6..f3beffde8 100644 --- a/components/tree-select/index.zh-CN.md +++ b/components/tree-select/index.zh-CN.md @@ -55,6 +55,8 @@ cover: https://gw.alipayobjects.com/zos/alicdn/Ax4DA0njr/TreeSelect.svg | value(v-model) | 指定当前选中的条目 | string/string\[] | - | | | virtual | 设置 false 时关闭虚拟滚动 | boolean | true | 3.0 | | title | 自定义标题 | slot | | 3.0.0 | +| notFoundContent | 当下拉列表为空时显示的内容 | slot | `Not Found` | | +| tagRender | 自定义 tag 内容,多选时生效 | slot | - | 3.0 | ### 事件