parent
8a2d8341c4
commit
59f416cac8
7 changed files with 129 additions and 22 deletions
@ -1,27 +1,27 @@ |
|||||||
<script setup> |
<script> |
||||||
import HelloWorld from './components/HelloWorld.vue' |
import { defineComponent } from 'vue' |
||||||
|
import { ElConfigProvider } from 'element-plus' |
||||||
|
|
||||||
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs' |
||||||
|
|
||||||
|
export default defineComponent({ |
||||||
|
components: { |
||||||
|
ElConfigProvider, |
||||||
|
}, |
||||||
|
setup() { |
||||||
|
return { |
||||||
|
locale: zhCn, |
||||||
|
} |
||||||
|
}, |
||||||
|
}) |
||||||
</script> |
</script> |
||||||
|
|
||||||
<template> |
<template> |
||||||
<div class="common-layout"> |
<el-config-provider :locale="locale"> |
||||||
<el-container> |
<router-view></router-view> |
||||||
<el-aside width="200px"> |
</el-config-provider> |
||||||
Aside |
|
||||||
</el-aside> |
|
||||||
<el-main> |
|
||||||
<HelloWorld/> |
|
||||||
</el-main> |
|
||||||
</el-container> |
|
||||||
</div> |
|
||||||
</template> |
</template> |
||||||
|
|
||||||
<style> |
<style> |
||||||
#app, |
|
||||||
html, |
|
||||||
body, |
|
||||||
.el-container { |
|
||||||
padding: 0; |
|
||||||
margin: 0; |
|
||||||
height: 100%; |
|
||||||
} |
|
||||||
</style> |
</style> |
||||||
|
@ -0,0 +1,32 @@ |
|||||||
|
<script setup> |
||||||
|
import { |
||||||
|
Document, |
||||||
|
Menu as IconMenu, |
||||||
|
Location, |
||||||
|
Setting, |
||||||
|
} from '@element-plus/icons-vue' |
||||||
|
</script> |
||||||
|
|
||||||
|
<template> |
||||||
|
<el-row class="tac"> |
||||||
|
<el-col :span="15"> |
||||||
|
<h5 class="mb-2">鼎新工具集</h5> |
||||||
|
<el-menu |
||||||
|
default-active="1" |
||||||
|
class="el-menu-vertical-demo" |
||||||
|
> |
||||||
|
<el-menu-item index="1"> |
||||||
|
<el-icon> |
||||||
|
<icon-menu/> |
||||||
|
</el-icon> |
||||||
|
<span>影院列表</span> |
||||||
|
</el-menu-item> |
||||||
|
</el-menu> |
||||||
|
</el-col> |
||||||
|
</el-row> |
||||||
|
|
||||||
|
</template> |
||||||
|
|
||||||
|
<style scoped> |
||||||
|
|
||||||
|
</style> |
@ -0,0 +1,17 @@ |
|||||||
|
<script setup> |
||||||
|
const goBack = () => { |
||||||
|
console.log('go back') |
||||||
|
} |
||||||
|
</script> |
||||||
|
|
||||||
|
<template> |
||||||
|
<el-page-header @back="goBack"> |
||||||
|
<template #content> |
||||||
|
<span class="text-large font-600 mr-3">影院列表</span> |
||||||
|
</template> |
||||||
|
</el-page-header> |
||||||
|
</template> |
||||||
|
|
||||||
|
<style scoped> |
||||||
|
|
||||||
|
</style> |
@ -0,0 +1,34 @@ |
|||||||
|
<script setup> |
||||||
|
import HelloWorld from "@/components/HelloWorld.vue"; |
||||||
|
import PageHeader from "@/layout/components/PageHeader.vue"; |
||||||
|
import PageAside from "@/layout/components/PageAside.vue"; |
||||||
|
</script> |
||||||
|
|
||||||
|
<template> |
||||||
|
<div class="common-layout"> |
||||||
|
<el-container> |
||||||
|
<el-aside width="200px"> |
||||||
|
<PageAside/> |
||||||
|
</el-aside> |
||||||
|
<el-container> |
||||||
|
<el-header> |
||||||
|
<PageHeader/> |
||||||
|
</el-header> |
||||||
|
<el-main> |
||||||
|
<HelloWorld/> |
||||||
|
</el-main> |
||||||
|
</el-container> |
||||||
|
</el-container> |
||||||
|
</div> |
||||||
|
</template> |
||||||
|
|
||||||
|
<style> |
||||||
|
#app, |
||||||
|
html, |
||||||
|
body, |
||||||
|
.el-container { |
||||||
|
padding: 0; |
||||||
|
margin: 0; |
||||||
|
height: 100%; |
||||||
|
} |
||||||
|
</style> |
@ -1,3 +1,14 @@ |
|||||||
import {createRouter, createWebHashHistory} from 'vue-router'; |
import {createRouter, createWebHashHistory} from 'vue-router'; |
||||||
|
import Layout from '@/layout/index.vue' |
||||||
|
|
||||||
const routes = [] |
const routes = [ |
||||||
|
{ |
||||||
|
path: '/', |
||||||
|
name: 'Home', |
||||||
|
component: Layout, |
||||||
|
} |
||||||
|
] |
||||||
|
|
||||||
|
const router = createRouter({history: createWebHashHistory(), routes}) |
||||||
|
|
||||||
|
export default router |
@ -0,0 +1,11 @@ |
|||||||
|
<script setup> |
||||||
|
|
||||||
|
</script> |
||||||
|
|
||||||
|
<template> |
||||||
|
|
||||||
|
</template> |
||||||
|
|
||||||
|
<style scoped> |
||||||
|
|
||||||
|
</style> |
Loading…
Reference in new issue