Skip to content

witLayoutHorizontal Horizontal Layout

witLayoutHorizontal is a horizontal layout component based on Element Plus, provides concise top navigation layout structure, includes header area and main content area, supports fixed header and tab bar display control.

Usage Example

Basic Usage

vue
<template>
  <witLayoutHorizontal />
</template>

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

Custom Configuration

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

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

API

Component

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

Slots

湘ICP备2024070110号