UNPKG

antd-fx67ll-test

Version:

这是一个测试着玩的私服antd项目,完全照抄v4.16.6的antd源码,请勿使用,仅做发布测试(因每次发布必须要升版本,如发现版本出入请忽略,与官方无关)

30 lines (29 loc) 944 B
import * as React from 'react'; import { MentionsProps as RcMentionsProps } from 'rc-mentions/lib/Mentions'; export declare const Option: React.SFC<import("rc-mentions/lib/Option").OptionProps>; export declare type MentionPlacement = 'top' | 'bottom'; export interface OptionProps { value: string; children: React.ReactNode; [key: string]: any; } export interface MentionProps extends RcMentionsProps { loading?: boolean; } export interface MentionState { focused: boolean; } interface MentionsConfig { prefix?: string | string[]; split?: string; } interface MentionsEntity { prefix: string; value: string; } interface CompoundedComponent extends React.ForwardRefExoticComponent<MentionProps & React.RefAttributes<HTMLElement>> { Option: typeof Option; getMentions: (value: string, config?: MentionsConfig) => MentionsEntity[]; } declare const Mentions: CompoundedComponent; export default Mentions;