78 lines
1.2 KiB
Vue
Raw Normal View History

2022-11-29 14:29:26 +08:00
<!--
* @Author: Kane
* @Date: 2022-11-22 17:50:49
* @LastEditors: Kane
2022-12-05 01:07:26 +08:00
* @LastEditTime: 2022-12-05 00:52:17
2022-11-29 14:29:26 +08:00
* @FilePath: \hello-cli\src\App.vue
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
-->
2022-11-22 17:57:20 +08:00
<template>
2022-11-29 14:29:26 +08:00
<div class="content">
2022-12-02 23:11:28 +08:00
<div class="banner">
2022-12-05 01:07:26 +08:00
<AppBanner>标题</AppBanner>
2022-12-02 23:11:28 +08:00
</div>
<div class="container">
<div class="nav"></div>
<div class="view"></div>
</div>
2022-11-29 14:29:26 +08:00
</div>
2022-11-22 17:57:20 +08:00
</template>
<script>
2022-12-05 01:07:26 +08:00
import AppBanner from "./components/AppBanner.vue";
2022-11-22 17:57:20 +08:00
export default {
2022-11-29 14:29:26 +08:00
name: "App",
2022-12-05 01:07:26 +08:00
components: { AppBanner },
2022-12-02 23:11:28 +08:00
methods: {},
2022-11-29 14:29:26 +08:00
};
2022-11-22 17:57:20 +08:00
</script>
2022-12-05 00:23:26 +08:00
<style scoped>
@import url("assets/css/colors.css");
2022-11-22 17:57:20 +08:00
#app {
2022-11-29 20:23:35 +08:00
background-color: #f4f5f7;
}
.content {
2022-12-02 23:11:28 +08:00
background-color: #fff;
2022-12-05 00:23:26 +08:00
height: 100vh;
width: 100vw;
min-width: 1280px;
padding: 0px;
}
.banner {
height: 50px;
}
.container {
display: flex;
/* border: 1px solid red; */
height: calc(100% - 50px);
padding: 0px;
}
.nav {
flex: 0 0 200px;
background-color: bisque;
padding: 0px;
}
.view {
flex-grow: 1;
flex-shrink: 1;
overflow-y: auto;
overflow-x: auto;
background-color: antiquewhite;
/* min-width: 800px; */
2022-11-22 17:57:20 +08:00
}
2022-11-29 20:23:35 +08:00
hr {
width: 100%;
border: 1px solid 1px;
}
2022-11-22 17:57:20 +08:00
</style>