[Doc] new theme

This commit is contained in:
陈嘉涵
2019-05-15 20:53:04 +08:00
parent 3cae4288f2
commit d0f4169c86
130 changed files with 1460 additions and 1147 deletions
+9 -6
View File
@@ -1,40 +1,43 @@
## Loading
# Loading
### Install
``` javascript
import { Loading } from 'vant';
Vue.use(Loading);
```
### Usage
## Usage
#### Type
### Type
```html
<van-loading />
<van-loading type="spinner" />
```
#### Color
### Color
```html
<van-loading color="#1989fa" />
<van-loading type="spinner" color="#1989fa" />
```
#### Text
### Text
```html
<van-loading size="24px">Loading...</van-loading>
```
#### Vertical
### Vertical
```html
<van-loading size="24px" vertical>Loading...</van-loading>
```
## API
### Props
| Attribute | Description | Type | Default |