blob: 7ad5088ab7f02a628cdd36be9a2c2f59757f9c7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<template>
<li class="navlink">
<a v-if="external" class="link" :href="link">{{name}}</a>
<router-link v-else class="link" :to="link">{{ name }}</router-link>
</li>
</template>
<script>
export default {
props: {
link: String,
name: String,
external: { type: Boolean, default: false }
}
};
</script>
<style scoped>
.link {
text-decoration: none;
color: #181818;
}
.navlink {
list-style-type: none;
padding: 10px;
margin: 10px;
}
</style>
|