This commit is contained in:
Shikong 2023-07-16 01:40:50 +08:00
parent 772a2abd16
commit 3cc53518c1
3 changed files with 10 additions and 6 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="mx-2">
<div class="mx-1">
<el-config-provider v-bind="globalConfig">
<router-view v-slot="{ Component, route }">
<transition name="fade" mode="out-in">

View File

@ -91,7 +91,6 @@ function tabRemove(name){
<template>
<el-tabs v-model="tab" @tab-change="tabChange" @tab-remove="tabRemove" style="height:100%" class="tab-scaffold">
<el-tab-pane
v-for="item in tabs"
:key="item.name"
@ -100,8 +99,13 @@ function tabRemove(name){
:name="item.name">
<router-view v-slot="{ Component, route }">
<transition name="fade" mode="out-in">
<el-scrollbar height="100%" class="scroll-bar">
<div class="h-full">
<el-scrollbar class="scroll-bar">
<div class="h-full mx-1.5">
<component v-if="route.meta.keepAlive != null && route.meta.keepAlive === false" :is="Component" :key="route.path"/>
<keep-alive v-else>
<component :is="Component" :key="route.path"/>
</keep-alive>
<component v-if="route.meta.keepAlive != null && route.meta.keepAlive === false" :is="Component" :key="route.path"/>
<keep-alive v-else>
<component :is="Component" :key="route.path"/>

View File

@ -40,7 +40,7 @@ GetAllEnv().then((data)=>{
</script>
<template>
<div style="height: 100%">
<el-auto-resizer>
<template #default="{ height, width}">
<el-table-v2 mb-1 :height="height" :width="width" :data="table.data" :columns="table.columns" ref="tableRef">
@ -62,7 +62,7 @@ GetAllEnv().then((data)=>{
</el-table-v2>
</template>
</el-auto-resizer>
</div>
</template>
<style scoped>