element-ui/examples/docs/es/divider.md

61 lines
1.7 KiB
Markdown
Raw Normal View History

2021-06-07 11:56:04 +08:00
## Divider
La línea divisoria que separa el contenido.
### Uso básico
Divide el texto de los diferentes párrafos.
:::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>
```
:::
### Contenido personalizado
Puede personalizar el contenido en la línea divisoria.
:::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>
```
:::
### División vertical
:::demo
```html
<template>
<div>
<span>Rain</span>
<el-divider direction="vertical"></el-divider>
<span>Home</span>
<el-divider direction="vertical"></el-divider>
<span>Grass</span>
</div>
</template>
```
:::
### Divider Atributos
| Atributo | Descripción | Tipo | Valores aceptados | Por defecto |
|------------- |---------------- |---------------- |---------------------- |-------- |
| direction | indica la dirección del separador | string | horizontal / vertical | horizontal |
| content-position | personaliza el contenido en la línea divisoria | String | left / right / center | center |