mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
f12000f9c2
* feat: add website * chore: fix
1.7 KiB
1.7 KiB
Divider
La línea divisoria que separa el contenido.
Uso básico
Divide el texto de los diferentes párrafos.
:::demo
<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
<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
<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 |