[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">Loading...</van-loading>
```
#### Vertical
```html
<van-loading size="24px" vertical>Loading...</van-loading>
```
### Props
| Attribute | Description | Type | Default |
@@ -37,6 +43,7 @@ Vue.use(Loading);
| type | Can be set to `spinner` | `String` | `circular` |
| size | Icon size | `String | Number` | `30px` |
| text-size | Text font size | `String | Number` | `14px` |
| vertical | Whether to arrange icons and text content vertically | `Boolean` | `false` |
### Slots