mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
40 lines
1.0 KiB
Markdown
40 lines
1.0 KiB
Markdown
|
## PageHeader
|
|||
|
|
|||
|
Si le chemin de la page est simple, il est recommandé d’utiliser PageHeader au lieu de 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 | Valeurs acceptées | Défaut |
|
|||
|
|---------- |-------------- |---------- |------------------------------ | ------ |
|
|||
|
| title | titre principal | string | — | Back |
|
|||
|
| content | contenu | string | — | — |
|
|||
|
|
|||
|
### Events
|
|||
|
| Event Name | Description | Parameters |
|
|||
|
|----------- |-------------- |----------- |
|
|||
|
| back | se déclenche lorsque vous cliquez sur le côté droit | — |
|
|||
|
|
|||
|
### Slots
|
|||
|
| slot | Description |
|
|||
|
|---------- | ---------------------- |
|
|||
|
| title | contenu du titre |
|
|||
|
| content | contenu |
|