1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-25 22:02:58 +03:00
guide/front/client/components/ALink.vue
avele 845a7a671e
feat/category item info edit (#250)
* added search results nothing found text

* removed external spaces and lines

* Item info update
2018-12-13 16:02:37 +04:00

20 lines
394 B
Vue

<template>
<a
class="link"
:target="openInNewTab ? '_blank': ''"
:rel="openInNewTab ? 'noopener noreferrer': ''"
:href="url"
>
<slot />
</a>
</template>
<script lang="ts">
import { Prop, Component, Vue } from 'vue-property-decorator'
@Component
export default class ALink extends Vue {
@Prop(Boolean) openInNewTab!: boolean
@Prop(String) url!: string
}
</script>