mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-19 06:43:16 +08:00
Strengthen Mention Component typings
This commit is contained in:
parent
2756d587d7
commit
b4e0c48ed5
@ -10,20 +10,21 @@ export interface MentionProps {
|
||||
prefixCls?: string;
|
||||
suggestionStyle?: React.CSSProperties;
|
||||
suggestions?: Array<any>;
|
||||
onSearchChange?: Function;
|
||||
onChange?: Function;
|
||||
onSearchChange?: (value: string, trigger: string) => any;
|
||||
onChange?: (contentState: any) => any;
|
||||
notFoundContent?: any;
|
||||
loading?: Boolean;
|
||||
loading?: boolean;
|
||||
style?: React.CSSProperties;
|
||||
defaultValue?: any;
|
||||
value?: any;
|
||||
className?: string;
|
||||
multiLines?: Boolean;
|
||||
prefix?: string;
|
||||
multiLines?: boolean;
|
||||
prefix?: string | string[];
|
||||
placeholder?: string;
|
||||
getSuggestionContainer?: (triggerNode: Element) => HTMLElement;
|
||||
onFocus?: React.FocusEventHandler<HTMLElement>;
|
||||
onBlur?: React.FocusEventHandler<HTMLElement>;
|
||||
onSelect?: (suggestion: string, data?: any) => any;
|
||||
readOnly?: boolean;
|
||||
disabled?: boolean;
|
||||
placement?: MentionPlacement;
|
||||
|
Loading…
Reference in New Issue
Block a user