From 01843b75d0108df46df4a8bcdb66ba26134f4116 Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Mon, 7 Aug 2023 12:51:53 +1000 Subject: [PATCH 1/2] feat(#53): add external and target props to link --- src/components/Link.vue | 76 ++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 39 deletions(-) diff --git a/src/components/Link.vue b/src/components/Link.vue index 04e759b..39b6f9e 100644 --- a/src/components/Link.vue +++ b/src/components/Link.vue @@ -1,15 +1,12 @@ From eeabf9e562cfbbbd2492ed151cbe2c0e01ce38d8 Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Mon, 7 Aug 2023 12:52:24 +1000 Subject: [PATCH 2/2] feat(#4): add external link icon --- src/components/NavigationCard.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/NavigationCard.vue b/src/components/NavigationCard.vue index a5211bc..610695e 100644 --- a/src/components/NavigationCard.vue +++ b/src/components/NavigationCard.vue @@ -40,10 +40,11 @@ > @@ -90,6 +91,10 @@ export default { type: String, default: '#' }, + linkExternal: { + type: Boolean, + default: undefined, + }, summary: { type: String, default: undefined, @@ -101,7 +106,8 @@ export default { }, computed: { - hasImage: ({ $scopedSlots, imageSrc }) => imageSrc || $scopedSlots.image + hasImage: ({ $scopedSlots, imageSrc }) => imageSrc || $scopedSlots.image, + linkIcon: ({ linkExternal }) => linkExternal ? 'upper-right-arrow' : 'right-arrow-2', } }