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

View File

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

View File

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

View File

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