@tekkare/auriga 0.2.117 → 0.2.118
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/module.json
CHANGED
|
@@ -186,6 +186,7 @@ export default defineComponent({
|
|
|
186
186
|
closeSugg();
|
|
187
187
|
}
|
|
188
188
|
} else {
|
|
189
|
+
emit("update:Value", searchValue.value);
|
|
189
190
|
closeSugg();
|
|
190
191
|
}
|
|
191
192
|
optionIndex.value = 1;
|
|
@@ -254,6 +255,7 @@ export default defineComponent({
|
|
|
254
255
|
openSugg();
|
|
255
256
|
searchValue.value = event?.target?.value;
|
|
256
257
|
emit("update:Value", searchValue.value);
|
|
258
|
+
console.log(searchValue.value);
|
|
257
259
|
}
|
|
258
260
|
onMounted(() => {
|
|
259
261
|
searchBar.value = document.getElementById("search_input_simple");
|
|
@@ -272,7 +274,9 @@ export default defineComponent({
|
|
|
272
274
|
function submitSearch() {
|
|
273
275
|
if (optionIndex.value > 0) {
|
|
274
276
|
closeOnEnter.value = true;
|
|
275
|
-
|
|
277
|
+
if (props.suggestions) {
|
|
278
|
+
searchValue.value = filterSuggestions.value[optionIndex.value - 1]?.text;
|
|
279
|
+
}
|
|
276
280
|
emit("update:Value", searchValue.value);
|
|
277
281
|
emit("selectSuggestion", searchValue.value);
|
|
278
282
|
setTimeout(() => {
|
|
@@ -470,7 +470,7 @@ export default defineComponent({
|
|
|
470
470
|
getColumnTypes();
|
|
471
471
|
}
|
|
472
472
|
);
|
|
473
|
-
watch(searchKey, (newSearchKey) => {
|
|
473
|
+
watch(searchKey.value, (newSearchKey) => {
|
|
474
474
|
setPage(1);
|
|
475
475
|
if (!props.searchFullWord || props.searchFullWord && newSearchKey.length === 0) {
|
|
476
476
|
emit("changeInputValue", newSearchKey);
|