style:修改ternimal打开动画

This commit is contained in:
zhangyu
2020-07-15 14:21:10 +08:00
parent 7f163965c3
commit 514b907c97

View File

@@ -2,10 +2,19 @@
@import './webSSH.scss'; @import './webSSH.scss';
</style> </style>
<template> <template>
<div id="shell-service" data-yunlog-scope="popup" :class="{'shell-service-max': isFullScreen}" v-show="consoleShow"> <el-drawer
:visible.sync="consoleShow"
direction="btt"
:close-on-press-escape="false"
:modal="false"
:withHeader="false"
>
<div id="shell-service" data-yunlog-scope="popup" :class="{'shell-service-max': isFullScreen,'shell-service':true}">
<div id="shell-service-resize-mask"></div> <div id="shell-service-resize-mask"></div>
<div id="shell-split" class="shell-split shell-iconfont" @mousedown="dragEagle" v-show="!isFullScreen"></div> <div id="shell-split" class="shell-split shell-iconfont" @mousedown="dragEagle" v-show="!isFullScreen"></div>
<div style='position: relative;'> <div style='position: relative;'>
<!--el-drawer 打开后会对第一个未隐藏的元素聚焦 所以添加一隐藏的input 防止聚焦-->
<input style='width: 0;height: 0;opacity: 0;display: inherit;' />
<el-menu mode="horizontal" @select="handleSelect" style='position: absolute;left:0px;top:0px;border-top: 1px solid #DCDFE6;'> <el-menu mode="horizontal" @select="handleSelect" style='position: absolute;left:0px;top:0px;border-top: 1px solid #DCDFE6;'>
<el-submenu index="1" style="width:40px;" popper-class="fontSizeBox"> <el-submenu index="1" style="width:40px;" popper-class="fontSizeBox">
<template slot="title" ><i class="nz-icon nz-icon-728bianjiqi_zitidaxiao" style="position: absolute;left: 10px;top: 4px;"></i></template> <template slot="title" ><i class="nz-icon nz-icon-728bianjiqi_zitidaxiao" style="position: absolute;left: 10px;top: 4px;"></i></template>
@@ -162,6 +171,7 @@
</el-dialog> </el-dialog>
</div> </div>
</div> </div>
</el-drawer>
</template> </template>
<script> <script>
@@ -581,7 +591,7 @@
this.editableTabs.forEach((tab, index) => { this.editableTabs.forEach((tab, index) => {
this.$refs['console'+index][0].setFontSize(fontSize); this.$refs['console'+index][0].setFontSize(fontSize);
}); });
} },
}, },
watch: { watch: {
'$store.state.consoleShow':function(val){ '$store.state.consoleShow':function(val){
@@ -618,4 +628,6 @@
}, },
} }
</script> </script>
<style scoped>
</style>