[Doc] update install guide (#4083)

This commit is contained in:
neverland
2019-08-10 11:11:10 +08:00
committed by GitHub
parent 8aaffc807b
commit cf92bb122a
122 changed files with 144 additions and 4 deletions
+1
View File
@@ -3,6 +3,7 @@
### Install
```js
import Vue from 'vue';
import { ImagePreview } from 'vant';
Vue.use(ImagePreview);
+1
View File
@@ -5,6 +5,7 @@
`ImagePreview`和其他组件不同,不是通过HTML结构的方式来使用,而是通过函数调用的方式。使用前需要先引入它。
```js
import Vue from 'vue';
import { ImagePreview } from 'vant';
Vue.use(ImagePreview);