进度条 Progress

示例

基本形式

<progress percent="36" />

颜色扩展

<progress percent="25" state="info" />
<progress percent="50" state="success" />
<progress percent="75" state="warning" />
<progress percent="100" state="error" />

尺寸扩展

<progress percent="20" size="xs" />
<progress percent="40" size="sm" />
<progress percent="60" />
<progress percent="80" size="lg" />
<progress percent="100" size="xl" />

条纹

<progress percent="36" striped />

条纹动画

<progress percent="72" state="error" striped active />

API

Class

Progress

继承自Component

Options

new Progress()

参数类型默认值数据流向描述
dataobject绑定属性
data.percentnumber36outer => inner百分比
data.textstring
boolean
trueouter => inner在进度条中是否显示百分比。值为`string`时显示该段文字。
data.sizestringnullouter => inner进度条的尺寸
data.statestringnullouter => inner进度条的状态
data.stripedbooleanfalseouter => inner是否显示条纹
data.activebooleanfalseouter => inner进度条是否为激活状态,当`striped`为`true`时,进度条显示动画
data.visiblebooleantrueouter => inner是否显示
data.classstring''outer => inner补充class