Skip to content

Commit c868aab

Browse files
author
Lionel Bijaoui
committed
Update the options for the v2 of multiselect
1 parent fc2983b commit c868aab

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

src/fields/optional/fieldVueMultiSelect.vue

+19-12
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,28 @@
11
<template lang="pug">
22
multiselect(
3+
//- multiselectMixin.js
34
:id="selectOptions.id",
45
:options="options",
5-
:multiple="schema.multiSelect",
66
:value="value",
7+
:multiple="schema.multiple",
78
:track-by="selectOptions.trackBy || null",
89
:label="selectOptions.label || null",
910
:searchable="selectOptions.searchable",
10-
:local-search="selectOptions.localSearch",
1111
:clear-on-select="selectOptions.clearOnSelect",
1212
:hide-selected="selectOptions.hideSelected",
1313
:placeholder="schema.placeholder",
14-
:max-height="selectOptions.maxHeight",
1514
:allow-empty="selectOptions.allowEmpty",
1615
:reset-after="selectOptions.resetAfter",
1716
:close-on-select="selectOptions.closeOnSelect",
1817
:custom-label="customLabel",
1918
:taggable="selectOptions.taggable",
2019
:tag-placeholder="selectOptions.tagPlaceholder",
2120
:max="schema.max || null",
22-
@input="updateSelected",
23-
@tag="addTag",
24-
@select="onSelect",
25-
@remove="onRemove",
26-
@search-change="onSearchChange",
27-
@open="onOpen",
28-
@close="onClose",
21+
:options-limit="selectOptions.optionsLimit",
22+
:group-label="selectOptions.groupLabel",
23+
:block-keys="selectOptions.blockKeys",
24+
:internal-search="selectOptions.internalSearch",
25+
//- Multiselect.vue
2926
:select-label="selectOptions.selectLabel",
3027
:selected-label="selectOptions.selectedLabel",
3128
:deselect-label="selectOptions.deselectLabel",
@@ -34,9 +31,19 @@
3431
:limit-text="selectOptions.limitText",
3532
:loading="selectOptions.loading",
3633
:disabled="disabled",
37-
:option-partial="selectOptions.optionPartial",
34+
:max-height="selectOptions.maxHeight",
35+
//- pointerMixin.js
3836
:show-pointer="selectOptions.showPointer",
39-
:option-height="selectOptions.optionHeight"
37+
//- Events
38+
@input="updateSelected",
39+
@select="onSelect",
40+
@remove="onRemove",
41+
@search-change="onSearchChange",
42+
@tag="addTag",
43+
@open="onOpen",
44+
@close="onClose",
45+
//- Slots
46+
:option-height="selectOptions.optionHeight",
4047
)
4148
</template>
4249
<script>

0 commit comments

Comments
 (0)