2022-01-14 12:08:26 +08:00
|
|
|
|
<template>
|
2022-04-25 20:34:38 +08:00
|
|
|
|
<veui-layout>
|
|
|
|
|
<veui-header>Header</veui-header>
|
|
|
|
|
<veui-layout>
|
|
|
|
|
<veui-sidebar
|
|
|
|
|
collapsible
|
|
|
|
|
:collapse-mode="mode"
|
|
|
|
|
>
|
|
|
|
|
<div class="center full">
|
|
|
|
|
Sidebar
|
|
|
|
|
</div>
|
|
|
|
|
</veui-sidebar>
|
2022-01-14 12:08:26 +08:00
|
|
|
|
<veui-layout>
|
2022-04-25 20:34:38 +08:00
|
|
|
|
<veui-content>
|
|
|
|
|
<veui-radio-button-group
|
|
|
|
|
v-model="mode"
|
|
|
|
|
:items="modes"
|
|
|
|
|
/>
|
|
|
|
|
</veui-content>
|
|
|
|
|
<veui-footer style="background: #ccc;">
|
|
|
|
|
Footer(背景仅为演示)
|
|
|
|
|
</veui-footer>
|
2022-01-14 12:08:26 +08:00
|
|
|
|
</veui-layout>
|
2022-04-25 20:34:38 +08:00
|
|
|
|
</veui-layout>
|
|
|
|
|
</veui-layout>
|
2022-01-14 12:08:26 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { Layout, Header, Footer, Sidebar, Content, RadioButtonGroup } from 'veui'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
'veui-layout': Layout,
|
|
|
|
|
'veui-header': Header,
|
|
|
|
|
'veui-footer': Footer,
|
|
|
|
|
'veui-sidebar': Sidebar,
|
|
|
|
|
'veui-content': Content,
|
|
|
|
|
'veui-radio-button-group': RadioButtonGroup
|
|
|
|
|
},
|
|
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
mode: 'slim',
|
|
|
|
|
modes: [
|
|
|
|
|
{ label: 'slim', value: 'slim' },
|
|
|
|
|
{ label: 'hidden', value: 'hidden' }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.center,
|
|
|
|
|
.veui-layout-header,
|
|
|
|
|
.veui-layout-footer,
|
|
|
|
|
.veui-layout-content {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.veui-radio-button-group {
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.full {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
</style>
|