mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-25 05:29:45 +08:00
♻️ 剔除名片JSON冗余数据
This commit is contained in:
@@ -3,7 +3,12 @@
|
||||
<div v-if="props.data" class="ton-container">
|
||||
<slot name="left"></slot>
|
||||
<div class="ton-box">
|
||||
<img alt="bg" class="ton-bg" v-if="props.data" :src="props.data.profile" />
|
||||
<img
|
||||
alt="bg"
|
||||
class="ton-bg"
|
||||
v-if="props.data"
|
||||
:src="`/WIKI/nameCard/profile/${props.data.name}.webp`"
|
||||
/>
|
||||
<div class="ton-content">
|
||||
<span>{{ props.data.name }}</span>
|
||||
<span>{{ parseNameCard(props.data.desc) }}</span>
|
||||
|
||||
@@ -5,7 +5,11 @@
|
||||
<span :title="props.data.desc">{{ props.data.desc }}</span>
|
||||
</template>
|
||||
<template #prepend>
|
||||
<v-img width="80px" style="margin-right: 10px" :src="props.data.icon" />
|
||||
<v-img
|
||||
width="80px"
|
||||
style="margin-right: 10px"
|
||||
:src="`/WIKI/nameCard/icon/${props.data.name}.webp`"
|
||||
/>
|
||||
</template>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
@@ -21,7 +25,7 @@ const emit = defineEmits<TopNameCardEmits>();
|
||||
|
||||
const bgImage = computed<string>(() => {
|
||||
if (props.data.name === "原神·印象") return "none;";
|
||||
return `url("${props.data.bg}")`;
|
||||
return `url("/WIKI/nameCard/bg/${props.data.name}.webp")`;
|
||||
});
|
||||
</script>
|
||||
<style lang="css" scoped>
|
||||
|
||||
Reference in New Issue
Block a user