You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
order: 4
|
|
|
|
title: 多行
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
多行模式,多行模式必须指定高度。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Multi lines mode.
|
|
|
|
|
|
|
|
````jsx
|
|
|
|
import { Mention } from 'antd';
|
|
|
|
const { toString } = Mention;
|
|
|
|
|
|
|
|
function onChange(editorState) {
|
|
|
|
console.log(toString(editorState));
|
|
|
|
}
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<Mention
|
|
|
|
style={{ width: '100%', height: 200 }}
|
|
|
|
onChange={onChange}
|
|
|
|
suggestions={['afc163', 'benjycui', 'yiminghe', 'jljsj33', 'dqaria', 'RaoHai']}
|
|
|
|
multiLines
|
|
|
|
/>,
|
|
|
|
mountNode
|
|
|
|
);
|
|
|
|
````
|