[调整] 优化 layout 组件代码结构

This commit is contained in:
就眠儀式
2021-11-16 22:32:45 +08:00
parent 3715898049
commit 117ef91144
11 changed files with 131 additions and 135 deletions

View File

@@ -0,0 +1,8 @@
.layui-body {
display: block;
flex: 1;
overflow: auto;
height: 100%;
box-sizing: border-box;
min-height: 300px;
}

View File

@@ -1,24 +1,15 @@
<template>
<div class="layui-body">
<slot />
</div>
</template>
<script lang="ts">
export default {
name: 'LayBody',
}
</script>
<script setup name="LayBody" lang="ts"></script>
<script setup name="LayBody" lang="ts">
import "./index.less"
</script>
<style>
.layui-body {
display: block;
flex: 1;
overflow: auto;
height: 100%;
box-sizing: border-box;
min-height: 300px;
}
</style>
<template>
<div class="layui-body">
<slot />
</div>
</template>