[Doc] rename component README file (#3662)

This commit is contained in:
neverland
2019-06-27 14:22:40 +08:00
committed by GitHub
parent a56f96c246
commit ddb24e6762
119 changed files with 4 additions and 3 deletions
+55
View File
@@ -0,0 +1,55 @@
# Loading
### Install
``` javascript
import { Loading } from 'vant';
Vue.use(Loading);
```
## Usage
### Type
```html
<van-loading />
<van-loading type="spinner" />
```
### Color
```html
<van-loading color="#1989fa" />
<van-loading type="spinner" color="#1989fa" />
```
### Text
```html
<van-loading size="24px">Loading...</van-loading>
```
### Vertical
```html
<van-loading size="24px" vertical>Loading...</van-loading>
```
## API
### Props
| Attribute | Description | Type | Default |
|------|------|------|------|
| color | Loading color | `String` | `#c9c9c9` | |
| 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
| Name | Description |
|------|------|
| default | Loading text |