diff --git a/components/tree-select/doc/index.en-US.md b/components/tree-select/doc/index.en-US.md index 41ff16ee5de..3afdf9f6352 100755 --- a/components/tree-select/doc/index.en-US.md +++ b/components/tree-select/doc/index.en-US.md @@ -34,6 +34,7 @@ import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select'; | `[nzDropdownMatchSelectWidth]` | Determine whether the dropdown menu and the select input are the same width | `boolean` | `true` | | `[nzDropdownStyle]` | To set the style of the dropdown menu | `object` | - | | `[nzMultiple]` | Support multiple or not, will be `true` when enable `nzCheckable`. | `boolean` | `false` | +| `[nzHideUnMatched]` | Hide unmatched nodes while searching | `boolean` | `false` | | `[nzSize]` | To set the size of the select input | `'large' \| 'small' \| 'default'` | `'default'` | | `[nzCheckable]` | Whether to show checkbox on the treeNodes | `boolean` | `false` | | `[nzShowExpand]` | Show a Expand Icon before the treeNodes | `boolean` | `true` | diff --git a/components/tree-select/doc/index.zh-CN.md b/components/tree-select/doc/index.zh-CN.md index 501218d4e76..83879cae86c 100755 --- a/components/tree-select/doc/index.zh-CN.md +++ b/components/tree-select/doc/index.zh-CN.md @@ -34,6 +34,7 @@ import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select'; | `[nzDropdownMatchSelectWidth]` | 下拉菜单和选择器同宽 | `boolean` | `true` | | `[nzDropdownStyle]` | 下拉菜单的样式 | `{ [key: string]: string; }` | - | | `[nzMultiple]` | 支持多选(当设置 nzCheckable 时自动变为true) | `boolean` | `false` | +| `[nzHideUnMatched]` | 搜索隐藏未匹配的节点 | `boolean` | `false` | | `[nzSize]` | 选择框大小 | `'large' \| 'small' \| 'default'` | `'default'` | | `[nzCheckable]` | 节点前添加 Checkbox 复选框 | `boolean` | `false` | | `[nzShowExpand]` | 节点前添加展开图标 | `boolean` | `true` | diff --git a/components/tree-select/nz-tree-select.component.html b/components/tree-select/nz-tree-select.component.html index f8791934022..8b9b570d482 100644 --- a/components/tree-select/nz-tree-select.component.html +++ b/components/tree-select/nz-tree-select.component.html @@ -38,6 +38,7 @@ [nzData]="nzNodes" [nzMultiple]="nzMultiple" [nzSearchValue]="inputValue" + [nzHideUnMatched]="nzHideUnMatched" [nzShowIcon]="nzShowIcon" [nzCheckable]="nzCheckable" [nzAsyncData]="nzAsyncData" diff --git a/components/tree-select/nz-tree-select.component.ts b/components/tree-select/nz-tree-select.component.ts index 6eb068b6f8d..5bc6e30f154 100644 --- a/components/tree-select/nz-tree-select.component.ts +++ b/components/tree-select/nz-tree-select.component.ts @@ -103,6 +103,7 @@ export class NzTreeSelectComponent extends NzTreeBase implements ControlValueAcc @Input() @InputBoolean() nzShowLine = false; @Input() @InputBoolean() nzDropdownMatchSelectWidth = true; @Input() @InputBoolean() nzCheckable = false; + @Input() @InputBoolean() nzHideUnMatched = false; @Input() @InputBoolean() nzShowIcon = false; @Input() @InputBoolean() nzShowSearch = false; @Input() @InputBoolean() nzDisabled = false;