fix
This commit is contained in:
@@ -9,6 +9,7 @@ import type {
|
|||||||
AchievementSummary,
|
AchievementSummary,
|
||||||
} from "utils/types"
|
} from "utils/types"
|
||||||
import AchievementCard from "./components/AchievementCard.vue"
|
import AchievementCard from "./components/AchievementCard.vue"
|
||||||
|
import { NH2, NH4 } from "naive-ui"
|
||||||
|
|
||||||
interface UserBadge {
|
interface UserBadge {
|
||||||
id: number
|
id: number
|
||||||
@@ -80,7 +81,6 @@ watch(name, load)
|
|||||||
<template>
|
<template>
|
||||||
<div class="hall">
|
<div class="hall">
|
||||||
<n-card v-if="summary">
|
<n-card v-if="summary">
|
||||||
<!-- 窄屏也不折行:圆环缩小,间距收窄,抬头始终一行 -->
|
|
||||||
<n-flex align="center" :wrap="false" :size="isDesktop ? 32 : 16">
|
<n-flex align="center" :wrap="false" :size="isDesktop ? 32 : 16">
|
||||||
<n-flex vertical align="center" :size="6">
|
<n-flex vertical align="center" :size="6">
|
||||||
<n-progress
|
<n-progress
|
||||||
@@ -88,7 +88,9 @@ watch(name, load)
|
|||||||
:percentage="summary.percent"
|
:percentage="summary.percent"
|
||||||
:stroke-width="8"
|
:stroke-width="8"
|
||||||
>
|
>
|
||||||
|
<component :is="isDesktop ? NH2 : NH4">
|
||||||
{{ summary.percent }}%
|
{{ summary.percent }}%
|
||||||
|
</component>
|
||||||
</n-progress>
|
</n-progress>
|
||||||
<n-text depth="3" class="nowrap">
|
<n-text depth="3" class="nowrap">
|
||||||
已获得 {{ summary.unlocked }} / {{ summary.total }}
|
已获得 {{ summary.unlocked }} / {{ summary.total }}
|
||||||
@@ -124,7 +126,7 @@ watch(name, load)
|
|||||||
</n-flex>
|
</n-flex>
|
||||||
</n-card>
|
</n-card>
|
||||||
|
|
||||||
<n-tabs v-model:value="tab" type="line" class="tabs">
|
<n-tabs v-model:value="tab" animated type="line" class="tabs">
|
||||||
<n-tab name="all">全部</n-tab>
|
<n-tab name="all">全部</n-tab>
|
||||||
<n-tab name="unlocked">已获得</n-tab>
|
<n-tab name="unlocked">已获得</n-tab>
|
||||||
<n-tab name="locked">未获得</n-tab>
|
<n-tab name="locked">未获得</n-tab>
|
||||||
@@ -181,7 +183,6 @@ watch(name, load)
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
/* 卡片有 1100px 宽,不封顶的话 6px 高的细条会被拉到近 900px,读起来很空 */
|
|
||||||
.rarity {
|
.rarity {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
max-width: 420px;
|
max-width: 420px;
|
||||||
|
|||||||
Reference in New Issue
Block a user