forked from vueComponent/ant-design-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmentions.d.ts
72 lines (61 loc) · 1.49 KB
/
mentions.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { Option } from './option';
export declare class Mentions extends AntdComponent {
static Option: typeof Option;
/**
* Auto get focus when component mounted
* @default false
* @type boolean
*/
autoFocus: boolean;
/**
* Default value
* @type string
*/
defaultValue: string;
/**
* Customize filter option logic
* @type false | (input: string, option: OptionProps) => boolean
*/
filterOption: false | ((input: string, option: Option) => boolean);
/**
* Set mentions content when not match
* @type any (string | slot)
*/
notFoundContent: any;
/**
* Set popup placement
* @default 'top'
* @type string
*/
placement: 'top' | 'bottom';
/**
* Set trigger prefix keyword
* @default '@'
* @type string | string[]
*/
prefix: string | string[];
/**
* Set split string before and after selected mention
* @default ' '
* @type string
*/
split: string;
/**
* Customize trigger search logic
* @type (text: string, props: MentionsProps) => void
*/
validateSearch: (text: string, props: Mentions) => void;
/**
* Set value of mentions
* @type string
*/
value: string;
/**
* Set the mount HTML node for suggestions
* @default () => HTMLElement
*/
getPopupContainer: (triggerNode: HTMLElement) => HTMLElement;
}