naive-ui/demo/documentation/components/layout/zhCN/basic.demo.md
2020-12-12 15:33:41 +08:00

837 B

基础用法

<n-layout>
  <n-layout-header> 酷的页头 </n-layout-header>
  <n-layout-content> 酷的内容 </n-layout-content>
  <n-layout-footer> 酷的页脚 </n-layout-footer>
</n-layout>
<br />
<n-layout>
  <n-layout-header> 酷的页头 </n-layout-header>
  <n-layout>
    <n-layout-sider> 酷的边栏 </n-layout-sider>
    <n-layout-content> 酷的内容 </n-layout-content>
  </n-layout>
  <n-layout-footer> 酷的页脚 </n-layout-footer>
</n-layout>
<br />
<n-layout>
  <n-layout-sider> 酷的边栏 </n-layout-sider>
  <n-layout>
    <n-layout-header> 酷的页头 </n-layout-header>
    <n-layout-content> 酷的内容 </n-layout-content>
    <n-layout-footer> 酷的页脚 </n-layout-footer>
  </n-layout>
</n-layout>
export default {
  data () {
    return {
      collapsed: false
    }
  }
}