classcard-ui 0.2.143 → 0.2.144
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 +13 -7
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +13 -7
- 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/CGroupedSelect/CGroupedSelect.vue +8 -2
package/package.json
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
+
<div
|
|
4
|
+
v-if="showDropDown && options.length > 0"
|
|
5
|
+
class="fixed inset-0"
|
|
6
|
+
@click="closeDropDown()"
|
|
7
|
+
aria-hidden="true"
|
|
8
|
+
></div>
|
|
3
9
|
<label v-if="label" class="block text-sm font-medium text-gray-700">
|
|
4
10
|
{{ label }}
|
|
5
11
|
</label>
|
|
@@ -14,7 +20,6 @@
|
|
|
14
20
|
:value="inputValue"
|
|
15
21
|
:placeholder="placeholder"
|
|
16
22
|
@focus="openDropDown()"
|
|
17
|
-
@blur="closeDropDown()"
|
|
18
23
|
@input="onInput"
|
|
19
24
|
/>
|
|
20
25
|
<span
|
|
@@ -164,8 +169,9 @@ export default {
|
|
|
164
169
|
}
|
|
165
170
|
}, 500),
|
|
166
171
|
handleOptionClick(option) {
|
|
167
|
-
this.$emit("input", option);
|
|
168
172
|
this.inputValue = option.label;
|
|
173
|
+
this.closeDropDown();
|
|
174
|
+
this.$emit("input", option);
|
|
169
175
|
},
|
|
170
176
|
closeDropDown() {
|
|
171
177
|
this.inputValue = this.value.label;
|