mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-11-06 22:12:08 +08:00
Loading 加载
引入
在app.json或index.json中引入组件,默认为ES6版本,ES5引入方式参见快速上手
"usingComponents": {
"van-loading": "path/to/vant-weapp/dist/loading/index"
}
代码演示
Circular
<van-loading />
<van-loading color="#fff" />
Spinner
<van-loading type="spinner" />
<van-loading type="spinner" color="#fff" />
API
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| color | 颜色 | String |
#c9c9c9 |
| type | 类型,可选值为 spinner |
String |
circular |
| size | 大小 | String |
30px |
外部样式类
| 类名 | 说明 |
|---|---|
| custom-class | 根节点样式类 |