LoongPanel-Asp/web/pages/terminal.vue

35 lines
595 B
Vue

<script setup lang="ts">
definePageMeta({
layout: 'main',
middleware: ['auth']
})
const panels=ref<(string|number)[]>([1, 2, 3, 4, 5])
const name=ref<string|number>(1)
const handleAdd=()=>{
//添加一个
panels.value.push(panels.value.length+1)
}
const handleClose=(name: number|string)=>{
panels.value=panels.value.filter((item)=>item!=name)
}
</script>
<template>
<div class="terminal-layout">
<Term/>
</div>
</template>
<style scoped lang="scss">
@import "base";
.terminal-layout{
width: 100%;
height: 100%;
border-radius: $radius;
border: $border;
}
</style>