[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
+8 -5
View File
@@ -1,4 +1,4 @@
## Lazyload
# Lazyload
### Install
@@ -9,9 +9,9 @@ import { Lazyload } from 'vant';
Vue.use(Lazyload, options);
```
### Usage
## Usage
#### Basic Usage
### Basic Usage
```html
<img v-for="img in imageList" v-lazy="img" >
@@ -30,14 +30,15 @@ export default {
}
```
#### Lazyload Background Image
### Lazyload Background Image
Use `v-lazy:background-image` to set background url, and declare the height of the container.
```html
<div v-for="img in imageList" v-lazy:background-image="img" />
```
#### Lazyload Component
### Lazyload Component
```html
<lazy-component>
@@ -45,6 +46,8 @@ Use `v-lazy:background-image` to set background url, and declare the height of t
</lazy-component>
```
## API
### Options
| Attribute | Description | Type | Default |