2019-04-19 03:44:35 +00:00
|
|
|
## Divider
|
|
|
|
|
2019-05-07 03:35:54 +00:00
|
|
|
Une ligne de séparation entre deux contenus.
|
2019-04-19 03:44:35 +00:00
|
|
|
|
2019-05-07 03:35:54 +00:00
|
|
|
### Usage basique
|
2019-04-19 03:44:35 +00:00
|
|
|
|
2019-05-07 03:35:54 +00:00
|
|
|
Séparer le texte de deux paragraphes.
|
2019-04-19 03:44:35 +00:00
|
|
|
|
|
|
|
:::demo
|
|
|
|
```html
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<span>I sit at my window this morning where the world like a passer-by stops for a moment, nods to me and goes.</span>
|
|
|
|
<el-divider></el-divider>
|
|
|
|
<span>There little thoughts are the rustle of leaves; they have their whisper of joy in my mind.</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
```
|
|
|
|
:::
|
|
|
|
|
2019-05-07 03:35:54 +00:00
|
|
|
### Contenu personnalisé
|
2019-04-19 03:44:35 +00:00
|
|
|
|
2019-05-07 03:35:54 +00:00
|
|
|
Vous ajouter du contenu dans la ligne.
|
2019-04-19 03:44:35 +00:00
|
|
|
|
|
|
|
:::demo
|
|
|
|
```html
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<span>What you are you do not see, what you see is your shadow. </span>
|
|
|
|
<el-divider content-position="left">Rabindranath Tagore</el-divider>
|
|
|
|
<span>I cannot choose the best. The best chooses me.</span>
|
|
|
|
<el-divider><i class="el-icon-star-on"></i></el-divider>
|
|
|
|
<span>My wishes are fools, they shout across thy song, my Master. Let me but listen.</span>
|
|
|
|
<el-divider content-position="right">Rabindranath Tagore</el-divider>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
```
|
|
|
|
:::
|
|
|
|
|
2019-05-07 03:35:54 +00:00
|
|
|
### Séparation verticale
|
2019-04-19 03:44:35 +00:00
|
|
|
|
|
|
|
:::demo
|
|
|
|
```html
|
|
|
|
<template>
|
|
|
|
<div>
|
2019-05-07 03:35:54 +00:00
|
|
|
<span>Pluie</span>
|
2019-04-19 03:44:35 +00:00
|
|
|
<el-divider direction="vertical"></el-divider>
|
2019-05-07 03:35:54 +00:00
|
|
|
<span>Maison</span>
|
2019-04-19 03:44:35 +00:00
|
|
|
<el-divider direction="vertical"></el-divider>
|
2019-05-07 03:35:54 +00:00
|
|
|
<span>Herbe</span>
|
2019-04-19 03:44:35 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
```
|
|
|
|
:::
|
|
|
|
|
2019-05-07 03:35:54 +00:00
|
|
|
### Attributs
|
|
|
|
|
|
|
|
| Attribut | Description | Type | Valeurs acceptées | Défaut |
|
2019-04-19 03:44:35 +00:00
|
|
|
|------------- |---------------- |---------------- |---------------------- |-------- |
|
2019-05-07 03:35:54 +00:00
|
|
|
| direction | Régle la direction du séparateur. | string | horizontal / vertical | horizontal |
|
|
|
|
| content-position | Personnalise le contenu du séparateur. | String | left / right / center | center |
|