进度条 ui-progress

进度条组件

"usingComponents": {
    "ui-progress": "/mp-cu/colorUI/components/ui-progress/ui-progress"
}

默认

<ui-progress progress="40"/>

形状

<ui-progress progress="61.8"/>
<ui-progress round progress="30.8"/>

尺寸

<ui-progress sm progress="61.8"/>
<ui-progress progress="61.8"/>
<ui-progress lg progress="61.8"/>

颜色

<ui-progress bg="bg-green" progress="61.8"/>
<ui-progress  bg="bg-green-light" progress="61.8"/>
<ui-progress  bg="bg-green-thin" progress="61.8"/>
<ui-progress  bg="bg-green-gradient" progress="61.8"/>

条纹

<ui-progress striped progress="61.8"/>
<ui-progress striped active progress="40.8"/>

组合

<ui-progress progressArray="{{[40.8,20,8]}}" bgArray="{{['bg-red','bg-green','bg-blue']}}" striped active round/>

布局

<ui-progress border progressArray="{{[40.8,20,8]}}" bgArray="{{['bg-red','bg-green','bg-blue']}}" striped active round/>

参数

参数类型可选值默认值说明
uiString--其他class
bgString/Array-ui-BG-Main背景颜色
progressNumber/String-0进度
roundBoolean-false椭圆
radiusBoolean-true圆角
smBoolean-false小尺寸
lgBoolean-false大尺寸
stripedBoolean-false条纹
activeBoolean-false条纹动起来
shadowString/Booleantrue,false,sm,lg-阴影
borderBoolean-false边框
progressArrayArray--数组数据
bgArrayArray-见下文数组颜色

bgArray 默认值:['ui-BG-Main', 'ui-BG-Main-1', 'ui-BG-Main-2', 'ui-BG-Main-3']

mp-cu

上次更新: