mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 05:29:37 +08:00
435 B
435 B
order | title |
---|---|
4 | 多行 |
zh-CN
多行模式,多行模式必须指定高度。
en-US
Multi lines mode.
import { Mention } from 'antd';
function onChange(value) {
console.log(value);
}
ReactDOM.render(
<Mention
style={{ width: '100%', height: 200 }}
onChange={onChange}
suggestions={['afc163', 'benjycui', 'yiminghe', 'jljsj33', 'dqaria', 'RaoHai']}
multiLines
/>,
mountNode
);