diff --git a/src/pages/index/index.ux b/src/pages/index/index.ux index 5813ed0..6b8e200 100644 --- a/src/pages/index/index.ux +++ b/src/pages/index/index.ux @@ -120,31 +120,35 @@
- + +
{{inputText}}
-
+ +
qwertyuiop
-
+
asdfghjkl
-
+
zxcvbnm
-
+
1234567890
-
- 帮我看看任务 - 总结一下 - 停止 - 继续 + +
+ 一的是了我不人在他有 +
+
+ 这中大为上国个到说们
+ {{kbMode === 'en' ? '中' : 'Abc'}} 空格 退格 收起 @@ -281,6 +285,7 @@ export default { serverValue: 'ws://127.0.0.1:8787', showFontPicker: false, showKeyboard: false, + kbMode: 'en', showOptionPicker: false, pickerTitle: '', pickerOptions: [], @@ -394,6 +399,14 @@ export default { this.inputText = (this.inputText + ph).slice(0, 80) }, + kbChar(ch) { + this.inputText = (this.inputText + ch).slice(0, 80) + }, + + kbToggleZh() { + this.kbMode = this.kbMode === 'en' ? 'zh' : 'en' + }, + kbSpace() { this.inputText = (this.inputText + ' ').slice(0, 80) }, @@ -1032,11 +1045,21 @@ export default { font-size: 17px; } +.kb-backdrop { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.35); +} + .kb-keys { width: 100%; flex-direction: column; } + .kb-row { width: 100%; flex-direction: row; @@ -1061,6 +1084,11 @@ export default { width: 64px; } +.kb-char { + width: 30px; + font-size: 16px; +} + .kb-phrase { width: auto; min-width: 56px; @@ -1072,19 +1100,43 @@ export default { color: #08131f; } +.new-session { + width: 100%; + height: 42px; + margin-top: 6px; + margin-bottom: 8px; + border-radius: 21px; + background-color: rgba(51,180,255,0.16); + border: 1px solid rgba(120,200,255,0.28); + color: #e6f0ff; + font-size: 16px; +} + +.page-title.small { + font-size: 16px; + color: #9db3d8; + margin-top: 6px; + margin-bottom: 2px; +} + +.ws-group { + width: 100%; + flex-direction: column; +} + .ws-name { color: #9db3d8; - font-size: 15px; + font-size: 16px; font-weight: bold; - margin-top: 10px; + margin-top: 8px; margin-bottom: 4px; } .sel-conv { width: 100%; - min-height: 40px; + min-height: 42px; flex-direction: row; - justify-content: flex-start; + justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 10px; @@ -1092,8 +1144,19 @@ export default { margin-bottom: 6px; } -.sel-conv text { +.sel-title { color: #e6f0ff; font-size: 16px; + flex: 1; +} + +.sel-time { + color: #8895ad; + font-size: 13px; +} + +.sel-active { + background-color: rgba(51,180,255,0.22); + border: 1px solid #33b4ff; }