Skip to content

witBsHeaderOne Report Header

witBsHeaderOne is a report header component that integrates title display, time display and fullscreen toggle functionality, adopts gradient text effects and custom background images, suitable for top display of various data report pages.

Usage Example

vue
<template>
  <div>
    <!-- Basic usage -->
    <witBsHeaderOne title="Sales Report" />
    
    <!-- Custom style -->
    <witBsHeaderOne 
      title="Inventory Analysis"
      fontSize="40px"
      height="70px"
      timeRight="40px"
      timeTop="40px"
    />
    
    <!-- Listen menu click event -->
    <witBsHeaderOne 
      title="User Profile"
      @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 title text
centerImgStringtbzhong1.pngCenter background image path
fontSizeString'48px'Title font size
heightString'80px'Header component height
timeRightString'56px'Time display distance from right
timeTopString'56px'Time display distance from top

Events

Event NameDescriptionParameters
tabClickTriggered when tab is clickedTab index

湘ICP备2024070110号