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" />
Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|---|---|---|---|---|
| color | 颜色 | string | #c9c9c9 |
- |
| type | 类型,可选值为 spinner |
string | circular |
- |
| size | 加载图标大小,默认单位为 px |
string | number | 30px |
- |
外部样式类
| 类名 | 说明 |
|---|---|
| custom-class | 根节点样式类 |