From e1370825d95076996417f6e9a2c1b0ed23789217 Mon Sep 17 00:00:00 2001 From: Pierre Romera Date: Mon, 29 Jul 2024 08:06:28 +0000 Subject: [PATCH] feat: noIcon props and use gap between entries --- .../SearchBreadcrumb/SearchBreadcrumb.vue | 2 +- .../SearchBreadcrumbEntry.vue | 22 ++++++++++++++----- .../SearchBreadcrumbEntryFilter.vue | 12 +++++++++- .../SearchBreadcrumbEntryOccurrences.vue | 2 +- .../SearchBreadcrumbEntryQuery.vue | 6 ++++- .../SearchBreadcrumbEntryQueryAst.vue | 18 +++++++++++---- .../SearchBreadcrumbEntryQueryTerm.vue | 7 ++++-- 7 files changed, 53 insertions(+), 16 deletions(-) diff --git a/src/components/SearchBreadcrumb/SearchBreadcrumb.vue b/src/components/SearchBreadcrumb/SearchBreadcrumb.vue index bccf637a90..2a00346865 100644 --- a/src/components/SearchBreadcrumb/SearchBreadcrumb.vue +++ b/src/components/SearchBreadcrumb/SearchBreadcrumb.vue @@ -27,7 +27,7 @@ const isEmpty = computed(() => !slots.default) {{ $t('searchBreadcrumb.label') }} -
+
diff --git a/src/components/SearchBreadcrumb/SearchBreadcrumbEntry.vue b/src/components/SearchBreadcrumb/SearchBreadcrumbEntry.vue index 484e8e2774..50a797e8ce 100644 --- a/src/components/SearchBreadcrumb/SearchBreadcrumbEntry.vue +++ b/src/components/SearchBreadcrumb/SearchBreadcrumbEntry.vue @@ -30,6 +30,12 @@ const props = defineProps({ }, noCaret: { type: Boolean + }, + noOccurrences: { + type: Boolean + }, + noIcon: { + type: Boolean } }) @@ -39,21 +45,26 @@ const entryComponent = computed(() => { const entryAttributes = computed(() => { return props.filter - ? { name: props.filter, value: props.value, icon: props.icon, color: props.color } - : { query: props.query } + ? { name: props.filter, value: props.value, icon: props.icon, color: props.color, noIcon: props.noIcon } + : { query: props.query, noIcon: props.noIcon } })