Skip to content

Commit

Permalink
fix: input
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Nov 17, 2022
1 parent dba9788 commit ac69d81
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/components/StepShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const summitStep = () => {
{{ step.content }}
</span>
<span v-if="step.stepType === 'sendKeyForce'">
<el-tag size="small" style="margin-right: 10px">键盘输入</el-tag>
<el-tag size="small" style="margin-right: 10px">输入法输入</el-tag>
{{ step.content }}
</span>
<span v-if="step.stepType === 'sendKeysByActions'">
Expand Down
2 changes: 1 addition & 1 deletion src/components/StepUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ const androidOptions = ref([
},
{
value: 'sendKeyForce',
label: '键盘输入',
label: 'Sonic输入法输入',
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion src/locales/lang/en_US.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ const androidRemoteTS = {
remoteControlPanel: 'Remote control panel',
inputText: 'Enter text',
pleaseText: 'Enter the text to send, CHS is supported',
send: 'Send',
send: 'Clear Text',
remoteADB: 'Remote ADB',
noAgent: 'The Agent is not enabled!',
UIAutomator2ServerInit: 'Initialize UIAutomator2Server',
Expand Down
2 changes: 1 addition & 1 deletion src/locales/lang/ja_JP.js
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ const androidRemoteTS = {
remoteControlPanel: '远控面板',
inputText: '输入文本',
pleaseText: '请输入要发送的文本,支持简体中文',
send: '发送',
send: '清空输入框',
remoteADB: '远程ADB',
noAgent: '所在Agent未开启该功能!',
UIAutomator2ServerInit: '初始化UIAutomator2Server',
Expand Down
2 changes: 1 addition & 1 deletion src/locales/lang/zh_CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ const androidRemoteTS = {
remoteControlPanel: '远控面板',
inputText: '输入文本',
pleaseText: '请输入要发送的文本,支持简体中文',
send: '发送',
send: '清空输入框',
remoteADB: '远程ADB',
noAgent: '所在Agent未开启该功能!',
UIAutomator2ServerInit: '初始化UIAutomator2Server',
Expand Down
2 changes: 1 addition & 1 deletion src/locales/lang/zh_TW.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ const androidRemoteTS = {
remoteControlPanel: '遠控面板',
inputText: '輸入文本',
pleaseText: '請輸入要發送的文字,支援繁體中文',
send: '發送',
send: '清空输入框',
remoteADB: '遠端ADB',
noAgent: '所在Agent未開啟該功能!',
UIAutomator2ServerInit: '初始化UIAutomator2Server',
Expand Down
21 changes: 4 additions & 17 deletions src/views/RemoteEmulator/AndroidRemote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1633,11 +1633,11 @@ const scan = (url) => {
})
);
};
const sendText = (text) => {
const sendText = () => {
websocket.send(
JSON.stringify({
type: 'text',
detail: text,
detail: 'CODE_AC_CLEAN',
})
);
};
Expand Down Expand Up @@ -2565,21 +2565,8 @@ onMounted(() => {
<template #header>
<strong>{{ $t('androidRemoteTS.code.inputText') }}</strong>
</template>
<el-form size="small" :model="text">
<el-form-item>
<el-input
v-model="text.content"
clearable
size="small"
:placeholder="$t('androidRemoteTS.code.pleaseText')"
></el-input>
</el-form-item>
</el-form>
<div style="text-align: center">
<el-button
size="mini"
type="primary"
@click="sendText(text.content)"
<div style="text-align: center; margin: 22px 0px">
<el-button size="mini" type="primary" @click="sendText"
>{{ $t('androidRemoteTS.code.send') }}
</el-button>
</div>
Expand Down

0 comments on commit ac69d81

Please sign in to comment.