UNPKG

dtd

Version:

根据数梦工场视觉规范打造的组件库,感谢react-components和ant design

53 lines (52 loc) 1.71 kB
import * as React from 'react'; export declare type MentionPlacement = 'top' | 'bottom'; export interface MentionProps { prefixCls?: string; suggestionStyle?: React.CSSProperties; suggestions?: Array<any>; onSearchChange?: Function; onChange?: Function; notFoundContent?: any; loading?: Boolean; style?: React.CSSProperties; defaultValue?: any; value?: any; className?: string; multiLines?: Boolean; prefix?: string; placeholder?: string; getSuggestionContainer?: (triggerNode: Element) => HTMLElement; onFocus?: React.FocusEventHandler<HTMLElement>; onBlur?: React.FocusEventHandler<HTMLElement>; readOnly?: boolean; disabled?: boolean; placement?: MentionPlacement; } export interface MentionState { suggestions?: Array<any>; focus?: Boolean; } export default class Mention extends React.Component<MentionProps, MentionState> { static getMentions: any; static defaultProps: { prefixCls: string; notFoundContent: string; loading: boolean; multiLines: boolean; placement: string; }; static Nav: any; static toString: any; static toContentState: any; private mentionEle; constructor(props: MentionProps); componentWillReceiveProps(nextProps: MentionProps): void; onSearchChange: (value: string, prefix: string) => any; onChange: (editorState: any) => void; defaultSearchChange(value: String): void; onFocus: (ev: React.FocusEvent<HTMLElement>) => void; onBlur: (ev: React.FocusEvent<HTMLElement>) => void; focus: (ev: React.FocusEvent<HTMLElement>) => void; mentionRef: (ele: any) => void; render(): JSX.Element; }