fix(测试跟踪): 依赖关系图页面在窗口较小的情况下,头部按钮显示不全
--bug=1025875 --user=陈建星 【接口测试】接口定义、接口场景,单独和批量生成依赖关系,没有关闭按钮 https://www.tapd.cn/55049933/s/1369233 --bug=1025894 --user=陈建星 【测试跟踪】功能用例详情中查看依赖关系,没有关闭按钮 https://www.tapd.cn/55049933/s/1369232
This commit is contained in:
parent
2626394659
commit
e6cef61351
|
@ -10,12 +10,11 @@
|
|||
|
||||
<script>
|
||||
import MsDrawer from "../MsDrawer";
|
||||
import DrawerHeader from "../head/DrawerHeader";
|
||||
import MsChart from "../chart/MsChart";
|
||||
|
||||
export default {
|
||||
name: "RelationshipGraph",
|
||||
components: {MsChart, DrawerHeader, MsDrawer},
|
||||
components: {MsChart, MsDrawer},
|
||||
props: {
|
||||
data: Array, links: Array,
|
||||
width: [Number, String],
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<el-drawer :visible="visible" append-to-body>
|
||||
<ms-drawer :size="85" @close="close" direction="right" :show-full-screen="false"
|
||||
:is-show-close="false" style="height: auto">
|
||||
:is-show-close="false" style="height: auto" ref="msDrawer">
|
||||
<template v-slot:header>
|
||||
<drawer-header :title="$t('commons.relationship.graph')" @close="close" @export="exportCharts"/>
|
||||
</template>
|
||||
|
@ -77,6 +77,9 @@ export default {
|
|||
this.$refs.relationshipGraph.reload();
|
||||
});
|
||||
});
|
||||
if (this.$refs.msDrawer) {
|
||||
this.$refs.msDrawer.init();
|
||||
}
|
||||
},
|
||||
handleFinished() {
|
||||
// 滚动条设置居中
|
||||
|
|
|
@ -6,12 +6,7 @@
|
|||
<span class="title">{{ title }}</span>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="10" class="head-right">
|
||||
<el-button v-for="button in buttons" :disabled="button.disabled" :key="button.name" plain size="mini" @click="button.exec">
|
||||
{{ button.name }}
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-col :span="14">
|
||||
<div class="ms-export">
|
||||
<el-dropdown style="padding-left: 3rem">
|
||||
<span class="el-dropdown-link">
|
||||
|
@ -136,11 +131,11 @@ i.delimiter {
|
|||
position: relative;
|
||||
top: -2px;
|
||||
left: 15px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.ms-export {
|
||||
float: right;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.close-btn {
|
||||
|
|
Loading…
Reference in New Issue