ant-design/components/mention/demo/multilines.md
陆离 05c6d09eab docs: add controllerd sample (#3504)
* add controllerd sample

* lint
2016-10-20 13:51:44 +08:00

33 lines
516 B
Markdown

---
order: 5
title:
zh-CN: 多行
en-US: Multi-lines Mode
---
## 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: 500, height: 100 }}
onChange={onChange}
suggestions={['afc163', 'benjycui', 'yiminghe', 'jljsj33', 'dqaria', 'RaoHai']}
multiLines
/>
, mountNode);
````