mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
937 B
40 lines
937 B
2 years ago
|
<template>
|
||
|
<div class="link-wrap">
|
||
|
<div class="link-item" v-for="link in props.links" :key="link.id">
|
||
|
<n-icon class="hash-link"><link-outline /></n-icon>
|
||
|
<a
|
||
|
:href="link.content"
|
||
|
class="hash-link"
|
||
|
target="_blank"
|
||
|
@click.stop
|
||
|
>
|
||
|
<span class="link-txt">{{ link.content }}</span>
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
2 years ago
|
<script setup lang="ts">
|
||
2 years ago
|
import { LinkOutline } from '@vicons/ionicons5';
|
||
2 years ago
|
const props = withDefaults(defineProps<{
|
||
|
links: Item.PostProps[]
|
||
|
}>(), {
|
||
|
links: () => []
|
||
2 years ago
|
});
|
||
|
</script>
|
||
|
|
||
|
<style lang="less" scoped>
|
||
|
.link-wrap {
|
||
|
margin-bottom: 10px;
|
||
|
.link-item {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
.hash-link {
|
||
|
.link-txt {
|
||
|
margin-left: 4px;
|
||
|
word-break: break-all;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</style>
|