@enso-ui/select 3.1.0 → 3.3.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 +19 -1
package/package.json
CHANGED
package/src/bulma/VueSelect.vue
CHANGED
|
@@ -20,7 +20,11 @@
|
|
|
20
20
|
ref="dropdown">
|
|
21
21
|
<template #trigger="{ triggerEvents, open }">
|
|
22
22
|
<button class="button input"
|
|
23
|
-
:class="
|
|
23
|
+
:class="[
|
|
24
|
+
{ 'has-error': hasError },
|
|
25
|
+
{ 'is-successful': isSuccess },
|
|
26
|
+
{ 'has-warning': hasWarning },
|
|
27
|
+
]"
|
|
24
28
|
type="button"
|
|
25
29
|
:disabled="disabled"
|
|
26
30
|
@click="reload"
|
|
@@ -163,6 +167,14 @@ export default {
|
|
|
163
167
|
type: Boolean,
|
|
164
168
|
default: false,
|
|
165
169
|
},
|
|
170
|
+
hasWarning: {
|
|
171
|
+
type: Boolean,
|
|
172
|
+
default: false,
|
|
173
|
+
},
|
|
174
|
+
isSuccess: {
|
|
175
|
+
type: Boolean,
|
|
176
|
+
default: false,
|
|
177
|
+
},
|
|
166
178
|
labels: {
|
|
167
179
|
type: Object,
|
|
168
180
|
default: () => ({
|
|
@@ -225,6 +237,12 @@ export default {
|
|
|
225
237
|
&.has-error {
|
|
226
238
|
border-color: $danger;
|
|
227
239
|
}
|
|
240
|
+
&.is-successful {
|
|
241
|
+
border-color: $success;
|
|
242
|
+
}
|
|
243
|
+
&.has-warning {
|
|
244
|
+
border-color: $warning;
|
|
245
|
+
}
|
|
228
246
|
|
|
229
247
|
.control-display {
|
|
230
248
|
&.with-clear-button {
|