[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 { Dialog } from 'vant';
Vue.use(Dialog);
+1
View File
@@ -21,6 +21,7 @@ Dialog({ message: '提示' });
通过组件调用 Dialog 时,可以通过下面的方式进行注册
```js
import Vue from 'vue';
import { Dialog } from 'vant';
// 全局注册