CSR-266 update props.
This commit is contained in:
parent
8667ee18a0
commit
bd25366d9e
2 changed files with 9 additions and 10 deletions
|
|
@ -48,18 +48,19 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col my-3">
|
<div class="col my-3">
|
||||||
<textLink
|
<textLink
|
||||||
navigation=true
|
linkType=navigation
|
||||||
text="Navigation Link"
|
text="Navigation Link"
|
||||||
/><br><br>
|
/><br><br>
|
||||||
<textLink
|
<textLink
|
||||||
|
linkType="text"
|
||||||
text="Default Link"
|
text="Default Link"
|
||||||
/><br><br>
|
/><br><br>
|
||||||
<textLink
|
<textLink
|
||||||
textSmall=true
|
linkType=textSmall
|
||||||
text="Small Link"
|
text="Small Link"
|
||||||
/><br><br>
|
/><br><br>
|
||||||
<textLink
|
<textLink
|
||||||
footer=true
|
linkType=footer
|
||||||
text="Footer Link"
|
text="Footer Link"
|
||||||
href="https://google.com"
|
href="https://google.com"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,15 @@
|
||||||
<template>
|
<template>
|
||||||
<a v-if="navigation" @click="handleClick" class="navigation-link" :href="href">{{text}}</a>
|
<a v-if="linkType === '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="linkType === '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-if="linkType === 'textSmall'" @click="handleClick" class="small" :href="href">{{text}}</a>
|
||||||
<a v-else @click="handleClick" :href="href">{{text}}</a>
|
<a v-else-if="linkType === 'text'" @click="handleClick" :href="href">{{text}}</a>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "textLink",
|
name: "textLink",
|
||||||
props: {
|
props: {
|
||||||
navigation: Boolean,
|
linkType: String,
|
||||||
footer: Boolean,
|
|
||||||
textSmall: Boolean,
|
|
||||||
text: String,
|
text: String,
|
||||||
href: {
|
href: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue