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.
Rabindranath Tagore
Rabindranath Tagore
虚线
您可以设置分隔符的样式。
What language is thine, O sea?The language of eternal question.
What language is thy answer, O sky?The language of eternal silence.垂直分隔线
API
Attributes
属性名 | 说明 | 类型 | 默认 |
---|---|---|---|
direction | 设置分割线方向 | enum | horizontal |
border-style | 设置分隔符样式 | enum css/border-style | solid |
content-position | 自定义分隔线内容的位置 | enum | center |
Slots
插槽名 | 说明 |
---|---|
default | 设置分割线文案的位置 |