From fe4ccdda2edffde0e8e37ced6a4ee3916c57549e Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Mon, 14 Aug 2023 11:27:36 +1000 Subject: [PATCH] feat(#86): add link support to tags (#101) --- src/components/NavigationCard.vue | 11 ++-------- src/components/Tag.vue | 35 +++++++++++++++++++++++-------- src/mixins/link.js | 12 +++++++++++ 3 files changed, 40 insertions(+), 18 deletions(-) create mode 100644 src/mixins/link.js diff --git a/src/components/NavigationCard.vue b/src/components/NavigationCard.vue index 610695e..fc3569e 100644 --- a/src/components/NavigationCard.vue +++ b/src/components/NavigationCard.vue @@ -73,10 +73,11 @@ diff --git a/src/mixins/link.js b/src/mixins/link.js new file mode 100644 index 0000000..d4f8a22 --- /dev/null +++ b/src/mixins/link.js @@ -0,0 +1,12 @@ +export default { + props: { + link: { + type: String, + default: '#' + }, + linkExternal: { + type: Boolean, + default: undefined, + }, + }, +}