Skip to content

Commit

Permalink
⚡️ 角色分享图添加水印
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Jul 11, 2024
1 parent cee7d19 commit ea5e568
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/devCharacter/duc-detail-overlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
<div class="duc-doc-lb">
<DucDetailOlb :model-value="JSON.parse(props.dataVal.constellation)" />
</div>
<!-- 底部水印信息 -->
<div class="duc-doc-bt">
UID: {{ props.dataVal.uid }} Updated: {{ props.dataVal.updated }} | Rendered by
TeyvatGuide v{{ version }}
</div>
</div>
<!-- 右侧箭头 -->
<div class="duc-arrow-right" @click="handleClick('right')">
Expand All @@ -41,6 +46,7 @@
</TOverlay>
</template>
<script lang="ts" setup>
import { app } from "@tauri-apps/api";
import { computed, onMounted, onUpdated, ref } from "vue";
import TGSqlite from "../../plugins/Sqlite/index.js";
Expand All @@ -64,6 +70,7 @@ type DucDetailOverlayEmits = {
const props = defineProps<DucDetailOverlayProps>();
const emits = defineEmits<DucDetailOverlayEmits>();
const version = await app.getVersion();
const visible = computed({
get: () => props.modelValue,
set: (value) => {
Expand Down Expand Up @@ -199,4 +206,13 @@ async function share(): Promise<void> {
left: 10px;
padding: 5px;
}
.duc-doc-bt {
position: absolute;
right: 10px;
bottom: -1px;
color: var(--tgc-white-1);
font-size: 12px;
text-shadow: 0 0 2px var(--tgc-dark-2);
}
</style>

0 comments on commit ea5e568

Please sign in to comment.