From 27172c2a19d1bfa7064d386e8abce8215b8e8a12 Mon Sep 17 00:00:00 2001 From: "Adrian O.V" <83074853+CodexAdrian@users.noreply.github.com> Date: Thu, 10 Aug 2023 11:49:00 -0400 Subject: [PATCH] Promotion tweaks (#85) * Modify promotion, Fix #80, Fix #79 * Update Avatar.vue * Version bump --- lib/components/base/Avatar.vue | 2 +- lib/components/base/DropdownButton.vue | 5 +++++ lib/components/base/Promotion.vue | 8 ++++++-- lib/components/search/Categories.vue | 4 ---- package.json | 2 +- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/lib/components/base/Avatar.vue b/lib/components/base/Avatar.vue index 38556c3b..e5f01e65 100644 --- a/lib/components/base/Avatar.vue +++ b/lib/components/base/Avatar.vue @@ -60,7 +60,7 @@ export default { }, loading: { type: String, - default: 'eager', + default: 'lazy', }, }, data() { diff --git a/lib/components/base/DropdownButton.vue b/lib/components/base/DropdownButton.vue index f0ebd5fa..0e3edf02 100644 --- a/lib/components/base/DropdownButton.vue +++ b/lib/components/base/DropdownButton.vue @@ -143,6 +143,7 @@ const toggleDropdown = () => { const selectOption = (option, index) => { radioValue.value = option emit('change', { option, index }) + emit('option-click', { option: selectedOption.value }) dropdownVisible.value = false } @@ -197,6 +198,10 @@ onBeforeUnmount(() => { border-radius: var(--radius-md) 0 0 0; } } + + .btn { + height: 2.25rem; + } } .selected { diff --git a/lib/components/base/Promotion.vue b/lib/components/base/Promotion.vue index b11151aa..5bcd20b4 100644 --- a/lib/components/base/Promotion.vue +++ b/lib/components/base/Promotion.vue @@ -4,7 +4,7 @@