Skip to content

witBsHeaderTwo Report Header ​

witBsHeaderTwo is a report header component that integrates title display, subtitle menu, time display and fullscreen toggle functionality, adopts gradient text effects and custom background images, suitable for complex data report pages that need multi-tab switching.

Usage Example ​

vue
<template>
  <div>
    <!-- Basic usage -->
    <witBsHeaderTwo title="Comprehensive Analysis Report" />
    
    <!-- Show subtitle menu -->
    <witBsHeaderTwo 
      title="Drug Usage Analysis"
      :hasSubtitle="true"
    />
    
    <!-- Listen menu click event -->
    <witBsHeaderTwo 
      title="Data Monitoring"
      :hasSubtitle="true"
      @tabClick="handleTabClick"
    />
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const handleTabClick = (index: number) => {
  console.log('Tab clicked:', index)
  // Handle tab click event
}
</script>

API ​

Properties ​

Property NameTypeDefault ValueDescription
titleString'xxx'Report main title text
hasSubtitleBooleantrueWhether to show subtitle menu

Events ​

Event NameDescriptionParameters
tabClickTriggered when tab is clickedTab index

湘ICP备2024070110号