CSR-266 update props.

This commit is contained in:
bmauger 2022-02-07 15:14:46 -05:00
parent 8667ee18a0
commit bd25366d9e
2 changed files with 9 additions and 10 deletions

View file

@ -48,18 +48,19 @@
<div class="row">
<div class="col my-3">
<textLink
navigation=true
linkType=navigation
text="Navigation Link"
/><br><br>
<textLink
linkType="text"
text="Default Link"
/><br><br>
<textLink
textSmall=true
linkType=textSmall
text="Small Link"
/><br><br>
<textLink
footer=true
linkType=footer
text="Footer Link"
href="https://google.com"
/>

View file

@ -1,17 +1,15 @@
<template>
<a v-if="navigation" @click="handleClick" class="navigation-link" :href="href">{{text}}</a>
<a v-else-if="footer" @click="handleClick" class="footer-link" :href="href" target="_blank">{{text}}</a>
<a v-else-if="textSmall" @click="handleClick" class="small" :href="href">{{text}}</a>
<a v-else @click="handleClick" :href="href">{{text}}</a>
<a v-if="linkType === 'navigation'" @click="handleClick" class="navigation-link" :href="href">{{text}}</a>
<a v-else-if="linkType === 'footer'" @click="handleClick" class="footer-link" :href="href" target="_blank">{{text}}</a>
<a v-else-if="linkType === 'textSmall'" @click="handleClick" class="small" :href="href">{{text}}</a>
<a v-else-if="linkType === 'text'" @click="handleClick" :href="href">{{text}}</a>
</template>
<script>
export default {
name: "textLink",
props: {
navigation: Boolean,
footer: Boolean,
textSmall: Boolean,
linkType: String,
text: String,
href: {
type: String,