vue-learning/入门/cli/hello-cli/src/App.vue

78 lines
1.2 KiB
Vue
Raw Normal View History

2022-11-29 06:29:26 +00:00
<!--
* @Author: Kane
* @Date: 2022-11-22 17:50:49
* @LastEditors: Kane
2022-12-04 17:07:26 +00:00
* @LastEditTime: 2022-12-05 00:52:17
2022-11-29 06:29:26 +00:00
* @FilePath: \hello-cli\src\App.vue
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
-->
2022-11-22 09:57:20 +00:00
<template>
2022-11-29 06:29:26 +00:00
<div class="content">
2022-12-02 15:11:28 +00:00
<div class="banner">
2022-12-04 17:07:26 +00:00
<AppBanner>标题</AppBanner>
2022-12-02 15:11:28 +00:00
</div>
<div class="container">
<div class="nav"></div>
<div class="view"></div>
</div>
2022-11-29 06:29:26 +00:00
</div>
2022-11-22 09:57:20 +00:00
</template>
<script>
2022-12-04 17:07:26 +00:00
import AppBanner from "./components/AppBanner.vue";
2022-11-22 09:57:20 +00:00
export default {
2022-11-29 06:29:26 +00:00
name: "App",
2022-12-04 17:07:26 +00:00
components: { AppBanner },
2022-12-02 15:11:28 +00:00
methods: {},
2022-11-29 06:29:26 +00:00
};
2022-11-22 09:57:20 +00:00
</script>
2022-12-04 16:23:26 +00:00
<style scoped>
@import url("assets/css/colors.css");
2022-11-22 09:57:20 +00:00
#app {
2022-11-29 12:23:35 +00:00
background-color: #f4f5f7;
}
.content {
2022-12-02 15:11:28 +00:00
background-color: #fff;
2022-12-04 16:23:26 +00: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 09:57:20 +00:00
}
2022-11-29 12:23:35 +00:00
hr {
width: 100%;
border: 1px solid 1px;
}
2022-11-22 09:57:20 +00:00
</style>