1
1
import Vue , { VNode } from 'vue' ;
2
2
3
3
declare class Multiselect extends Vue {
4
- modelValue ?: any ;
5
- value ?: any ;
6
- mode : 'single' | 'multiple' | 'tags' ;
7
- options ?: any [ ] ;
8
- searchable ?: boolean ;
9
- valueProp ?: string ;
10
- trackBy ?: string ;
11
- label ?: string ;
12
- placeholder ?: string | null ;
13
- multipleLabel ?: any ; // Function
14
- disabled ?: boolean ;
15
- max ?: number ;
16
- limit ?: number ;
17
- loading ?: boolean ;
18
- id ?: string ;
19
- caret ?: boolean ;
20
- maxHeight ?: string | number ;
21
- noOptionsText ?: string ;
22
- noResultsText ?: string ;
23
- canDeselect ?: boolean ;
24
- canClear ?: boolean ;
25
- clearOnSearch ?: boolean ;
26
- clearOnSelect ?: boolean ;
27
- delay ?: number ;
28
- filterResults ?: boolean ;
29
- minChars ?: number ;
30
- resolveOnLoad ?: boolean ;
31
- appendNewTag ?: boolean ;
32
- createTag ?: boolean ;
33
- addTagOn ?: string [ ] ;
34
- hideSelected ?: boolean ;
35
- showOptions ?: boolean ;
36
- object ?: boolean ;
37
- required ?: boolean ;
38
- openDirection ?: 'top' | 'bottom' ;
39
- nativeSupport ?: boolean ;
40
- classes ?: object ;
4
+ modelValue ?: any ;
5
+ value ?: any ;
6
+ mode : 'single' | 'multiple' | 'tags' ;
7
+ options ?: any [ ] ;
8
+ searchable ?: boolean ;
9
+ valueProp ?: string ;
10
+ trackBy ?: string ;
11
+ label ?: string ;
12
+ placeholder ?: string | null ;
13
+ multipleLabel ?: any ; // Function
14
+ disabled ?: boolean ;
15
+ max ?: number ;
16
+ limit ?: number ;
17
+ loading ?: boolean ;
18
+ id ?: string ;
19
+ caret ?: boolean ;
20
+ maxHeight ?: string | number ;
21
+ noOptionsText ?: string ;
22
+ noResultsText ?: string ;
23
+ canDeselect ?: boolean ;
24
+ canClear ?: boolean ;
25
+ clearOnSearch ?: boolean ;
26
+ clearOnSelect ?: boolean ;
27
+ delay ?: number ;
28
+ filterResults ?: boolean ;
29
+ minChars ?: number ;
30
+ resolveOnLoad ?: boolean ;
31
+ appendNewTag ?: boolean ;
32
+ createTag ?: boolean ;
33
+ addTagOn ?: string [ ] ;
34
+ hideSelected ?: boolean ;
35
+ showOptions ?: boolean ;
36
+ object ?: boolean ;
37
+ required ?: boolean ;
38
+ openDirection ?: 'top' | 'bottom' ;
39
+ nativeSupport ?: boolean ;
40
+ classes ?: object ;
41
41
42
- $emit ( eventName : 'change' , e : { originalEvent : Event , value : any } ) : this;
43
- $emit ( eventName : 'select' , e : { originalEvent : Event , value : any , option : any } ) : this;
44
- $emit ( eventName : 'deselect' , e : { originalEvent : Event , value : any , option : any } ) : this;
45
- $emit ( eventName : 'remove' , e : { originalEvent : Event , value : any , option : any } ) : this;
46
- $emit ( eventName : 'search-change' , e : { originalEvent : Event , query : string } ) : this;
47
- $emit ( eventName : 'tag' , e : { originalEvent : Event , query : string } ) : this;
48
- $emit ( eventName : 'open' ) : this;
49
- $emit ( eventName : 'close' ) : this;
50
- $emit ( eventName : 'clear' ) : this;
42
+ $emit ( eventName : 'change' , e : { originalEvent : Event , value : any } ) : this;
43
+ $emit ( eventName : 'select' , e : { originalEvent : Event , value : any , option : any } ) : this;
44
+ $emit ( eventName : 'deselect' , e : { originalEvent : Event , value : any , option : any } ) : this;
45
+ $emit ( eventName : 'remove' , e : { originalEvent : Event , value : any , option : any } ) : this;
46
+ $emit ( eventName : 'search-change' , e : { originalEvent : Event , query : string } ) : this;
47
+ $emit ( eventName : 'tag' , e : { originalEvent : Event , query : string } ) : this;
48
+ $emit ( eventName : 'open' ) : this;
49
+ $emit ( eventName : 'close' ) : this;
50
+ $emit ( eventName : 'clear' ) : this;
51
51
52
- $slots : {
53
- placeholder : VNode [ ] ;
54
- afterlist : VNode [ ] ;
55
- beforelist : VNode [ ] ;
56
- list : VNode [ ] ;
57
- multiplelabel : VNode [ ] ;
58
- singlelabel : VNode [ ] ;
59
- option : VNode [ ] ;
60
- tag : VNode [ ] ;
61
- } ;
52
+ $slots : {
53
+ placeholder : VNode [ ] ;
54
+ afterlist : VNode [ ] ;
55
+ beforelist : VNode [ ] ;
56
+ list : VNode [ ] ;
57
+ multiplelabel : VNode [ ] ;
58
+ singlelabel : VNode [ ] ;
59
+ option : VNode [ ] ;
60
+ tag : VNode [ ] ;
61
+ } ;
62
62
}
63
63
64
64
export default Multiselect ;
0 commit comments