Skip to content

Commit

Permalink
Fix label
Browse files Browse the repository at this point in the history
  • Loading branch information
joyce.zhou committed Aug 23, 2023
1 parent 92036a8 commit 5696564
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
30 changes: 15 additions & 15 deletions src/components/HubSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ onMounted(() => {
class="device-form"
style="margin: 0 0 15px 10px"
>
<el-form-item label="$t('agent.hub.voltage')">
<el-form-item :label="$t('agent.hub.voltage')">
<div
:style="{
position: 'relative',
Expand Down Expand Up @@ -191,7 +191,7 @@ onMounted(() => {
}}
</div>
</el-form-item>
<el-form-item label="$t('agent.hub.temperature')">
<el-form-item :label="$t('agent.hub.temperature')">
<div
:style="{
position: 'relative',
Expand Down Expand Up @@ -240,7 +240,7 @@ onMounted(() => {
}}
</div>
</el-form-item>
<el-form-item label="$t('agent.hub.voltage')">
<el-form-item :label="$t('agent.hub.voltage')">
<div
:style="{
position: 'relative',
Expand Down Expand Up @@ -284,7 +284,7 @@ onMounted(() => {
<div style="text-align: center">
<el-popover :width="400" trigger="click">
<el-table border :data="devices">
<el-table-column header-align="center" label="$t('agent.hub.info')">
<el-table-column header-align="center" :label="$t('agent.hub.info')">
<template #default="scope">
<RenderDeviceName :device="scope.row" />
</template>
Expand All @@ -296,20 +296,20 @@ onMounted(() => {
property="udId"
label="udId"
/>
<el-table-column align="center" width="100" label="$t('agent.hub.action')">
<el-table-column align="center" width="100" :label="$t('agent.hub.action')">
<template #default="scope">
<el-button
type="primary"
size="mini"
:disabled="scope.row.id === device.id"
@click="updatePosition(scope.row.id, i + 1 + j * 5)"
>$t('agent.hub.relate')
>{{$t('agent.hub.relate')}}
</el-button>
</template>
</el-table-column>
</el-table>
<template #reference>
<el-button size="mini"> $t('agent.hub.switch') </el-button>
<el-button size="mini"> {{$t('agent.hub.switch')}} </el-button>
</template>
</el-popover>
<el-button
Expand All @@ -336,7 +336,7 @@ onMounted(() => {
<div style="text-align: center">
<el-popover :width="400" trigger="click">
<el-table border :data="devices">
<el-table-column header-align="center" label="$t('agent.hub.info')">
<el-table-column header-align="center" :label="$t('agent.hub.info')">
<template #default="scope">
<RenderDeviceName :device="scope.row" />
</template>
Expand All @@ -348,34 +348,34 @@ onMounted(() => {
property="udId"
label="udId"
/>
<el-table-column align="center" width="100" label="$t('agent.hub.action')">
<el-table-column align="center" width="100" :label="$t('agent.hub.action')">
<template #default="scope">
<el-button
type="primary"
size="mini"
@click="updatePosition(scope.row.id, i + 1 + j * 5)"
>$t('agent.hub.relate')
>{{$t('agent.hub.relate')}}
</el-button>
</template>
</el-table-column>
</el-table>
<template #reference>
<el-button size="mini"> $t('agent.hub.relate') </el-button>
<el-button size="mini"> {{$t('agent.hub.relate')}} </el-button>
</template>
</el-popover>
<el-button
type="primary"
size="mini"
@click="hubControl(i + 1 + j * 5, 'up')"
>
$t('agent.hub.poweron')
{{$t('agent.hub.poweron')}}
</el-button>
<el-button
type="danger"
size="mini"
@click="hubControl(i + 1 + j * 5, 'down')"
>
$t('agent.hub.poweroff')
{{$t('agent.hub.poweroff')}}
</el-button>
</div>
</el-card>
Expand All @@ -384,10 +384,10 @@ onMounted(() => {
</div>
<div style="text-align: center; margin-top: 20px">
<el-button type="primary" size="mini" @click="hubControl(11, 'up')">
$t('agent.hub.allpoweron')
{{$t('agent.hub.allpoweron')}}
</el-button>
<el-button type="danger" size="mini" @click="hubControl(11, 'down')">
$t('agent.hub.allpoweroff')
{{$t('agent.hub.allpoweroff')}}
</el-button>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/StepShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const getNotes = (text, type) => {
<el-collapse-item>
<template #title>
<el-tag size="small" type="warning" style="margin-right: 10px"
>{{$t('stepDetail.runSelfDefinedScript')}} {{ getNotes(step.content, step.text) }}</el-tag
>{{$t('stepDetail.runSelfDefinedScript') + getNotes(step.content, step.text) }}</el-tag
>
{{$t('stepDetail.click.expandOrCollapse')}}
<el-icon>
Expand Down Expand Up @@ -195,7 +195,7 @@ const getNotes = (text, type) => {
<el-tag type="info" size="small" style="margin-right: 10px">{{
step.elements[0]['eleName']
}}</el-tag>
<el-tag size="small">{{$t('stepDetail.topVisable')}}</el-tag>
<el-tag size="small">{{$t('stepDetail.topVisible')}}</el-tag>
</span>
<span v-if="step.stepType === 'lock'">
<el-tag size="small">{{$t('stepDetail.label.androidOptions.system.rotateDevice.lock')}}</el-tag>
Expand All @@ -217,7 +217,7 @@ const getNotes = (text, type) => {
</span>
<span v-if="step.stepType === 'switchTouchMode'">
<el-tag size="small" style="margin-right: 10px">{{$t('stepDetail.set.touchMode')}}</el-tag
>{{$t('stepDetail.set.to')}}:{{ step.content }} {{$t('stepDetail.mode')}}
>{{$t('stepDetail.set.to') + ":" + step.content + $t('stepDetail.mode')}}
</span>
<span v-if="step.stepType === 'keyCode' || step.stepType === 'keyCodeSelf'">
<el-tag size="small">{{$t('stepDetail.pressSys')}}{{ step.content }}{{$t('stepDetail.key')}}</el-tag>
Expand Down
4 changes: 2 additions & 2 deletions src/locales/lang/en_US.js
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ const stepDetail = {
status: 'Status',
stepInterval: 'Step Interval',
stepType: 'Step Type',
screenCenter: 'Screen Center',
screenCenter: 'From Screen Center to',
stepTypeInput: 'Please Enter Step Type',
sendSiriCmd: 'Send SIRI Command',
set: {
Expand Down Expand Up @@ -1617,7 +1617,7 @@ const stepDetail = {
text: 'Text',
textIdentifyInImage: 'Text Idetify In Image',
times: 'times',
topVisable: 'Top Visable',
topVisible: 'Top Visible',
turnLeft: 'Turn Screen Left',
turnRight: 'Turn Screen Right',
targetAttr: 'Target Attribute',
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 @@ -1518,7 +1518,7 @@ const stepDetail = {
text: '文本',
textIdentifyInImage: '图像文字识别',
times: '次',
topVisable: '至顶部可见',
topVisible: '至顶部可见',
usePublicSteps: '使用公共步骤',
unknownScrollSideType: '未知滚动方向类型',
upwards: '向上',
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 @@ -1578,7 +1578,7 @@ const stepDetail = {
text: '文本',
textIdentifyInImage: '图像文字识别',
times: '次',
topVisable: '至顶部可见',
topVisible: '至顶部可见',
usePublicSteps: '使用公共步骤',
unknownScrollSideType: '未知滚动方向类型',
upwards: '向上',
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 @@ -1515,7 +1515,7 @@ const stepDetail = {
text: '文本',
textIdentifyInImage: '图像文字识别',
times: '次',
topVisable: '至顶部可见',
topVisible: '至顶部可见',
usePublicSteps: '使用公共步骤',
unknownScrollSideType: '未知滚动方向类型',
upwards: '向上',
Expand Down

0 comments on commit 5696564

Please sign in to comment.