Commit c317ba4 1 parent c3c704e commit c317ba4 Copy full SHA for c317ba4
File tree 1 file changed +13
-0
lines changed
apps/client/components/main/QuestionInput
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 21
21
</div >
22
22
</template >
23
23
<input
24
+ lang =" en"
24
25
ref =" inputEl"
25
26
class =" absolute h-full w-full opacity-0"
26
27
type =" text"
35
36
autoFocus
36
37
/>
37
38
</div >
39
+ <div class =" mt-12 flex items-center justify-center md:hidden" >
40
+ <button
41
+ class =" btn btn-outline btn-sm"
42
+ @click =" handleSubmitAnswer"
43
+ >
44
+ 提交
45
+ </button >
46
+ </div >
38
47
</div >
39
48
</template >
40
49
@@ -117,6 +126,10 @@ function focusInputWhenWIndowFocus() {
117
126
});
118
127
}
119
128
129
+ function handleSubmitAnswer() {
130
+ submitAnswer (handleAnswerRight , handleAnswerError );
131
+ }
132
+
120
133
function getWordsClassNames(index : number ) {
121
134
const word = findWordById (index )! ;
122
135
// 当前单词激活 且 聚焦
You can’t perform that action at this time.
0 commit comments