Skip to content

witLayoutVertical Vertical Layout ​

witLayoutVertical is a vertical layout component based on Element Plus, provides complete left sidebar navigation layout structure, includes sidebar, header navigation, tab bar and main content area, supports sidebar collapse, fixed header, tab bar display control and other features.

Usage Example ​

Basic Usage ​

vue
<template>
  <witLayoutVertical />
</template>

<script lang="ts" setup>
// Import component
import { witLayoutVertical } from '@wit-ui/components'
</script>

Custom Configuration ​

vue
<template>
  <witLayoutVertical
    :collapse="false"
    :fixed-header="true"
    :show-tabs="true"
    :show-header="true"
    device="desktop"
  />
</template>

<script lang="ts" setup>
// Import component
import { witLayoutVertical } from '@wit-ui/components'
</script>

API ​

Component ​

Property NameTypeDefault ValueDescription
collapseBooleanfalseWhether to collapse sidebar
fixedHeaderBooleantrueWhether to fix header
showTabsBooleantrueWhether to show tab bar
showHeaderBooleantrueWhether to show header navigation
deviceStringdesktopDevice type, options: 'desktop', 'mobile'

湘ICP备2024070110号