refactor: 接口定义列表切换添加提示
This commit is contained in:
parent
576b858977
commit
22cd448b0f
|
@ -1,9 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<el-card class="card-content" v-if="isShow">
|
<el-card class="card-content" v-if="isShow">
|
||||||
|
|
||||||
<el-button-group v-if="isShowChangeButton">
|
<el-button-group v-if="isShowChangeButton">
|
||||||
|
|
||||||
|
<el-tooltip class="item" effect="dark" content="接口列表" placement="left">
|
||||||
<el-button plain size="small" icon="el-icon-tickets" :class="{active: isApiListEnable}" @click="apiChange('api')"></el-button>
|
<el-button plain size="small" icon="el-icon-tickets" :class="{active: isApiListEnable}" @click="apiChange('api')"></el-button>
|
||||||
|
</el-tooltip>
|
||||||
|
|
||||||
|
<el-tooltip class="item" effect="dark" content="用例列表" placement="right">
|
||||||
<el-button plain class="case-button" size="small" icon="el-icon-paperclip" :class="{active: !isApiListEnable}" @click="caseChange('case')"></el-button>
|
<el-button plain class="case-button" size="small" icon="el-icon-paperclip" :class="{active: !isApiListEnable}" @click="caseChange('case')"></el-button>
|
||||||
|
</el-tooltip>
|
||||||
|
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
|
|
||||||
<template v-slot:header>
|
<template v-slot:header>
|
||||||
<slot name="header"></slot>
|
<slot name="header"></slot>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue