From 176eb6ebc009520baa0f7c2054692d1ed31c9ae8 Mon Sep 17 00:00:00 2001 From: zyronon Date: Wed, 30 Aug 2023 18:57:46 +0800 Subject: [PATCH] save --- src/components/Type.vue | 8 -- src/components/TypeArticle.vue | 157 +++++++++++++++++++++++++++------ 2 files changed, 131 insertions(+), 34 deletions(-) diff --git a/src/components/Type.vue b/src/components/Type.vue index e168db96..b7a02d9b 100644 --- a/src/components/Type.vue +++ b/src/components/Type.vue @@ -79,14 +79,6 @@ function next() { } else { store.current.index++ - // var msg = new SpeechSynthesisUtterance(); - // // msg.text = store.word.name - // msg.text = 'Hawaii wildfires burn historic town of Lahaina to the ground' - // msg.rate = 0.8; - // msg.pitch = 1; - // msg.lang = 'en-US'; - // window.speechSynthesis.speak(msg); - console.log('这个词完了') } if ([DictType.custom, DictType.inner].includes(store.current.dictType) && store.skipWordNames.includes(store.word.name)) { diff --git a/src/components/TypeArticle.vue b/src/components/TypeArticle.vue index 65b413ac..d992350d 100644 --- a/src/components/TypeArticle.vue +++ b/src/components/TypeArticle.vue @@ -1,36 +1,127 @@ @@ -47,7 +138,21 @@ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace; letter-spacing: 0rem; color: gray; + white-space: pre-line; + span { + //background: red; + //margin-right: 50rem; + } + + .word { + margin-right: 10rem; + } + } + + .input { + position: fixed; + left: 100vw; } } \ No newline at end of file