Skip to content

Commit 9b554c9

Browse files
authored
docs(mentions): fix notFoundContent props type definition (#5461)
1 parent c9eb20f commit 9b554c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/mentions/index.en-US.md

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

components/mentions/index.zh-CN.md

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

0 commit comments

Comments
 (0)