From 560546c3bc7d026b072cdde14ade8b9e754df571 Mon Sep 17 00:00:00 2001 From: Zyronon Date: Tue, 23 Dec 2025 19:48:04 +0800 Subject: [PATCH] wip --- src/assets/css/style.scss | 9 +- src/components/BaseButton.vue | 4 +- src/components/base/BaseInput.vue | 2 +- src/pages/word/PracticeWords.vue | 104 ++++++++- src/pages/word/WordsPage.vue | 103 ++++++--- src/pages/word/components/Footer.vue | 216 ++++++++++-------- .../word/components/PracticeSettingDialog.vue | 150 ++++++------ .../ShufflePracticeSettingDialog.vue | 22 +- src/types/types.ts | 6 +- 9 files changed, 392 insertions(+), 224 deletions(-) diff --git a/src/assets/css/style.scss b/src/assets/css/style.scss index e94aec23..4fbe6a3e 100644 --- a/src/assets/css/style.scss +++ b/src/assets/css/style.scss @@ -52,6 +52,7 @@ --btn-primary: rgb(75, 85, 99); --btn-info: white; + --btn-info-hover: #eaeaea; --color-primary: #E6E8EB; --color-second: rgb(247, 247, 247); @@ -119,7 +120,8 @@ html.dark { --color-sub-gray: #383737; --color-scrollbar: rgb(92, 93, 94); - --btn-info: transparent; + --btn-info: #1b1b1b; + --btn-info-hover: #3a3a3a; --color-input-color: white; --color-input-bg: rgba(14, 18, 23, 1); @@ -536,3 +538,8 @@ a { margin-left: 0 !important; } } + +.target-number { + @apply text-3xl! mx-2; + color: rgb(176, 116, 211)!important; +} diff --git a/src/components/BaseButton.vue b/src/components/BaseButton.vue index d0d3482e..a602240f 100644 --- a/src/components/BaseButton.vue +++ b/src/components/BaseButton.vue @@ -51,7 +51,7 @@ defineEmits(['click']) justify-content: center; outline: none; text-align: center; - transition: .1s; + transition: all .3s; user-select: none; vertical-align: middle; white-space: nowrap; @@ -121,7 +121,7 @@ defineEmits(['click']) color: var(--color-main-text); &:hover:not(.disabled) { - opacity: 0.6; + background: var(--btn-info-hover); } } diff --git a/src/components/base/BaseInput.vue b/src/components/base/BaseInput.vue index d57853b1..5ece795d 100644 --- a/src/components/base/BaseInput.vue +++ b/src/components/base/BaseInput.vue @@ -1,5 +1,5 @@ diff --git a/src/types/types.ts b/src/types/types.ts index 7a80f247..1af5fd77 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -226,7 +226,11 @@ export enum PracticeArticleWordType { //练习模式 export enum WordPracticeMode { System = 0, - Free = 1 + Free = 1, + DictationOnly = 2, // 独立默写模式 + ListenOnly = 3, // 独立听写模式 + IdentifyOnly = 4, // 独立自测模式 + FollowWriteOnly = 5 // 独立跟写模式(内部会自动切换到 Spell) } //练习类型