classcard-ui 0.2.181 → 0.2.185
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/dist/classcard-ui.common.js +48 -21
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +48 -21
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CMultiselect/CMultiselect.vue +5 -0
- package/src/components/CSelect/CSelect.vue +1 -4
package/package.json
CHANGED
|
@@ -30,6 +30,11 @@
|
|
|
30
30
|
</svg>
|
|
31
31
|
</span>
|
|
32
32
|
</template>
|
|
33
|
+
<!-- eslint-disable-next-line vue/no-unused-vars -->
|
|
34
|
+
<template #no-options="{ search, searching, loading }">
|
|
35
|
+
<span v-if="search.length < 1">Start typing to search for options...</span>
|
|
36
|
+
<span v-else>No options found, try searching something else.</span>
|
|
37
|
+
</template>
|
|
33
38
|
<template slot="option" slot-scope="option">
|
|
34
39
|
<slot name="custom-option" v-bind:option="option"></slot>
|
|
35
40
|
</template>
|
|
@@ -181,7 +181,7 @@ export default {
|
|
|
181
181
|
data() {
|
|
182
182
|
return {
|
|
183
183
|
toggleDropdown: false,
|
|
184
|
-
selectedValue: this.value
|
|
184
|
+
selectedValue: this.value !== null && this.value.option ? this.value.option : this.value,
|
|
185
185
|
showSelectedValue: false,
|
|
186
186
|
showFocus: false,
|
|
187
187
|
};
|
|
@@ -211,9 +211,6 @@ export default {
|
|
|
211
211
|
this.toggleDropdown = false;
|
|
212
212
|
this.type === "tertiary" ? (this.showFocus = false) : "";
|
|
213
213
|
},
|
|
214
|
-
clickTest() {
|
|
215
|
-
this.selectedValue = null;
|
|
216
|
-
},
|
|
217
214
|
},
|
|
218
215
|
watch: {
|
|
219
216
|
value() {
|