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 @@