feat 完善注释

This commit is contained in:
Ironsp
2026-10-01 17:24:57 +08:00
parent 2b59f68fd7
commit 9f4a5c7cda
183 changed files with 485 additions and 3615 deletions

View File

@@ -3,7 +3,6 @@ import { computed, onMounted, ref } from 'vue'
import { useCountDown } from '@/composables/useCountDown'
interface Props {
/** 二维码有效期(秒),默认 4:32 */
expiresIn?: number
size?: number
}
@@ -67,10 +66,9 @@ onMounted(() => {
</template>
<style lang="less" scoped>
// 扫码面板(设计 39:灰色二维码占位块 + 红色倒计时胶囊 + 灰色小字提示)
.qr-panel {
.flex(column, center);
gap: 17px; // 二维码 → 倒计时(设计 22 × 0.77)
gap: 17px;
&__box {
.flex(column, center);
@@ -99,23 +97,22 @@ onMounted(() => {
text-align: center;
}
// 状态行:胶囊(倒计时)+ 下方灰色提示,整体居中
&__status {
display: flex;
flex-direction: column;
align-items: center;
gap: @spacing-sm;
font-size: 11px; // 设计 13/11 → 可读下限
font-size: 11px;
color: @text-color-disabled;
}
&__countdown {
display: inline-flex;
align-items: center;
padding: 8px 16px; // 胶囊高 42 设计 × 0.77
padding: 8px 16px;
border-radius: @radius-round;
background: fade(@danger-color, 8%);
color: @danger-color; // 设计 39 实取 @danger-color
color: @danger-color;
line-height: 1.4;
}