Skip to content

分割线 ​

合并辅助空白和分割线两种能力。

完整信封 ​

ts
{
    component: 'v2.divider', text: '分割线', type: '3-7', active: true,
    props: { mode: 'blank', height: 30, lineStyle: 'solid', margin: 0, style: { lineColor: 'rgb(229, 229, 229)', backgroundColor: 'rgb(255, 255, 255)' } }
}

Props ​

字段类型默认值说明
mode'blank' | 'line''blank'空白或线条
heightnumber30组件高度,rpx
lineStyle'solid' | 'dashed' | 'dotted''solid'线型,仅 line 生效
margin0 | 101 表示左右留边
style.lineColorstringrgb(229,229,229)线条颜色
style.backgroundColorstringrgb(255,255,255)背景颜色

为 uni-app 商城与 CMS 场景设计