Divider 分割线

区隔内容的分割线。

基础用法

对不同段落的文本进行分割。

I sit at my window this morning where the world like a passer-by stops for a moment, nods to me and goes. There little thoughts are the rustle of leaves; they have their whisper of joy in my mind.

设置文案

可以在分割线上自定义文本内容。

What you are you do not see, what you see is your shadow. My wishes are fools, they shout across thy song, my Master. Let me but listen. I cannot choose the best. The best chooses me.

虚线

您可以设置分隔符的样式。

What language is thine, O sea?The language of eternal question.
What language is thy answer, O sky?The language of eternal silence.

垂直分隔线

RainHomeGrass

API

Attributes

属性名说明类型默认
direction设置分割线方向enumhorizontal
border-style设置分隔符样式enum css/border-stylesolid
content-position自定义分隔线内容的位置enumcenter

Slots

插槽名说明
default设置分割线文案的位置

源代码

组件样式文档

贡献者