no message
Former-commit-id: fd27cbc360c9f1cb5f9837a02544b85eb867c710 Former-commit-id: bc609d498c62fd0791e21754768ce6cf36c88567 Former-commit-id: d210f47924df5dd4ab4b568612879e44163830cf
This commit is contained in:
20
static/markdownFiles/article/组件 - 数字动画.md
Normal file
20
static/markdownFiles/article/组件 - 数字动画.md
Normal file
@@ -0,0 +1,20 @@
|
||||
## 示例
|
||||
|
||||
```
|
||||
<CountUp
|
||||
:end="100">
|
||||
</CountUp>
|
||||
```
|
||||
|
||||
## 参数
|
||||
|
||||
| 参数名 | 介绍 | 必选 | 值类型 | 可选值 | 默认值 |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| start | 起始值 | 非 | Number | | 0 |
|
||||
| end | 结束值 | 是 | Number | | 0 |
|
||||
| decimals | 小数位数 | 非 | Number | | 0 |
|
||||
| duration | 持续时间 | 非 | Number | | 2 |
|
||||
| options | 设置项 | 非 | Object | | 空对象 |
|
||||
| callback | 回调函数 | 非 | Function | | 空函数 |
|
||||
|
||||
组件根据 [countUp.js](https://github.com/inorganik/countUp.js) 封装,`options` 参数详见原始插件文档
|
||||
Reference in New Issue
Block a user