mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
16 lines
257 B
Vue
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>
|