Skip to content

Container 布局容器

用于布局的容器组件。

基础用法

Header
Main
Footer
vue
<template>
  <x-container>
    <x-header>Header</x-header>
    <x-container>
      <x-aside>Aside</x-aside>
      <x-main>Main</x-main>
    </x-container>
    <x-footer>Footer</x-footer>
  </x-container>
</template>

<script setup>
import { Container, Header, Aside, Main, Footer } from '@xto/layout'
</script>

常见页面布局

Header
Main

API

Container Props

属性说明类型默认值
direction子元素的排列方向'horizontal' | 'vertical''vertical'

Header Props

属性说明类型默认值
height顶栏高度string | number60

Aside Props

属性说明类型默认值
width侧边栏宽度string | number200

Main Props

无特定属性

属性说明类型默认值
height底栏高度string | number60

基于 MIT 许可发布