初始化代码
This commit is contained in:
37
src/home.vue
Normal file
37
src/home.vue
Normal file
@ -0,0 +1,37 @@
|
||||
<script setup>
|
||||
import Header from './views/layout/pc/header/index.vue'
|
||||
import Footer from './views/layout/pc/footer/index.vue'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div id="app">
|
||||
<Header id="header" />
|
||||
<router-view id="main" />
|
||||
<Footer id="footer" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
#app {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
#header {
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
position: fixed;
|
||||
z-index: 99;
|
||||
}
|
||||
#main {
|
||||
margin-top: 100px;
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
background-color: $white;
|
||||
}
|
||||
#footer {
|
||||
width: 100%;
|
||||
height: 681px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user