[new feature] Loading: add vertical prop
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user