improvement after review

This commit is contained in:
RaoHai 2016-07-05 11:00:52 +08:00
parent 1fd4837d25
commit 8e3d2b823a
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,6 @@ title: 自定义建议
Customize suggestions
````jsx
import { Mention } from 'antd';
const Nav = Mention.Nav;

View File

@ -10,6 +10,9 @@ export interface MentionProps {
onChange?: Function;
notFoundContent?: any;
loading?: Boolean;
style?: Object;
defaultValue?: string,
className?: string,
multiLines?: Boolean;
}
@ -66,7 +69,7 @@ export default class Mention extends React.Component<MentionProps, MentionState>
}
render() {
const { className, prefixCls, style, multiLines, defaultValue} = this.props;
const { className, prefixCls, style, multiLines, defaultValue } = this.props;
let { notFoundContent } = this.props;
const { suggestions, focus } = this.state;