mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
* [bugfix] CouponList always show empty info * [bugfix] add click feedback of buttons in components * [Doc] add custom theme document * [new feature] Notice bar support more props * [bugfix] PullRefresh test cases * [bugfix] unused NoticeBar style * [bugfix] Swipe width calc error * [Doc] english document of all action components * [Doc] change document site path to /zanui/vant * [Doc] fix * [bugfix] uploader style error * [bugfix] tabs document demo * [new feature] Cell support vue-router target route * [bugfix] add cell test cases * update yarn.lock * [bugfix] Tabbar cann't display info when use icon slot * [Doc] update document title * [bugfix] Dialog should reset button text when showed * [new feature] CouponList add showCloseButton prop * [new feature] Swipe add 'initialSwipe' prop * [bugfix] NoticeBar text disappeared when page back * [new feature] ImagePreview support startPosition * fix: improve imagePreview test cases * [bugfix] Steps style error when has more than 4 items * [new feature] normalize size of all icons * [new feature] Stepper add plus & minus event * fix: yarn.lock * [bugfix] addressEdit icon render failed * [new feature] toast add mask option * [new feature] add spinner type loading
45 lines
912 B
Markdown
45 lines
912 B
Markdown
## Loading
|
|
|
|
### Install
|
|
``` javascript
|
|
import { Loading } from 'vant';
|
|
|
|
Vue.component(Loading.name, Loading);
|
|
```
|
|
|
|
### Usage
|
|
|
|
#### Solid Circle
|
|
|
|
:::demo Solid Circle
|
|
```html
|
|
<van-loading type="circle" color="black"></van-loading>
|
|
<van-loading type="circle" color="white"></van-loading>
|
|
```
|
|
:::
|
|
|
|
#### Gradient Circle
|
|
|
|
:::demo Gradient Circle
|
|
```html
|
|
<van-loading type="gradient-circle" color="black"></van-loading>
|
|
<van-loading type="gradient-circle" color="white"></van-loading>
|
|
```
|
|
:::
|
|
|
|
#### Spinner
|
|
|
|
:::demo Spinner
|
|
```html
|
|
<van-loading type="spinner" color="black"></van-loading>
|
|
<van-loading type="spinner" color="white"></van-loading>
|
|
```
|
|
:::
|
|
|
|
### API
|
|
|
|
| Attribute | Description | Type | Default | Accepted Values |
|
|
|-----------|-----------|-----------|-------------|-------------|
|
|
| color | Color | `String` | `black` | `black` `white` |
|
|
| type | Type | `String` | `gradient-circle` | `spinner` `circle` |
|