mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 12:38:58 +08:00
improvement after review
This commit is contained in:
parent
1fd4837d25
commit
8e3d2b823a
@ -14,7 +14,6 @@ title: 自定义建议
|
||||
Customize suggestions
|
||||
|
||||
````jsx
|
||||
|
||||
import { Mention } from 'antd';
|
||||
const Nav = Mention.Nav;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user