Bilibili-Evolved/registry/lib/components/style/custom-navbar/CustomNavbarLink.vue
2022-10-12 23:27:58 +08:00

16 lines
257 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>