Bilibili-Evolved/registry/lib/components/style/custom-navbar/CustomNavbarLink.vue
2021-10-26 13:19:37 +08:00

20 lines
272 B
Vue

<template>
<a
v-bind="$attrs"
:target="newTab ? '_blank' : null"
v-on="$listeners"
>
<slot />
</a>
</template>
<script lang="ts">
export default Vue.extend({
props: {
newTab: {
type: Boolean,
default: true,
},
},
})
</script>