From 3dbb04d7373cbac903a7f22e2fee9c8010df7757 Mon Sep 17 00:00:00 2001 From: frankporras Date: Tue, 7 May 2024 13:54:28 +0200 Subject: [PATCH] Initial test comments added. Some original commented code deleted --- src/components/vs-input/vs-input.ts | 2 ++ src/components/vs-input/vs-input.vue | 18 +++++++++++++----- src/views/home-view/home-view-component.ts | 4 ++++ src/views/home-view/home-view-component.vue | 13 +++---------- 4 files changed, 22 insertions(+), 15 deletions(-) diff --git a/src/components/vs-input/vs-input.ts b/src/components/vs-input/vs-input.ts index 1b08792..ad5bb36 100644 --- a/src/components/vs-input/vs-input.ts +++ b/src/components/vs-input/vs-input.ts @@ -122,6 +122,8 @@ export default class VsInput extends Vue { // this.$emit("clear"); } + /* When the search button is clicked or the search input is changed, it updates the value property of the component with the current value of display, + and emits a search-change event with the current value of display as the argument. */ @Emit("search-change") search(): string { this.results = []; diff --git a/src/components/vs-input/vs-input.vue b/src/components/vs-input/vs-input.vue index 7980aed..85ceb3c 100644 --- a/src/components/vs-input/vs-input.vue +++ b/src/components/vs-input/vs-input.vue @@ -1,10 +1,15 @@