Page Header

If path of the page is simple, it is recommended to use PageHeader instead of the Breadcrumb.

Complete example

Back
Title Sub title Default
Username kooriookami Telephone 18100000000 PlaceSuzhou
RemarksSchoolAddress No.1188, Wuzhong Avenue, Wuzhong District, Suzhou, Jiangsu Province

Element Plus team uses weekly release strategy under normal circumstance, but critical bug fixes would require hotfix so the actual release number could be more than 1 per week.

Basic usage

Standard page header, for simply scenarios.

Back
Title

Custom icon

The default icon might not meet your satisfaction, you can customize the icon by setting icon attribute like the example.

Back
Title

No icon

Sometimes the page is just full of elements, and you might not want the icon to show up on the page, you can set the icon attribute to null to get rid of it.

Back
Title

Page header allows you to add breadcrumbs for giving route information to the users by breadcrumb slot.

Back
Title

Additional operation section

The header can be as complicated as needed, you may add additional sections to the header, to allow rich interactions.

Back
Title Sub title Default

Main content

Sometimes we want the head to show with some co-responding content, we can utilize the default slot for doing so.

Back
Title
Your additional content can be added with default slot, You may put as many content as you want here.

Anatomy

The component is consisted of these parts

vue
<template>
  <el-page-header>
    <!-- Line 1 -->
    <template #breadcrumb />
    <!-- Line 2 -->
    <template #icon />
    <template #title />
    <template #content />
    <template #extra />
    <!-- Lines after 2 -->
    <template #default />
  </el-page-header>
</template>

API

Attributes

NameDescriptionTypeDefault
iconicon component of page headerstring / ComponentBack
titlemain title of page header, default is Back that built-in a11ystring''
contentcontent of page headerstring''

Events

NameDescriptionType
backtriggers when right side is clickedFunction

Slots

NameDescription
iconcontent as icon
titlecontent as title
contentcontent
extraextra
breadcrumbcontent as breadcrumb
defaultmain content

Source

ComponentStyleDocs

Contributors