style(接口自动化): 步骤页面优化

This commit is contained in:
fit2-zhao 2021-01-22 14:06:45 +08:00
parent 38169542e2
commit 3c96877c1c
2 changed files with 13 additions and 1 deletions

View File

@ -86,6 +86,11 @@
if (!this.data.name) {
this.isShowInput = true;
}
if (this.$refs.nameEdit) {
this.$nextTick(() => {
this.$refs.nameEdit.focus();
});
}
},
methods: {
active() {

View File

@ -10,7 +10,8 @@
:title="$t('api_test.automation.wait_controller')">
<template v-slot:headerLeft>
<el-input-number class="time-input" size="small" v-model="timer.delay" :min="0" :step="1000"/> ms
<el-input-number class="time-input" size="small" v-model="timer.delay" :min="0" :step="1000" ref="nameInput"/>
ms
</template>
</api-base-component>
@ -18,6 +19,7 @@
<script>
import ApiBaseComponent from "../common/ApiBaseComponent";
export default {
name: "MsConstantTimer",
components: {ApiBaseComponent},
@ -32,6 +34,11 @@
data() {
return {}
},
created() {
this.$nextTick(() => {
this.$refs.nameInput.focus();
});
},
methods: {
remove() {
this.$emit('remove', this.timer, this.node);