Skip to content

layoutcomponent Layout ​

Basic Usage ​

Currently a simple left-right layout, with extensions planned.

Sidebar
Right Container
<template>
  <b-layout has-sider>
    <template #sider>
      <div style="height: 300px">Sidebar</div>
    </template>
    <div>Right Container</div>
  </b-layout>
</template>

Props ​

ParameterDescriptionTypeOptionsDefault
hasSiderWhether to have a sidebar (currently left side)Boolean——
siderWidthSidebar widthNumber—240
collapsedWidthSidebar collapsed widthNumber—40
showToggleWhether to show collapse buttonBoolean—true
showCollapsedContentWhether to show inner content after collapsingBoolean—false
contentStyleRight container styleObject—{}