From a40736d0b6920d54f3a7b8a74961818a85458902 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Tue, 17 Dec 2024 17:07:21 +0100 Subject: [PATCH] feat(ui): Link component with no explicit styling has an underline --- front/src/components/ui/Link.vue | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/front/src/components/ui/Link.vue b/front/src/components/ui/Link.vue index be5e2f76a..edee420b5 100644 --- a/front/src/components/ui/Link.vue +++ b/front/src/components/ui/Link.vue @@ -3,31 +3,30 @@ import { computed } from 'vue' import { type RouterLinkProps, RouterLink } from 'vue-router' import { type ColorProps, type VariantProps, propsToColor } from '~/composables/colors'; -const { to, icon, inline, round, ...otherProps } = defineProps() + round?: boolean; + } & ColorProps & VariantProps & RouterLinkProps>() const isExternalLink = computed(() => { return typeof to === 'string' && to.startsWith('http') }) const isIconOnly = computed(() => !!icon) +const isSimple = Object.keys(colorProps).length === 0