[Doc] Lazyload register (#1344)

This commit is contained in:
neverland 2018-06-28 09:24:25 +08:00 committed by GitHub
parent d43c8c8050
commit 8139eb5479
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,12 +2,13 @@
### 使用指南
`Lazyload``Vue`指令,所以需要使用它必须将它注册到`Vue`的指令中。
`Lazyload``Vue` 指令,使用前需要对指令进行注册
```js
import Vue from 'vue';
import { Lazyload } from 'vant';
// options 为可选参数,无则不传
Vue.use(Lazyload, options);
```