mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-16 04:03:17 +08:00
💄 优化成就信息展示和样式
This commit is contained in:
@@ -54,13 +54,16 @@ type TuaAchiListEmits = {
|
||||
|
||||
const props = defineProps<TuaAchiListProps>();
|
||||
const emits = defineEmits<TuaAchiListEmits>();
|
||||
|
||||
const nameCard = ref<string>();
|
||||
const showNc = ref<boolean>(false);
|
||||
const showOverlay = ref<boolean>(false);
|
||||
const isFinish = ref<boolean>(false);
|
||||
|
||||
const ncData = shallowRef<TGApp.App.NameCard.Item>();
|
||||
const achievements = shallowRef<Array<TGApp.Sqlite.Achievement.RenderAchi>>([]);
|
||||
const selectedAchi = shallowRef<TGApp.Sqlite.Achievement.RenderAchi>();
|
||||
|
||||
const renderAchi = computed<Array<TGApp.Sqlite.Achievement.RenderAchi>>(() => {
|
||||
if (props.hideFin) return achievements.value.filter((a) => !a.isCompleted);
|
||||
return achievements.value;
|
||||
@@ -183,8 +186,4 @@ function switchAchiInfo(next: boolean): void {
|
||||
.dark .card-arrow {
|
||||
filter: invert(11%) sepia(73%) saturate(11%) hue-rotate(139deg) brightness(97%) contrast(81%);
|
||||
}
|
||||
|
||||
.unfinish {
|
||||
filter: grayscale(1);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -11,11 +11,13 @@
|
||||
</v-icon>
|
||||
</div>
|
||||
<div class="achi-pre-info">
|
||||
<span>
|
||||
<div class="achi-pre-info__title">
|
||||
<span>{{ data.name }}</span>
|
||||
<span v-if="data.progress !== 0">{{ data.progress }}</span>
|
||||
</span>
|
||||
<span>{{ data.description }}</span>
|
||||
<span v-if="data.progress !== 0" class="achi-pre-info__progress">
|
||||
{{ data.progress }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="achi-pre-info__desc">{{ data.description }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="achi-append">
|
||||
@@ -155,24 +157,30 @@ async function setAchiStat(stat: boolean): Promise<void> {
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.achi-pre-info :nth-child(1) {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
column-gap: 4px;
|
||||
font-family: var(--font-title);
|
||||
font-size: 14px;
|
||||
}
|
||||
&__title {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
column-gap: 4px;
|
||||
font-family: var(--font-title);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.achi-pre-info :nth-child(1) :nth-child(2) {
|
||||
color: var(--tgc-blue-2);
|
||||
font-size: 12px;
|
||||
}
|
||||
&__desc {
|
||||
font-size: 12px;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.achi-pre-info :nth-child(2) {
|
||||
font-size: 12px;
|
||||
opacity: 0.8;
|
||||
&__progress {
|
||||
@include github-styles.github-tag-dark-gen(#00aeec);
|
||||
padding: 0 4px;
|
||||
border-radius: 4px;
|
||||
height: 21px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.achi-append-icon span {
|
||||
|
||||
@@ -23,6 +23,8 @@ const props = defineProps<TucOverviewProps>();
|
||||
|
||||
function getTitle(): string {
|
||||
switch (props.data.difficulty_id) {
|
||||
case 0:
|
||||
return "未选择";
|
||||
case 1:
|
||||
return "轻简模式";
|
||||
case 2:
|
||||
|
||||
Reference in New Issue
Block a user