Skip to content
On this page

基本使用

html
<uv-divider>标题</uv-divider>

使用 0.5px 线

通过 hairline 设置

html
<uv-divider hairline>标题</uv-divider>

开启虚线

通过 dashed 设置

html
<uv-divider dashed>标题</uv-divider>

内容位置

通过 position 设置left或者right值

html
<uv-divider position="left">标题</uv-divider>

<uv-divider position="right">标题</uv-divider>

props

属性含义类型默认值
hairline0.5px线Booleanfalse
dashed虚线Booleanfalse
position位置,left和right可选String-

events

css变量

css
--uv-divider-margin: 16px 0;
  --uv-divider-font-size: 14px;
  --uv-divider-border-color: #ebedf0;
  --uv-divider-color: #969799;
  --uv-divider-line-height: 1px;
  --uv-divider-content-distance: 10px;
  --uv-divider-left-line-max-width: 10%;
  --uv-divider-right-line-max-width: 10%;

Released under the MIT License.