Skip to content

Commit

Permalink
docs(typo): Specify valid values for select#nzNotFoundContent (NG-ZOR…
Browse files Browse the repository at this point in the history
  • Loading branch information
CygnusRoboticus authored and Ricbet committed Apr 9, 2020
1 parent 8066ce2 commit 1fd6168
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions components/select/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { NzSelectModule } from 'ng-zorro-antd';
| -------- | ----------- | ---- | ------- |
| `[ngModel]` | Current selected nz-option value, double binding. | `any|any[]` | - |
| `[compareWith]` | Same as [SelectControlValueAccessor](https://angular.io/api/forms/SelectControlValueAccessor#caveat-option-selection) | `(o1: any, o2: any) => boolean` | `(o1: any, o2: any) => o1===o2` |
| `[nzAutoClearSearchValue]` | Whether the current search will be cleared on selecting an item. Only applies when `mode` is set to `multiple` or `tags`. | boolean | `true` |
| `[nzAutoClearSearchValue]` | Whether the current search will be cleared on selecting an item. Only applies when `mode` is set to `multiple` or `tags`. | `boolean` | `true` |
| `[nzAllowClear]` | Show clear button. | `boolean` | `false` |
| `[nzOpen]` | dropdown expand state, double binding | `boolean` | `false` |
| `[nzAutoFocus]` | Get focus by default | `boolean` | `false` |
Expand All @@ -45,19 +45,19 @@ import { NzSelectModule } from 'ng-zorro-antd';
| `[nzFilterOption]` | Filter options against it. The function will receive two arguments, `inputValue` and `option`, if the function returns `true`, the option will be included in the filtered set; Otherwise, it will be excluded. | `(input?: string, option?: NzOptionComponent) => boolean;` | - |
| `[nzMaxMultipleCount]` | Max selected option can be selected | `number` | `Infinity` |
| `[nzMode]` | Set mode of Select | `'multiple'|'tags'|'default'` | `'default'` |
| `[nzNotFoundContent]` | Specify content to show when no result matches.. | `string` | `'Not Found'` |
| `[nzNotFoundContent]` | Specify content to show when no result matches.. | `string | TemplateRef<void>` | `'Not Found'` |
| `[nzPlaceHolder]` | Placeholder of select | `string` | - |
| `[nzShowArrow]` | Whether to show the drop-down arrow | boolean | `true` |
| `[nzShowArrow]` | Whether to show the drop-down arrow | `boolean` | `true` |
| `[nzShowSearch]` | Whether show search input in single mode. | `boolean` | `false` |
| `[nzSize]` | Size of Select input | `'large'|'small'|'default'` | `'default'` |
| `[nzSuffixIcon]` | The custom suffix icon | `TemplateRef<void>` | - |
| `[nzRemoveIcon]` | The custom remove icon | `TemplateRef<void>` | - |
| `[nzClearIcon]` | The custom clear icon | `TemplateRef<void>` | - |
| `[nzMenuItemSelectedIcon]` | The custom menuItemSelected icon | `TemplateRef<void>` | - |
| `[nzTokenSeparators]` | Separator used to tokenize on tag/multiple mode | `string[]` | `[]` |
| `[nzLoading]` | indicate loading state | boolean | false |
| `[nzMaxTagCount]` | Max tag count to show| number | - |
| `[nzMaxTagPlaceholder]` | Placeholder for not showing tags | TemplateRef<{ $implicit: any[] }> | - |
| `[nzLoading]` | indicate loading state | `boolean` | false |
| `[nzMaxTagCount]` | Max tag count to show| `number` | - |
| `[nzMaxTagPlaceholder]` | Placeholder for not showing tags | `TemplateRef<{ $implicit: any[] }>` | - |
| `(ngModelChange)` | Current selected nz-option value change callback. | `EventEmitter<any[]>` | - |
| `(nzOpenChange)` | dropdown expand change callback | `EventEmitter<boolean>` | `false` |
| `(nzScrollToBottom)` | Called when dropdown scrolls to bottom | `EventEmitter<void>` | - |
Expand Down
12 changes: 6 additions & 6 deletions components/select/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ import { NzSelectModule } from 'ng-zorro-antd';
| `[nzFilterOption]` | 是否根据输入项进行筛选。当其为一个函数时,会接收 `inputValue` `option` 两个参数,当 `option` 符合筛选条件时,应返回 `true`,反之则返回 `false`| `(input?: string, option?: NzOptionComponent) => boolean;` | - |
| `[nzMaxMultipleCount]` | 最多选中多少个标签| `number` | `Infinity` |
| `[nzMode]` | 设置 nz-select 的模式 | `'multiple'|'tags'|'default'` | `'default'` |
| `[nzNotFoundContent]` | 当下拉列表为空时显示的内容 | `string` | - |
| `[nzNotFoundContent]` | 当下拉列表为空时显示的内容 | `string \| TemplateRef<void>` | - |
| `[nzPlaceHolder]` | 选择框默认文字 | `string` | - |
| `[nzShowArrow]` | 是否显示下拉小箭头 | boolean | `true` |
| `[nzShowArrow]` | 是否显示下拉小箭头 | `boolean` | `true` |
| `[nzShowSearch]` | 使单选模式可搜索 | `boolean` | `false` |
| `[nzSize]` | 选择框大小 | `'large'|'small'|'default'` | `'default'` |
| `[nzSuffixIcon]` | 自定义的选择框后缀图标 | `TemplateRef<void>` | - |
| `[nzRemoveIcon]` | 自定义的多选框清除图标 | `TemplateRef<void>` | - |
| `[nzClearIcon]` | 自定义的多选框清空图标 | `TemplateRef<void>` | - |
| `[nzMenuItemSelectedIcon]` | 自定义当前选中的条目图标 | `TemplateRef<void>` | - |
| `[nzTokenSeparators]` | 在 tags 和 multiple 模式下自动分词的分隔符 | `string[]` | `[]` |
| `[nzLoading]` | 加载中状态 | boolean | `false` |
| `[nzMaxTagCount]` | 最多显示多少个 tag | number | - |
| `[nzMaxTagPlaceholder]` | 隐藏 tag 时显示的内容 | TemplateRef<{ $implicit: any[] }> | - |
| `[nzLoading]` | 加载中状态 | `boolean` | `false` |
| `[nzMaxTagCount]` | 最多显示多少个 tag | `number` | - |
| `[nzMaxTagPlaceholder]` | 隐藏 tag 时显示的内容 | `TemplateRef<{ $implicit: any[] }>` | - |
| `(ngModelChange)` | 选中的 nz-option 发生变化时,调用此函数 | `EventEmitter<any[]>` | - |
| `(nzOpenChange)` | 下拉菜单打开状态变化回调 | `EventEmitter<boolean>` | - |
| `(nzScrollToBottom)` | 下拉列表滚动到底部的回调 | `EventEmitter<void>` | - |
Expand All @@ -72,7 +72,7 @@ import { NzSelectModule } from 'ng-zorro-antd';
| --- | --- | --- | --- |
| `[nzDisabled]` | 是否禁用 | `boolean` | `false` |
| `[nzLabel]` | 选中该 nz-option 后,nz-select 中显示的文字 | `string` | - |
| `[nzValue]` | nz-select 中 ngModel 的值 | `any ` | - |
| `[nzValue]` | nz-select 中 ngModel 的值 | `any` | - |
| `[nzCustomContent]` | 是否自定义在下拉菜单中的Template内容,当为 true 时,nz-option 包裹的内容将直接渲染在下拉菜单中 | `boolean` | `false` |

### nz-option-group
Expand Down

0 comments on commit 1fd6168

Please sign in to comment.