@enso-ui/select 3.0.20 → 3.2.0
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 +1 -1
- package/src/bulma/VueSelect.vue +13 -1
package/package.json
CHANGED
package/src/bulma/VueSelect.vue
CHANGED
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
}">
|
|
16
16
|
<dropdown :disabled="dropdownDisabled"
|
|
17
17
|
:manual="multiple || canAddTag || !allowsSelection"
|
|
18
|
+
:opens-up="opensUp"
|
|
18
19
|
@hide="reset()"
|
|
19
20
|
ref="dropdown">
|
|
20
21
|
<template #trigger="{ triggerEvents, open }">
|
|
21
22
|
<button class="button input"
|
|
22
|
-
:class="{ 'has-error': hasError }"
|
|
23
|
+
:class="[{ 'has-error': hasError }, { 'is-successful': isSuccess }]"
|
|
23
24
|
type="button"
|
|
24
25
|
:disabled="disabled"
|
|
25
26
|
@click="reload"
|
|
@@ -162,6 +163,10 @@ export default {
|
|
|
162
163
|
type: Boolean,
|
|
163
164
|
default: false,
|
|
164
165
|
},
|
|
166
|
+
isSuccess: {
|
|
167
|
+
type: Boolean,
|
|
168
|
+
default: false,
|
|
169
|
+
},
|
|
165
170
|
labels: {
|
|
166
171
|
type: Object,
|
|
167
172
|
default: () => ({
|
|
@@ -173,6 +178,10 @@ export default {
|
|
|
173
178
|
search: 'Search...',
|
|
174
179
|
}),
|
|
175
180
|
},
|
|
181
|
+
opensUp: {
|
|
182
|
+
type: Boolean,
|
|
183
|
+
default: false,
|
|
184
|
+
},
|
|
176
185
|
placeholder: {
|
|
177
186
|
type: String,
|
|
178
187
|
default: 'Pick an option',
|
|
@@ -220,6 +229,9 @@ export default {
|
|
|
220
229
|
&.has-error {
|
|
221
230
|
border-color: $danger;
|
|
222
231
|
}
|
|
232
|
+
&.is-successful {
|
|
233
|
+
border-color: $success;
|
|
234
|
+
}
|
|
223
235
|
|
|
224
236
|
.control-display {
|
|
225
237
|
&.with-clear-button {
|