fix(接口测试): 接口自动化中场景导入、接口列表导入 将复制和引用按钮放到右上角 列表高度放大可以多显示几行数据

This commit is contained in:
wxg0103 2021-12-06 17:27:14 +08:00 committed by 刘瑞斌
parent 02ae114804
commit 04c2e722e1
4 changed files with 25 additions and 14 deletions

View File

@ -25,7 +25,7 @@
:custom-num="customNum"
ref="apiScenarioList"/>
<template v-slot:header>
<template v-slot:headerBtn>
<el-button type="primary" @click="copy" :loading="buttonIsWorking" @keydown.enter.native.prevent>
{{ $t('commons.copy') }}
</el-button>

View File

@ -12,7 +12,7 @@
<script>
export default {
name: "MsDialogFooter",
name: "MsDialogHeader",
props: {
isShow: {
type: Boolean,
@ -22,7 +22,7 @@ export default {
btnSize: {
type: String,
default() {
return '';
return 'mini';
}
}
},
@ -43,8 +43,7 @@ export default {
<style scoped>
.dialog-header {
position: absolute;
top: 40px;
top: 20px;
right: 20px;
padding: 0;
background: 0 0;

View File

@ -8,7 +8,7 @@
top="50px" append-to-body>
<el-header class="header-btn">
<slot name="header"></slot>
<slot name="headerBtn"></slot>
</el-header>
<el-container class="main-content">
@ -24,9 +24,9 @@
</el-container>
<!-- <template v-slot:footer>
<slot name="footer"></slot>
</template>-->
<template v-slot:footer>
<slot name="footer"></slot>
</template>
</el-dialog>
</template>
@ -83,6 +83,7 @@
border: none;
outline: 0;
cursor: pointer;
height: 30px;
}
</style>

View File

@ -1,18 +1,18 @@
<template>
<relevance-dialog :width="width" :title="dialogTitle" ref="relevanceDialog">
<template v-slot:headerBtn>
<template v-slot:header>
<div v-if="$slots.header">
<slot name="header"></slot>
<div v-if="$slots.headerBtn">
<slot name="headerBtn"></slot>
</div>
<div v-else>
<div style="margin-bottom: 15px" v-if="flag">
<div style="margin-bottom: 5px" v-if="flag">
<el-checkbox v-model="checked">{{ $t('test_track.sync_add_api_load') }}</el-checkbox>
</div>
<ms-dialog-header @cancel="close" v-loading="isSaving" @confirm="save"/>
</div>
</template>
<template v-slot:aside>
<select-menu
:data="projects"
@ -26,7 +26,18 @@
<slot></slot>
<!-- <template v-slot:footer>
<div v-if="$slots.footer">
<slot name="footer"></slot>
</div>
<div v-else>
<div style="margin-bottom: 15px" v-if="flag">
<el-checkbox v-model="checked">{{ $t('test_track.sync_add_api_load') }}</el-checkbox>
</div>
<ms-dialog-footer @cancel="close" v-loading="isSaving" @confirm="save"/>
</div>
</template>-->
</relevance-dialog>
</template>