2020-08-13 15:18:26 +08:00
|
|
|
## PageHeader
|
|
|
|
|
|
|
|
If path of the page is simple, it is recommended to use PageHeader instead of the Breadcrumb.
|
|
|
|
|
|
|
|
### Basic
|
|
|
|
|
|
|
|
:::demo
|
|
|
|
```html
|
|
|
|
<el-page-header @back="goBack" content="detail">
|
|
|
|
</el-page-header>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
methods: {
|
|
|
|
goBack() {
|
|
|
|
console.log('go back');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
```
|
|
|
|
:::
|
|
|
|
|
|
|
|
### Attributes
|
|
|
|
| Attribute | Description | Type | Accepted Values | Default |
|
|
|
|
|---------- |-------------- |---------- |------------------------------ | ------ |
|
|
|
|
| title | main title | string | — | Back |
|
|
|
|
| content | content | string | — | — |
|
|
|
|
|
|
|
|
### Events
|
|
|
|
| Event Name | Description | Parameters |
|
|
|
|
|----------- |-------------- |----------- |
|
|
|
|
| back | triggers when right side is clicked | — |
|
|
|
|
|
|
|
|
### Slots
|
2021-04-06 11:41:02 +08:00
|
|
|
| Name | Description |
|
2020-08-13 15:18:26 +08:00
|
|
|
|---------- | ---------------------- |
|
|
|
|
| title | title content |
|
|
|
|
| content | content |
|