Skip to content

Commit

Permalink
feat: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Jun 14, 2023
1 parent 970e715 commit 2bbc59e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
15 changes: 11 additions & 4 deletions src/components/StepShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const getScrollToDire = (direction) => {
default:
return '未知滚动方向类型';
}
}
};
const getEleResult = (s) => {
const ss = s.toUpperCase();
if (ss.indexOf('POCO') !== -1) {
Expand Down Expand Up @@ -650,10 +650,17 @@ const getNotes = (text, type) => {
</span>
<span v-if="step.stepType === 'scrollToEle'">
<el-tag size="small"
>{{getScrollToDire(step.text)}}滚动到{{ getEleResult(step.stepType) }}控件元素</el-tag
>{{ getScrollToDire(step.text) }}滚动到{{
getEleResult(step.stepType)
}}控件元素</el-tag
>
<el-tag
type="info"
size="small"
style="margin-left: 10px; margin-right: 10px"
>{{ step.elements[0]['eleName'] }}</el-tag
>
<el-tag type="info" size="small" style="margin-left: 10px; margin-right: 10px">{{ step.elements[0]['eleName'] }}</el-tag>
最多尝试{{step.content}}次
最多尝试{{ step.content }}次
</span>
<span>
<el-tag
Expand Down
22 changes: 18 additions & 4 deletions src/components/StepUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2033,7 +2033,11 @@ onMounted(() => {
trigger: 'change',
}"
>
<el-input-number v-model="step.content" :min="1" :step="1"></el-input-number>
<el-input-number
v-model="step.content"
:min="1"
:step="1"
></el-input-number>
<span style="margin-left: 10px">次</span>
</el-form-item>
</div>
Expand Down Expand Up @@ -2705,7 +2709,12 @@ onMounted(() => {
<el-table-column>
<template #default="scope">
<el-popover
:disabled="step.platform===2 && (scope.row.name ==='isOpenH5Listener' || scope.row.name ==='isOpenActivityListener' || scope.row.name ==='isOpenNetworkListener')"
:disabled="
step.platform === 2 &&
(scope.row.name === 'isOpenH5Listener' ||
scope.row.name === 'isOpenActivityListener' ||
scope.row.name === 'isOpenNetworkListener')
"
placement="top"
:width="200"
trigger="hover"
Expand All @@ -2728,9 +2737,14 @@ onMounted(() => {
:step="10"
></el-input-number>
<el-switch
:disabled="step.platform===2 && (scope.row.name ==='isOpenH5Listener' || scope.row.name ==='isOpenActivityListener' || scope.row.name ==='isOpenNetworkListener')"
v-else
v-model="scope.row.value"
:disabled="
step.platform === 2 &&
(scope.row.name === 'isOpenH5Listener' ||
scope.row.name === 'isOpenActivityListener' ||
scope.row.name === 'isOpenNetworkListener')
"
active-color="#13ce66"
inactive-color="#ff4949"
>
Expand All @@ -2739,7 +2753,7 @@ onMounted(() => {
</el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane label="Activity黑名单" v-if="step.platform===1">
<el-tab-pane v-if="step.platform === 1" label="Activity黑名单">
<el-table :data="activityList" border :show-header="false">
<el-table-column>
<template #default="scope">
Expand Down

0 comments on commit 2bbc59e

Please sign in to comment.