diff --git a/components/mention/demo/customTag.md b/components/mention/demo/customTag.md index de9efd0a48..fe59adc88d 100644 --- a/components/mention/demo/customTag.md +++ b/components/mention/demo/customTag.md @@ -14,7 +14,6 @@ title: 自定义建议 Customize suggestions ````jsx - import { Mention } from 'antd'; const Nav = Mention.Nav; diff --git a/components/mention/index.tsx b/components/mention/index.tsx index 369f180b92..2c769b4663 100644 --- a/components/mention/index.tsx +++ b/components/mention/index.tsx @@ -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 } 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;