|
1 | 1 | import { VNode, defineComponent } from 'vue';
|
2 | 2 |
|
3 |
| - |
4 | 3 | interface ClassList {
|
5 | 4 | assist: string;
|
6 | 5 | caret: Array<string>;
|
@@ -36,11 +35,10 @@ interface ClassList {
|
36 | 35 | wrapper: string;
|
37 | 36 | }
|
38 | 37 |
|
39 |
| - |
40 |
| -declare class Multiselect implements ReturnType<typeof defineComponent> { |
| 38 | +interface MultiselectProps { |
41 | 39 | modelValue?: any;
|
42 | 40 | value?: any;
|
43 |
| - mode: 'single' | 'multiple' | 'tags'; |
| 41 | + mode?: 'single' | 'multiple' | 'tags'; |
44 | 42 | options?: any[] | object | Function;
|
45 | 43 | searchable?: boolean;
|
46 | 44 | valueProp?: string;
|
@@ -104,6 +102,77 @@ declare class Multiselect implements ReturnType<typeof defineComponent> {
|
104 | 102 | appendToBody?: boolean;
|
105 | 103 | closeOnScroll?: boolean;
|
106 | 104 | breakTags?: boolean;
|
| 105 | +} |
| 106 | + |
| 107 | +declare class Multiselect implements ReturnType<typeof defineComponent> { |
| 108 | + modelValue: MultiselectProps['modelValue']; |
| 109 | + value: MultiselectProps['value']; |
| 110 | + mode: MultiselectProps['mode']; |
| 111 | + options: MultiselectProps['options']; |
| 112 | + searchable: MultiselectProps['searchable']; |
| 113 | + valueProp: MultiselectProps['valueProp']; |
| 114 | + trackBy: MultiselectProps['trackBy']; |
| 115 | + label: MultiselectProps['label']; |
| 116 | + placeholder: MultiselectProps['placeholder']; |
| 117 | + multipleLabel: MultiselectProps['multipleLabel']; |
| 118 | + disabled: MultiselectProps['disabled']; |
| 119 | + max: MultiselectProps['max']; |
| 120 | + limit: MultiselectProps['limit']; |
| 121 | + loading: MultiselectProps['loading']; |
| 122 | + id: MultiselectProps['id']; |
| 123 | + caret: MultiselectProps['caret']; |
| 124 | + maxHeight: MultiselectProps['maxHeight']; |
| 125 | + noOptionsText: MultiselectProps['noOptionsText']; |
| 126 | + noResultsText: MultiselectProps['noResultsText']; |
| 127 | + canDeselect: MultiselectProps['canDeselect']; |
| 128 | + canClear: MultiselectProps['canClear']; |
| 129 | + clearOnSearch: MultiselectProps['clearOnSearch']; |
| 130 | + clearOnSelect: MultiselectProps['clearOnSelect']; |
| 131 | + delay: MultiselectProps['delay']; |
| 132 | + filterResults: MultiselectProps['filterResults']; |
| 133 | + minChars: MultiselectProps['minChars']; |
| 134 | + resolveOnLoad: MultiselectProps['resolveOnLoad']; |
| 135 | + appendNewTag: MultiselectProps['appendNewTag']; |
| 136 | + appendNewOption: MultiselectProps['appendNewOption']; |
| 137 | + createTag: MultiselectProps['createTag']; |
| 138 | + createOption: MultiselectProps['createOption']; |
| 139 | + addTagOn: MultiselectProps['addTagOn']; |
| 140 | + addOptionOn: MultiselectProps['addOptionOn']; |
| 141 | + hideSelected: MultiselectProps['hideSelected']; |
| 142 | + showOptions: MultiselectProps['showOptions']; |
| 143 | + object: MultiselectProps['object']; |
| 144 | + required: MultiselectProps['required']; |
| 145 | + openDirection: MultiselectProps['openDirection']; |
| 146 | + nativeSupport: MultiselectProps['nativeSupport']; |
| 147 | + classes: MultiselectProps['classes']; |
| 148 | + strict: MultiselectProps['strict']; |
| 149 | + closeOnSelect: MultiselectProps['closeOnSelect']; |
| 150 | + closeOnDeselect: MultiselectProps['closeOnDeselect']; |
| 151 | + autocomplete: MultiselectProps['autocomplete']; |
| 152 | + groups: MultiselectProps['groups']; |
| 153 | + groupLabel: MultiselectProps['groupLabel']; |
| 154 | + groupOptions: MultiselectProps['groupOptions']; |
| 155 | + groupHideEmpty: MultiselectProps['groupHideEmpty']; |
| 156 | + groupSelect: MultiselectProps['groupSelect']; |
| 157 | + inputType: MultiselectProps['inputType']; |
| 158 | + attrs: MultiselectProps['attrs']; |
| 159 | + onCreate: MultiselectProps['onCreate']; |
| 160 | + searchStart: MultiselectProps['searchStart']; |
| 161 | + reverse: MultiselectProps['reverse']; |
| 162 | + regex: MultiselectProps['regex']; |
| 163 | + rtl: MultiselectProps['rtl']; |
| 164 | + infinite: MultiselectProps['infinite']; |
| 165 | + aria: MultiselectProps['aria']; |
| 166 | + clearOnBlur: MultiselectProps['clearOnBlur']; |
| 167 | + locale: MultiselectProps['locale']; |
| 168 | + fallbackLocale: MultiselectProps['fallbackLocale']; |
| 169 | + searchFilter: MultiselectProps['searchFilter']; |
| 170 | + allowAbsent: MultiselectProps['allowAbsent']; |
| 171 | + appendToBody: MultiselectProps['appendToBody']; |
| 172 | + closeOnScroll: MultiselectProps['closeOnScroll']; |
| 173 | + breakTags: MultiselectProps['breakTags']; |
| 174 | + |
| 175 | + $props: MultiselectProps; |
107 | 176 |
|
108 | 177 | $emit(eventName: 'change', value: any, instance: this): this | void;
|
109 | 178 | $emit(eventName: 'select', value: any, option: any, instance:this): this | void;
|
|
0 commit comments