[new feature] Loading: add vertical prop

This commit is contained in:
陈嘉涵
2019-05-04 16:35:17 +08:00
parent e3cb465dc2
commit 0fb755b136
7 changed files with 56 additions and 3 deletions
+7
View File
@@ -29,6 +29,12 @@ Vue.use(Loading);
<van-loading size="24px">加载中...</van-loading>
```
#### 垂直排列
```html
<van-loading size="24px" vertical>加载中...</van-loading>
```
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
@@ -37,6 +43,7 @@ Vue.use(Loading);
| type | 类型,可选值为 `spinner` | `String` | `circular` | - |
| size | 加载图标大小 | `String | Number` | `30px` | - |
| text-size | 文字大小 | `String | Number` | `14px` | 2.0.0 |
| vertical | 是否垂直排列图标和文字内容 | `Boolean` | `false` | 2.0.0 |
### Slots