[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" />
```
#### Text
```html
<van-loading size="24px">Loading...</van-loading>
```
### API
| Attribute | Description | Type | Default |
@@ -30,3 +36,9 @@ Vue.use(Loading);
| color | Loading color | `String` | `#c9c9c9` | |
| type | Can be set to `spinner` | `String` | `circular` |
| size | Size | `String` | `30px` |
### Slot
| Name | Description |
|------|------|
| default | Loading text |