You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
369 B
Markdown
31 lines
369 B
Markdown
9 years ago
|
---
|
||
|
order: 0
|
||
|
title: 基本使用
|
||
|
---
|
||
|
|
||
|
## zh-CN
|
||
|
|
||
|
基本使用
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
Basic usage.
|
||
|
|
||
|
````jsx
|
||
|
|
||
|
import { Mention } from 'antd';
|
||
|
|
||
|
function onChange(value) {
|
||
|
console.log(value);
|
||
|
}
|
||
|
|
||
|
ReactDOM.render(
|
||
|
<Mention
|
||
|
onChange={onChange}
|
||
|
defaultValue="@afc163"
|
||
|
suggestions={['afc163', 'benjycui', 'yiminghe', 'jljsj33', 'dqaria', 'RaoHai']}
|
||
|
/>,
|
||
|
mountNode
|
||
|
);
|
||
|
````
|