Skip to content

Commit 2798761

Browse files
committed
2.0.1 release
1 parent a14221a commit 2798761

File tree

4 files changed

+62
-60
lines changed

4 files changed

+62
-60
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<img alt="npm" src="https://img.shields.io/npm/dm/@vueform/multiselect?color=%2353ca2f">
55
</a>
66

7+
<img alt="CircleCI" src="https://img.shields.io/circleci/build/github/vueform/multiselect">
8+
79
<a href="https://codecov.io/gh/vueform/multiselect" target="_blank">
810
<img src="https://img.shields.io/codecov/c/github/vueform/multiselect"/>
911
</a>
@@ -46,8 +48,8 @@
4648

4749
## Other libraries
4850

49-
* [@vueform/slider](https://github.com/vueform/slider) - Vue 3 slider component with multihandles, tooltips merging and formatting.
50-
* [@vueform/toggle](https://github.com/vueform/toggle) - Vue 3 toggle component with Tailwind support.
51+
* [@vueform/slider](https://github.com/vueform/slider) - Vue 3 slider component with tooltips & Tailwind support.
52+
* [@vueform/toggle](https://github.com/vueform/toggle) - Vue 3 toggle component with custom labels & Tailwind support.
5153

5254
## Multiselect features
5355

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@vueform/multiselect",
33
"version": "2.0.0",
44
"private": false,
5-
"description": "Vue 3 multiselect component with Tailwind support.",
5+
"description": "Vue 3 multiselect component with tagging options & Tailwind support.",
66
"license": "MIT",
77
"author": "Adam Berecz <[email protected]>",
88
"main": "./dist/multiselect.js",

src/Multiselect.d.ts

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
11
import Vue,{ VNode } from 'vue';
22

33
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;
4141

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;
5151

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+
};
6262
}
6363

6464
export default Multiselect;

src/composables/useClasses.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { computed, toRefs } from 'composition-api'
22

3-
export default function useStyle (props, context, dependencies)
3+
export default function useClasses (props, context, dependencies)
44
{
55
const refs = toRefs(props)
66
const { disabled, openDirection } = refs

0 commit comments

Comments
 (0)