📝 Update Mentions doc

This commit is contained in:
偏右 2019-09-02 15:25:11 +08:00 committed by GitHub
parent 61e319b668
commit 30b1dedaa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,22 +15,13 @@ title: Mentions
## API ## API
```jsx
<Mention
onChange={onChange}
suggestions={['afc163', 'benjycui', 'yiminghe', 'jljsj33', 'dqaria', 'RaoHai']}
/>
```
## API
```jsx ```jsx
<Mentions onChange={onChange}> <Mentions onChange={onChange}>
<Mentions.Option value="sample">Sample</Mentions.Option> <Mentions.Option value="sample">Sample</Mentions.Option>
</Mentions> </Mentions>
``` ```
### Mention ### Mentions
| 参数 | 说明 | 类型 | 默认值 | 版本 | | 参数 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- | | --- | --- | --- | --- | --- |
@ -50,7 +41,7 @@ title: Mentions
| onBlur | 失去焦点时触发 | () => void | - | 3.19.0 | | onBlur | 失去焦点时触发 | () => void | - | 3.19.0 |
| getPopupContainer | 指定建议框挂载的 HTML 节点 | () => HTMLElement | - | 3.22.0 | | getPopupContainer | 指定建议框挂载的 HTML 节点 | () => HTMLElement | - | 3.22.0 |
### Mention 方法 ### Mentions 方法
| 名称 | 描述 | 版本 | | 名称 | 描述 | 版本 |
| ------- | -------- | ------ | | ------- | -------- | ------ |