[new feature] Loading: add default slot

This commit is contained in:
陈嘉涵
2019-04-30 17:18:25 +08:00
parent dd32efd5a4
commit 2bb01b4a63
18 changed files with 90 additions and 41 deletions
+12
View File
@@ -23,6 +23,12 @@ Vue.use(Loading);
<van-loading type="spinner" color="#1989fa" />
```
#### 加载文案
```html
<van-loading size="24px">加载中...</van-loading>
```
### API
| 参数 | 说明 | 类型 | 默认值 | 版本 |
@@ -30,3 +36,9 @@ Vue.use(Loading);
| color | 颜色 | `String` | `#c9c9c9` | - |
| type | 类型,可选值为 `spinner` | `String` | `circular` | - |
| size | 大小 | `String` | `30px` | - |
### Slot
| 名称 | 说明 |
|------|------|
| default | 加载文案 |