| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404 |
- import type { App, PropType, ExtractPropTypes } from 'vue';
- import type { KeyboardEventHandler } from '../_util/EventInterface';
- import type { CustomSlotsType } from '../_util/type';
- interface MentionsConfig {
- prefix?: string | string[];
- split?: string;
- }
- export interface MentionsOptionProps {
- value: string;
- disabled?: boolean;
- label?: string | number | ((o: MentionsOptionProps) => any);
- [key: string]: any;
- }
- interface MentionsEntity {
- prefix: string;
- value: string;
- }
- export type MentionPlacement = 'top' | 'bottom';
- export declare const mentionsProps: () => {
- loading: {
- type: BooleanConstructor;
- default: any;
- };
- onFocus: {
- type: PropType<(e: FocusEvent) => void>;
- };
- onBlur: {
- type: PropType<(e: FocusEvent) => void>;
- };
- onSelect: {
- type: PropType<(option: MentionsOptionProps, prefix: string) => void>;
- };
- onChange: {
- type: PropType<(text: string) => void>;
- };
- onPressenter: {
- type: PropType<KeyboardEventHandler>;
- };
- 'onUpdate:value': {
- type: PropType<(text: string) => void>;
- };
- notFoundContent: import("vue-types").VueTypeValidableDef<any>;
- defaultValue: StringConstructor;
- id: StringConstructor;
- status: PropType<"" | "error" | "warning">;
- autofocus: {
- type: BooleanConstructor;
- default: any;
- };
- prefix: import("vue-types").VueTypeDef<string | string[]>;
- prefixCls: StringConstructor;
- value: StringConstructor;
- disabled: {
- type: BooleanConstructor;
- default: any;
- };
- split: StringConstructor;
- transitionName: StringConstructor;
- placement: import("vue-types").VueTypeDef<"top" | "bottom">;
- character: import("vue-types").VueTypeValidableDef<any>;
- characterRender: FunctionConstructor;
- filterOption: {
- type: PropType<false | typeof import("../vc-mentions/src/util").filterOption>;
- };
- validateSearch: FunctionConstructor;
- getPopupContainer: {
- type: PropType<() => HTMLElement>;
- };
- options: {
- type: PropType<import("../vc-mentions/src/Option").OptionProps[]>;
- default: import("../vc-mentions/src/Option").OptionProps[];
- };
- rows: (StringConstructor | NumberConstructor)[];
- direction: {
- type: PropType<import("../vc-mentions/src/mentionsProps").Direction>;
- };
- };
- export type MentionsProps = Partial<ExtractPropTypes<ReturnType<typeof mentionsProps>>>;
- export declare const MentionsOption: import("vue").DefineComponent<{
- label: {
- default: import("../_util/type").VueNode | ((o: import("../vc-mentions/src/Option").BaseOptionsProps) => import("../_util/type").VueNode);
- type: PropType<import("../_util/type").VueNode | ((o: import("../vc-mentions/src/Option").BaseOptionsProps) => import("../_util/type").VueNode)>;
- };
- value: StringConstructor;
- disabled: BooleanConstructor;
- payload: {
- type: PropType<Record<string, any>>;
- default: Record<string, any>;
- };
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
- label: {
- default: import("../_util/type").VueNode | ((o: import("../vc-mentions/src/Option").BaseOptionsProps) => import("../_util/type").VueNode);
- type: PropType<import("../_util/type").VueNode | ((o: import("../vc-mentions/src/Option").BaseOptionsProps) => import("../_util/type").VueNode)>;
- };
- value: StringConstructor;
- disabled: BooleanConstructor;
- payload: {
- type: PropType<Record<string, any>>;
- default: Record<string, any>;
- };
- }>>, {
- label: import("../_util/type").VueNode | ((o: import("../vc-mentions/src/Option").BaseOptionsProps) => import("../_util/type").VueNode);
- disabled: boolean;
- payload: Record<string, any>;
- }, {}>;
- declare const _default: {
- new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
- loading: {
- type: BooleanConstructor;
- default: any;
- };
- onFocus: {
- type: PropType<(e: FocusEvent) => void>;
- };
- onBlur: {
- type: PropType<(e: FocusEvent) => void>;
- };
- onSelect: {
- type: PropType<(option: MentionsOptionProps, prefix: string) => void>;
- };
- onChange: {
- type: PropType<(text: string) => void>;
- };
- onPressenter: {
- type: PropType<KeyboardEventHandler>;
- };
- 'onUpdate:value': {
- type: PropType<(text: string) => void>;
- };
- notFoundContent: import("vue-types").VueTypeValidableDef<any>;
- defaultValue: StringConstructor;
- id: StringConstructor;
- status: PropType<"" | "error" | "warning">;
- autofocus: {
- type: BooleanConstructor;
- default: any;
- };
- prefix: import("vue-types").VueTypeDef<string | string[]>;
- prefixCls: StringConstructor;
- value: StringConstructor;
- disabled: {
- type: BooleanConstructor;
- default: any;
- };
- split: StringConstructor;
- transitionName: StringConstructor;
- placement: import("vue-types").VueTypeDef<"top" | "bottom">;
- character: import("vue-types").VueTypeValidableDef<any>;
- characterRender: FunctionConstructor;
- filterOption: {
- type: PropType<false | typeof import("../vc-mentions/src/util").filterOption>;
- };
- validateSearch: FunctionConstructor;
- getPopupContainer: {
- type: PropType<() => HTMLElement>;
- };
- options: {
- type: PropType<import("../vc-mentions/src/Option").OptionProps[]>;
- default: import("../vc-mentions/src/Option").OptionProps[];
- };
- rows: (StringConstructor | NumberConstructor)[];
- direction: {
- type: PropType<import("../vc-mentions/src/mentionsProps").Direction>;
- };
- }>>, () => import("../_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<ExtractPropTypes<{
- loading: {
- type: BooleanConstructor;
- default: any;
- };
- onFocus: {
- type: PropType<(e: FocusEvent) => void>;
- };
- onBlur: {
- type: PropType<(e: FocusEvent) => void>;
- };
- onSelect: {
- type: PropType<(option: MentionsOptionProps, prefix: string) => void>;
- };
- onChange: {
- type: PropType<(text: string) => void>;
- };
- onPressenter: {
- type: PropType<KeyboardEventHandler>;
- };
- 'onUpdate:value': {
- type: PropType<(text: string) => void>;
- };
- notFoundContent: import("vue-types").VueTypeValidableDef<any>;
- defaultValue: StringConstructor;
- id: StringConstructor;
- status: PropType<"" | "error" | "warning">;
- autofocus: {
- type: BooleanConstructor;
- default: any;
- };
- prefix: import("vue-types").VueTypeDef<string | string[]>;
- prefixCls: StringConstructor;
- value: StringConstructor;
- disabled: {
- type: BooleanConstructor;
- default: any;
- };
- split: StringConstructor;
- transitionName: StringConstructor;
- placement: import("vue-types").VueTypeDef<"top" | "bottom">;
- character: import("vue-types").VueTypeValidableDef<any>;
- characterRender: FunctionConstructor;
- filterOption: {
- type: PropType<false | typeof import("../vc-mentions/src/util").filterOption>;
- };
- validateSearch: FunctionConstructor;
- getPopupContainer: {
- type: PropType<() => HTMLElement>;
- };
- options: {
- type: PropType<import("../vc-mentions/src/Option").OptionProps[]>;
- default: import("../vc-mentions/src/Option").OptionProps[];
- };
- rows: (StringConstructor | NumberConstructor)[];
- direction: {
- type: PropType<import("../vc-mentions/src/mentionsProps").Direction>;
- };
- }>>, {
- disabled: boolean;
- autofocus: boolean;
- options: import("../vc-mentions/src/Option").OptionProps[];
- loading: boolean;
- }, true, {}, CustomSlotsType<{
- notFoundContent?: any;
- option?: any;
- default?: any;
- }>, {
- P: {};
- B: {};
- D: {};
- C: {};
- M: {};
- Defaults: {};
- }, Readonly<ExtractPropTypes<{
- loading: {
- type: BooleanConstructor;
- default: any;
- };
- onFocus: {
- type: PropType<(e: FocusEvent) => void>;
- };
- onBlur: {
- type: PropType<(e: FocusEvent) => void>;
- };
- onSelect: {
- type: PropType<(option: MentionsOptionProps, prefix: string) => void>;
- };
- onChange: {
- type: PropType<(text: string) => void>;
- };
- onPressenter: {
- type: PropType<KeyboardEventHandler>;
- };
- 'onUpdate:value': {
- type: PropType<(text: string) => void>;
- };
- notFoundContent: import("vue-types").VueTypeValidableDef<any>;
- defaultValue: StringConstructor;
- id: StringConstructor;
- status: PropType<"" | "error" | "warning">;
- autofocus: {
- type: BooleanConstructor;
- default: any;
- };
- prefix: import("vue-types").VueTypeDef<string | string[]>;
- prefixCls: StringConstructor;
- value: StringConstructor;
- disabled: {
- type: BooleanConstructor;
- default: any;
- };
- split: StringConstructor;
- transitionName: StringConstructor;
- placement: import("vue-types").VueTypeDef<"top" | "bottom">;
- character: import("vue-types").VueTypeValidableDef<any>;
- characterRender: FunctionConstructor;
- filterOption: {
- type: PropType<false | typeof import("../vc-mentions/src/util").filterOption>;
- };
- validateSearch: FunctionConstructor;
- getPopupContainer: {
- type: PropType<() => HTMLElement>;
- };
- options: {
- type: PropType<import("../vc-mentions/src/Option").OptionProps[]>;
- default: import("../vc-mentions/src/Option").OptionProps[];
- };
- rows: (StringConstructor | NumberConstructor)[];
- direction: {
- type: PropType<import("../vc-mentions/src/mentionsProps").Direction>;
- };
- }>>, () => import("../_util/type").VueNode, {}, {}, {}, {
- disabled: boolean;
- autofocus: boolean;
- options: import("../vc-mentions/src/Option").OptionProps[];
- loading: boolean;
- }>;
- __isFragment?: never;
- __isTeleport?: never;
- __isSuspense?: never;
- } & import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
- loading: {
- type: BooleanConstructor;
- default: any;
- };
- onFocus: {
- type: PropType<(e: FocusEvent) => void>;
- };
- onBlur: {
- type: PropType<(e: FocusEvent) => void>;
- };
- onSelect: {
- type: PropType<(option: MentionsOptionProps, prefix: string) => void>;
- };
- onChange: {
- type: PropType<(text: string) => void>;
- };
- onPressenter: {
- type: PropType<KeyboardEventHandler>;
- };
- 'onUpdate:value': {
- type: PropType<(text: string) => void>;
- };
- notFoundContent: import("vue-types").VueTypeValidableDef<any>;
- defaultValue: StringConstructor;
- id: StringConstructor;
- status: PropType<"" | "error" | "warning">;
- autofocus: {
- type: BooleanConstructor;
- default: any;
- };
- prefix: import("vue-types").VueTypeDef<string | string[]>;
- prefixCls: StringConstructor;
- value: StringConstructor;
- disabled: {
- type: BooleanConstructor;
- default: any;
- };
- split: StringConstructor;
- transitionName: StringConstructor;
- placement: import("vue-types").VueTypeDef<"top" | "bottom">;
- character: import("vue-types").VueTypeValidableDef<any>;
- characterRender: FunctionConstructor;
- filterOption: {
- type: PropType<false | typeof import("../vc-mentions/src/util").filterOption>;
- };
- validateSearch: FunctionConstructor;
- getPopupContainer: {
- type: PropType<() => HTMLElement>;
- };
- options: {
- type: PropType<import("../vc-mentions/src/Option").OptionProps[]>;
- default: import("../vc-mentions/src/Option").OptionProps[];
- };
- rows: (StringConstructor | NumberConstructor)[];
- direction: {
- type: PropType<import("../vc-mentions/src/mentionsProps").Direction>;
- };
- }>>, () => import("../_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
- disabled: boolean;
- autofocus: boolean;
- options: import("../vc-mentions/src/Option").OptionProps[];
- loading: boolean;
- }, {}, string, CustomSlotsType<{
- notFoundContent?: any;
- option?: any;
- default?: any;
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
- Option: import("vue").DefineComponent<{
- label: {
- default: import("../_util/type").VueNode | ((o: import("../vc-mentions/src/Option").BaseOptionsProps) => import("../_util/type").VueNode);
- type: PropType<import("../_util/type").VueNode | ((o: import("../vc-mentions/src/Option").BaseOptionsProps) => import("../_util/type").VueNode)>;
- };
- value: StringConstructor;
- disabled: BooleanConstructor;
- payload: {
- type: PropType<Record<string, any>>;
- default: Record<string, any>;
- };
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
- label: {
- default: import("../_util/type").VueNode | ((o: import("../vc-mentions/src/Option").BaseOptionsProps) => import("../_util/type").VueNode);
- type: PropType<import("../_util/type").VueNode | ((o: import("../vc-mentions/src/Option").BaseOptionsProps) => import("../_util/type").VueNode)>;
- };
- value: StringConstructor;
- disabled: BooleanConstructor;
- payload: {
- type: PropType<Record<string, any>>;
- default: Record<string, any>;
- };
- }>>, {
- label: import("../_util/type").VueNode | ((o: import("../vc-mentions/src/Option").BaseOptionsProps) => import("../_util/type").VueNode);
- disabled: boolean;
- payload: Record<string, any>;
- }, {}>;
- getMentions: (value?: string, config?: MentionsConfig) => MentionsEntity[];
- install: (app: App) => App<any>;
- };
- export default _default;
|