From e39cab82f6eb31882677d66ddc4d391ea7b5357a Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 23 Sep 2024 08:08:24 -0300 Subject: [PATCH] Use searchbar and debouncer --- src/components/ui/VnSearchBar.vue | 2 +- src/pages/Ecomerce/CatalogView.vue | 320 ++++++++++++----------------- src/utils/debouncer.js | 10 + 3 files changed, 144 insertions(+), 188 deletions(-) create mode 100644 src/utils/debouncer.js diff --git a/src/components/ui/VnSearchBar.vue b/src/components/ui/VnSearchBar.vue index 0d65a5f1..375e9e8f 100644 --- a/src/components/ui/VnSearchBar.vue +++ b/src/components/ui/VnSearchBar.vue @@ -12,7 +12,7 @@ const props = defineProps({ }, placeholder: { type: String, - default: 'Search' + default: '' }, sqlQuery: { type: String, diff --git a/src/pages/Ecomerce/CatalogView.vue b/src/pages/Ecomerce/CatalogView.vue index 0749bd69..909aa7cb 100644 --- a/src/pages/Ecomerce/CatalogView.vue +++ b/src/pages/Ecomerce/CatalogView.vue @@ -1,47 +1,30 @@