组件参数说明:
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| idName | String | false | id |
| className | String | true | class名称 |
| startVal | Number | 0 | 开始值 |
| endVal | Number | 0 | 结束值 |
| decimals | Number | 0 | 小数点位数 |
| duration | Number | 2 | 持续时间 |
| delay | Number | 500 | 延迟时间 |
| options | Object | { useEasing: true, useGrouping: true, separator: ‘,’, decimal: ‘.’ } |
|
| color | String | 颜色 | |
| countSize | String | 30px | 大小 |
| countWeight | Number | 700 | 数字字体加粗 |
| introText | String,Number | 详情文字 |
组件使用实例:
<dt-count-upclass="infor-card-count user-created-count":id-name="idName":end-val="endVal":color="color":countSize="countSize":countWeight="countWeight"><p class="infor-intro-text" slot="intro">{{ introText }}</p></dt-count-up>
