@enso-ui/select 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -101,7 +101,10 @@ export default {
|
|
|
101
101
|
},
|
|
102
102
|
},
|
|
103
103
|
|
|
104
|
-
emits: [
|
|
104
|
+
emits: [
|
|
105
|
+
'add-tag', 'clear', 'deselect', 'fetch', 'select',
|
|
106
|
+
'selection', 'update', 'update:modelValue',
|
|
107
|
+
],
|
|
105
108
|
|
|
106
109
|
data: v => ({
|
|
107
110
|
allowsSelection: true,
|
|
@@ -157,7 +160,7 @@ export default {
|
|
|
157
160
|
? this.optionList.filter(option => this.modelValue
|
|
158
161
|
.some(val => this.valueMatchesOption(val, option)))
|
|
159
162
|
: this.optionList
|
|
160
|
-
|
|
163
|
+
.find(option => this.valueMatchesOption(this.modelValue, option)) || null;
|
|
161
164
|
},
|
|
162
165
|
serverSide() {
|
|
163
166
|
return this.source !== null;
|
|
@@ -490,10 +493,10 @@ export default {
|
|
|
490
493
|
modeBindings: {
|
|
491
494
|
modes: this.searchModes,
|
|
492
495
|
query: this.query,
|
|
493
|
-
modelValue: this.mode,
|
|
496
|
+
'update:modelValue': this.mode,
|
|
494
497
|
},
|
|
495
498
|
modeEvents: {
|
|
496
|
-
|
|
499
|
+
'update:modelValue': event => (this.mode = event),
|
|
497
500
|
change: this.fetch,
|
|
498
501
|
},
|
|
499
502
|
modeSelector: this.modeSelector,
|