docs(mentions): fix notFoundContent props type definition (#5461)

pull/5469/head
bqy_fe 2022-04-09 09:42:53 +08:00 committed by GitHub
parent c9eb20f24b
commit 9b554c9295
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ When you need to mention someone or something.
| defaultValue | Default value | string | |
| filterOption | Customize filter option logic | false \| (input: string, option: OptionProps) => boolean | |
| getPopupContainer | Set the mount HTML node for suggestions | () => HTMLElement | |
| notFoundContent | Set mentions content when not match | ReactNode | 'Not Found' |
| notFoundContent | Set mentions content when not match | string \| slot | 'Not Found' |
| placement | Set popup placement | `top` \| `bottom` | `bottom` |
| prefix | Set trigger prefix keyword | string \| string\[] | '@' |
| split | Set split string before and after selected mention | string | ' ' |

View File

@ -22,7 +22,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/jPE-itMFM/Mentions.svg
| defaultValue | 默认值 | string | |
| filterOption | 自定义过滤逻辑 | false \| (input: string, option: OptionProps) => boolean | |
| getPopupContainer | 指定建议框挂载的 HTML 节点 | () => HTMLElement | |
| notFoundContent | 当下拉列表为空时显示的内容 | ReactNode | 'Not Found' |
| notFoundContent | 当下拉列表为空时显示的内容 | string \| slot | 'Not Found' |
| placement | 弹出层展示位置 | `top` \| `bottom` | `bottom` |
| prefix | 设置触发关键字 | string \| string\[] | '@' |
| split | 设置选中项前后分隔符 | string | ' ' |