2022-01-14 12:08:26 +08:00
|
|
|
|
<template>
|
|
|
|
|
<article>
|
2022-04-21 23:23:30 +08:00
|
|
|
|
<veui-layout>
|
|
|
|
|
<veui-header>Header</veui-header>
|
2022-01-14 12:08:26 +08:00
|
|
|
|
<veui-layout>
|
2022-04-21 23:23:30 +08:00
|
|
|
|
<veui-sidebar>
|
|
|
|
|
<div class="center full">
|
|
|
|
|
Sidebar
|
|
|
|
|
</div>
|
|
|
|
|
</veui-sidebar>
|
2022-01-14 12:08:26 +08:00
|
|
|
|
<veui-layout>
|
2022-04-21 23:23:30 +08:00
|
|
|
|
<veui-content>Content</veui-content>
|
2022-01-14 12:08:26 +08:00
|
|
|
|
</veui-layout>
|
|
|
|
|
</veui-layout>
|
2022-04-21 23:23:30 +08:00
|
|
|
|
<veui-footer style="background: #ccc;">
|
|
|
|
|
Footer(背景仅为演示)
|
|
|
|
|
</veui-footer>
|
|
|
|
|
</veui-layout>
|
2022-01-14 12:08:26 +08:00
|
|
|
|
</article>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { Layout, Header, Footer, Sidebar, Content } from 'veui'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
'veui-layout': Layout,
|
|
|
|
|
'veui-header': Header,
|
|
|
|
|
'veui-footer': Footer,
|
|
|
|
|
'veui-sidebar': Sidebar,
|
|
|
|
|
'veui-content': Content
|
|
|
|
|
},
|
|
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
2022-04-21 23:23:30 +08:00
|
|
|
|
article {
|
|
|
|
|
height: 100%;
|
2022-01-14 12:08:26 +08:00
|
|
|
|
|
|
|
|
|
& > .veui-layout {
|
2022-04-21 23:23:30 +08:00
|
|
|
|
min-width: 720px;
|
2022-01-14 12:08:26 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.center,
|
|
|
|
|
.veui-layout-header,
|
|
|
|
|
.veui-layout-footer,
|
|
|
|
|
.veui-layout-content {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.full {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
</style>
|