style(接口自动化): 步骤页面优化
This commit is contained in:
parent
38169542e2
commit
3c96877c1c
|
@ -86,6 +86,11 @@
|
|||
if (!this.data.name) {
|
||||
this.isShowInput = true;
|
||||
}
|
||||
if (this.$refs.nameEdit) {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.nameEdit.focus();
|
||||
});
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
active() {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue